Function at 0x485240
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 0x61c15a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x6a8c7c]
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.004804f0
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 0x485380
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [edi + 0x30], eax
test eax, eax
jne 0x48535a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6b42fc]
cmp eax, dword [ecx + 4]
jg 0x48542e
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x6b42d8
test esi, esi
jne 0x48547b
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 0x485401
push 0xc
call fcn.005d585d
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.005d585d
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.00470c40
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4853fe
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x1c]
call fcn.005d588d
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.005d584c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push 0x6b42fc
call fcn.005d5ee3
add esp, 4
cmp dword [0x6b42fc], 0xffffffff
jne 0x485348
push 0x622520
mov dword [0x6b42dc], 0x6b42d8
mov dword [0x6b42d8], 0x67e1ec
call fcn.005d5d20
add esp, 4
push 0x6b42fc
call fcn.005d5e99
add esp, 4
jmp 0x485348
mov edx, str.timer
lea ecx, [ebp - 0x28]
call fcn.0044faf0
int3