Function at 0x407900
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f10d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x43f00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, 1
lea eax, [edi + 0x24]
xchg dword [eax], edx
cmp dword [edi + 0x2c], 0
je 0x407960
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push dword [edi + 0x30]
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
cmp dword [edi + 0x60], 0
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4079f4
mov ecx, edi
call fcn.00407e10
mov esi, dword [edi + 0x60]
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call ebx
xor eax, eax
mov ecx, 0x4412f4
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x4079b8
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4079ce
push method.boost::asio::detail::win_iocp_socket_service_class_boost::asio::ip::tcp_.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [edi + 0x60]
test esi, esi
je 0x4079e5
push dword [esi + 4]
call ebx
push 0xc
push esi
call fcn.0042d0f1
add esp, 8
mov dword [edi + 0x60], 0
lea ebx, [edi + 0x18]
lock dec dword [ebx]
jmp 0x4079f7
lea ebx, [edi + 0x18]
xor eax, eax
lock xadd dword [ebx], eax
test eax, eax
jle 0x407b94
xorps xmm0, xmm0
xor edx, edx
movlpd qword [ebp - 0x18], xmm0
xor ecx, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ecx
mov esi, dword [edi + 0x50]
test esi, esi
je 0x407a39
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov esi, dword [esi + 4]
test esi, esi
jne 0x407a21
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [edi + 0x54]
test eax, eax
je 0x407a65
test ecx, ecx
je 0x407a4c
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x18]
jmp 0x407a51
mov edx, eax
mov dword [ebp - 0x18], edx
mov ecx, dword [edi + 0x58]
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
test edx, edx
je 0x407ac4
mov esi, edx
mov eax, esi
nop dword [eax]
test eax, eax
je 0x407a91
mov eax, dword [edx + 0x14]
test eax, eax
mov dword [ebp - 0x24], 0
cmove ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [edx + 0x14], 0
lock dec dword [ebx]
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0
push eax
mov eax, dword [esi + 0x18]
xorps xmm0, xmm0
push esi
push 0
movq qword [ebp - 0x30], xmm0
call eax
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov esi, edx
mov eax, edx
test edx, edx
je 0x407b20
mov ecx, dword [ebp - 0x14]
jmp 0x407a70
push dword [edi + 0x28]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
push eax
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp dword [ebp - 0x24], 0
je 0x407b1d
lock dec dword [ebx]
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x34], 0
push eax
mov eax, dword [ebp - 0x24]
xorps xmm0, xmm0
push eax
push 0
movq qword [ebp - 0x3c], xmm0
mov eax, dword [eax + 0x18]
call eax
add esp, 0x10
mov edx, dword [ebp - 0x18]
mov esi, edx
mov dword [ebp - 4], 1
test esi, esi
je 0x407b7f
mov eax, esi
nop
test eax, eax
je 0x407b54
mov eax, dword [edx + 0x14]
test eax, eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], 0
cmove ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [edx + 0x14], 0
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x40], 0
push eax
mov eax, dword [esi + 0x18]
xorps xmm0, xmm0
push esi
push 0
movq qword [ebp - 0x48], xmm0
call eax
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov esi, edx
mov eax, edx
test edx, edx
jne 0x407b30
mov dword [ebp - 4], 0xffffffff
xor eax, eax
lock xadd dword [ebx], eax
test eax, eax
jg 0x407a05
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x407c17
mov eax, dword [esi + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
xor eax, eax
mov ecx, 0x4412f4
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x407be3
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x407bf9
push method.boost::asio::detail::win_iocp_socket_service_class_boost::asio::ip::tcp_.virtual_8
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x407c10
push dword [esi + 4]
call ebx
push 0xc
push esi
call fcn.0042d0f1
add esp, 8
mov dword [edi + 0x2c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c87e
mov esp, ebp
pop ebp
ret