Function at 0x431a00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558b08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5b706c]
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
push 1
lea eax, [edi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [edi + 0x2c], 0
je 0x431a62
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push dword [edi + 0x30]
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
push 0
lea ebx, [edi + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jle 0x431bb5
xorps xmm0, xmm0
xor ecx, ecx
movlpd qword [ebp - 0x20], xmm0
xor edx, edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov esi, dword [edi + 0x50]
test esi, esi
je 0x431aaa
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov esi, dword [esi + 4]
test esi, esi
jne 0x431a92
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi + 0x54]
test eax, eax
je 0x431ad6
test edx, edx
je 0x431abd
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x20]
jmp 0x431ac2
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov edx, dword [edi + 0x58]
mov dword [ebp - 0x1c], edx
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
test ecx, ecx
je 0x431b38
mov esi, ecx
mov eax, esi
nop
test eax, eax
je 0x431b01
mov eax, dword [ecx + 0x14]
test eax, eax
mov dword [ebp - 0x2c], 0
cmove edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ecx + 0x14], 0
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [ebp - 0x34], 0
call fcn.005232c0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push 0
push eax
mov eax, dword [esi + 0x18]
push esi
push 0
call eax
mov ecx, dword [ebp - 0x20]
add esp, 0x10
mov esi, ecx
mov eax, ecx
test ecx, ecx
je 0x431b95
mov edx, dword [ebp - 0x1c]
jmp 0x431ae0
push dword [edi + 0x28]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp dword [ebp - 0x2c], 0
je 0x431b95
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
call fcn.005232c0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0
push eax
mov eax, dword [esi + 0x18]
push esi
push 0
call eax
add esp, 0x10
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.00426a70
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jg 0x431a76
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x431c15
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]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x5bf044
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x431bff
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x431c15
push method.std::messages_wchar_t_.virtual_20
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
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.0051e9d8
mov esp, ebp
pop ebp
ret