Function at 0x40a4c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x40d240
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [esi], vtable.asio::detail::win_iocp_io_context.0
cmp dword [esi + 0x60], 0
mov dword [ebp - 0x20], esi
je 0x40a60b
mov eax, 1
mov ecx, 1
xchg dword [esi + 0x1c], ecx
test ecx, ecx
jne 0x40a53b
xchg dword [esi + 0x20], eax
test eax, eax
jne 0x40a53b
push 0
push 0
push 0
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x40a53b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40a668
mov esi, dword [esi + 0x60]
movsd xmm0, qword [esi + 4]
shufps xmm0, xmm0, 0xe1
movlps qword [ebp - 0x34], xmm0
lea eax, [ebp - 0x34]
push 0xffffffffffffffff
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mfence
mov ecx, dword [0x436680]
mov eax, dword [esi + 4]
test ecx, ecx
je 0x40a57f
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40a598
push 0
push eax
push method.asio::detail::win_iocp_io_context.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 0x60]
test esi, esi
je 0x40a5b4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040d45e
add esp, 4
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x60], 0
jmp 0x40a60b
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x54], ecx
test ecx, ecx
jne 0x40a5db
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x58], 0
mov dword [ebp - 0x10], 0
mov dword [eax + 0x14], 0
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x43536c
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x34]
push edx
push eax
push 0
call ecx
add esp, 0x10
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x54]
test eax, eax
jne 0x40a5c0
lea eax, [esi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40a62a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 0x2c]
test esi, esi
je 0x40a646
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040d45e
add esp, 4
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40a657
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x48]
push str.pqcs
push section..data
push eax
call fcn.004017e0
mov dword [ebp - 0x34], vtable.std::exception.0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x44]
push eax
push ecx
call fcn.0040fbcc
add esp, 8
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], vtable.std::system_error.0
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x34]
push 0x433384
push eax
call fcn.0040f600
add esp, 8
nop word cs:[eax + eax]
push ebp
sub esp, 0x10
add ebp, 0xc
mov dword [ebp - 0x48], vtable.std::exception.0
lea eax, [ebp - 0x44]
push eax
call fcn.0040fc2f
add esp, 0x14
pop ebp
ret