Function at 0x407650
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 0x490c2e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x4b0300]
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.00405bf0
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 0x4077da
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4b0e00]
mov edi, eax
mov eax, dword [0x4b0e04]
cmp ecx, 0x257edfd1
jne 0x40776d
cmp eax, 0xb2ab117a
je 0x40777c
cmp ecx, 0x257edfd0
jne 0x407783
cmp eax, 0xb2ab117a
jne 0x407783
test edi, edi
setne al
jmp 0x407793
mov eax, dword [0x4b0df8]
mov ecx, 0x4b0df8
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], 0x4b0df8
mov dword [ebp - 0x34], str.C:UserspcDesktopImGui_Standalone_mainSourcepackages_boost.1.86.0lib_nativeinclude_boost_asiodetailimplwin_iocp_io_context.ipp
mov dword [ebp - 0x30], str.__thiscall_boost::asio::detail::win_iocp_io_context::win_iocp_io_context_class_boost::asio::execution_context__int_bool_
mov dword [ebp - 0x2c], 0x66
mov dword [ebp - 0x28], 0x1a
test al, 1
je 0x4077d7
cmp eax, 1
jne 0x407878
test edi, edi
jne 0x407878
lea edi, [esi + 0x18]
cmp byte [ebx + 0x10], 0
je 0x407856
lock inc dword [edi]
push 0xc
call fcn.0046923f
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.0046923f
xorps xmm0, xmm0
mov dword [ebp - 0x3c], eax
push eax
mov ecx, edi
movups xmmword [eax], xmm0
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.00405ff0
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x407853
push dword [eax + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xc
push dword [ebp - 0x24]
call fcn.004694c5
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.00469231
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.00402c90
int3