Function at 0x407570
Capabilities:
Access peb ldr_data
Get kernel32 base address

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 0x42f09e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x43f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x38], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_context.0
mov dword [esi + 0x14], 0
lea edi, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [edi], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.00406cb0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4076ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x43f078]
mov edi, eax
mov eax, dword [0x43f07c]
cmp ecx, 0x257edfd1
jne 0x40768d
cmp eax, 0xb2ab117a
je 0x40769c
cmp ecx, 0x257edfd0
jne 0x4076a3
cmp eax, 0xb2ab117a
jne 0x4076a3
test edi, edi
setne al
jmp 0x4076b3
mov eax, dword [0x43f070]
mov ecx, 0x43f070
push edi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0x43f070
mov dword [ebp - 0x34], str.D:_boost_1_84_0_boost_asiodetailimplwin_iocp_io_context.ipp
mov dword [ebp - 0x30], str.win_iocp_io_context
mov dword [ebp - 0x2c], 0x66
mov dword [ebp - 0x28], 0x1a
test al, 1
jne 0x407790
lea edi, [esi + 0x18]
cmp byte [ebx + 0x10], 0
je 0x40776e
lock inc dword [edi]
push 0xc
call fcn.0042cd56
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 7
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push 0x10
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0042cd56
add esp, 4
mov dword [ebp - 0x3c], eax
xorps xmm0, xmm0
mov ecx, edi
movups xmmword [eax], xmm0
push 0
push eax
mov dword [eax], vtable.boost::asio::detail::win_thread::func_struct_boost::asio::detail::win_iocp_io_context::thread_function_.0
mov dword [eax + 0xc], esi
call fcn.004071a0
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40776b
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push dword [ebp - 0x24]
call fcn.0042d0f1
add esp, 8
mov dword [esi + 0x60], edi
mov eax, esi
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.0042c87e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
lea eax, [ebp - 0x34]
mov edx, str.iocp
push eax
lea ecx, [ebp - 0x20]
call fcn.00406af0
int3