Function at 0x4093e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, esp
mov dword [esi + 0x40], ebp
mov edi, ecx
mov dword [esi + 0x44], esp
mov dword [esi + 0x50], 0xffffffff
lea eax, [esi + 0x48]
mov dword [esi + 0x4c], 0x40d1c0
mov ecx, dword fs:[0]
mov dword [esi + 0x48], ecx
mov dword fs:[0], eax
mov eax, 1
xchg dword [edi + 0x24], eax
cmp dword [edi + 0x2c], 0
je 0x409455
mov dword [esi + 0xc], 0
mov dword [esi + 8], 1
mov eax, dword [edi + 0x30]
sub esp, 0x18
movaps xmm0, xmmword [0x42a7d0]
movups xmmword [esp + 8], xmm0
lea ecx, [esi + 8]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
cmp dword [edi + 0x60], 0
mov dword [esi + 4], edi
je 0x409522
mov eax, 1
mov ecx, 1
xchg dword [edi + 0x1c], ecx
test ecx, ecx
jne 0x40949b
xchg dword [edi + 0x20], eax
test eax, eax
jne 0x40949b
push 0
push 0
push 0
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x40949b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40976e
mov edi, dword [edi + 0x60]
movsd xmm0, qword [edi + 4]
shufps xmm0, xmm0, 0xe1
movlps qword [esi + 8], xmm0
lea eax, [esi + 8]
push 0xffffffffffffffff
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mfence
mov ecx, dword [0x436680]
mov eax, dword [edi + 4]
test ecx, ecx
je 0x4094df
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4094f8
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 [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
mov edi, dword [eax + 0x60]
test edi, edi
je 0x409514
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040d45e
add esp, 4
mov edi, dword [esi + 4]
mov dword [edi + 0x60], 0
lock dec dword [edi + 0x18]
mfence
jmp 0x409536
mfence
mov edi, dword [esi + 4]
mov eax, dword [edi + 0x18]
test eax, eax
jle 0x4096d2
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov eax, dword [edi + 0x50]
mov dword [esi + 0x30], eax
test eax, eax
je 0x409579
mov dword [esi + 0x50], 2
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx]
lea edx, [esi + 0x1c]
push edx
call dword [eax + 0x14]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 4]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x409560
mov edx, dword [esi + 4]
mov eax, dword [edx + 0x54]
test eax, eax
je 0x4095a7
mov ecx, dword [esi + 0x20]
test ecx, ecx
lea ecx, [ecx + 0x14]
lea edi, [esi + 0x1c]
cmove ecx, edi
mov dword [ecx], eax
mov eax, dword [edx + 0x58]
mov dword [esi + 0x20], eax
mov dword [edx + 0x54], 0
mov dword [edx + 0x58], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x409610
nop
test eax, eax
je 0x409530
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x1c], ecx
test ecx, ecx
jne 0x4095d0
mov dword [esi + 0x20], 0
mov dword [esi + 0x50], 2
mov dword [eax + 0x14], 0
mov ecx, dword [esi + 4]
lock dec dword [ecx + 0x18]
mov ecx, dword [eax + 0x18]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x43536c
mov dword [esi + 0x50], 2
push 0
lea edx, [esi + 8]
push edx
push eax
push 0
call ecx
add esp, 0x10
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x4095b8
jmp 0x409530
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov eax, dword [esi + 4]
push dword [eax + 0x28]
lea ecx, [esi + 0x34]
push ecx
lea ecx, [esi + 0x38]
push ecx
lea ecx, [esi + 0x3c]
push ecx
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp dword [esi + 0x34], 0
je 0x4096ad
mov eax, dword [esi + 4]
lock dec dword [eax + 0x18]
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0x18]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x43536c
mov dword [esi + 0x50], 2
push 0
lea edx, [esi + 8]
push edx
push eax
push 0
call ecx
add esp, 0x10
jmp 0x4096ad
mov dword [eax + 0x14], 0
mov ecx, dword [eax + 0x18]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x43536c
mov dword [esi + 0x50], 1
push 0
lea edx, [esi + 8]
push edx
push eax
push 0
call ecx
add esp, 0x10
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x409530
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x1c], ecx
test ecx, ecx
jne 0x409680
mov dword [esi + 0x20], 0
mov dword [esi + 0x50], 1
jmp 0x409680
mov edi, dword [edi + 0x2c]
test edi, edi
je 0x40975d
movsd xmm0, qword [edi + 4]
shufps xmm0, xmm0, 0xe1
movlps qword [esi + 8], xmm0
lea eax, [esi + 8]
push 0xffffffffffffffff
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mfence
mov ecx, dword [0x436680]
mov eax, dword [edi + 4]
test ecx, ecx
je 0x40971e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x409737
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 [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 4]
mov edi, dword [eax + 0x2c]
test edi, edi
je 0x409753
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040d45e
add esp, 4
mov eax, dword [esi + 4]
mov dword [eax + 0x2c], 0
mov eax, dword [esi + 0x48]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esi + 0x1c]
push str.pqcs
push section..data
push eax
call fcn.004017e0
mov dword [esi + 8], vtable.std::exception.0
lea eax, [esi + 0xc]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
lea ecx, [esi + 0x20]
push eax
push ecx
call fcn.0040fbcc
add esp, 8
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov dword [esi + 8], vtable.std::system_error.0
mov dword [esi + 0x50], 0
lea eax, [esi + 8]
push 0x433384
push eax
call fcn.0040f600
add esp, 8
nop word cs:[eax + eax]
push ebp
sub esp, 0x18
lea esi, [ebp - 0x54]
mov ebp, dword [esi + 0x40]
mov dword [esi + 0x1c], vtable.std::exception.0
lea eax, [esi + 0x20]
push eax
call fcn.0040fc2f
add esp, 0x1c
pop ebp
ret