Function at 0x4a85e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64948a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x6ddc7c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x30], eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], 0
mov dword [ebp - 4], 0
lea esi, [eax + 0x14]
mov dword [eax], vtable.asio::detail::deadline_timer_service_struct_asio::detail::chrono_time_traits_struct_std::chrono::steady_clock__struct_asio::wait_traits_struct_std::chrono::steady_clock___.0
mov dword [esi + 4], 0
mov dword [esi], vtable.asio::detail::timer_queue_struct_asio::detail::chrono_time_traits_struct_std::chrono::steady_clock__struct_asio::wait_traits_struct_std::chrono::steady_clock___.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
call fcn.004919d0
mov edi, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x2c], edi
lea eax, [edi + 0x38]
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x34], 1
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x50]
mov dword [esi + 4], eax
mov dword [edi + 0x50], esi
cmp dword [edi + 0x30], 0
jne 0x4a8720
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [edi + 0x30], eax
test eax, eax
jne 0x4a86fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6eb97c]
cmp eax, dword [ecx + 4]
jg 0x4a87ce
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x6eb958
test esi, esi
jne 0x4a881b
push 0
push 0
push 0
push 0x493e0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x4d2fa200
push eax
push dword [edi + 0x30]
mov dword [ebp - 0x1c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
cmp dword [edi + 0x2c], 0
jne 0x4a87a1
push 0xc
call fcn.005ff7ce
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push 0x10
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.005ff7ce
add esp, 4
mov dword [ebp - 0x24], eax
xorps xmm0, xmm0
mov ecx, esi
movups xmmword [eax], xmm0
push 0x10000
push eax
mov dword [eax], vtable.asio::detail::win_thread::func_struct_asio::detail::win_iocp_io_context::timer_thread_function_.0
mov dword [eax + 0xc], edi
call fcn.00473760
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4a879e
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x1c]
call fcn.005ff7fe
add esp, 8
mov dword [edi + 0x2c], esi
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005ff7bd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push 0x6eb97c
call fcn.005ffe54
add esp, 4
cmp dword [0x6eb97c], 0xffffffff
jne 0x4a86e8
push 0x650420
mov dword [0x6eb95c], 0x6eb958
mov dword [0x6eb958], 0x6ac23c
call fcn.005ffc91
add esp, 4
push 0x6eb97c
call fcn.005ffe0a
add esp, 4
jmp 0x4a86e8
mov edx, str.timer
lea ecx, [ebp - 0x28]
call fcn.0044fae0
int3