Function at 0x4296d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52147d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x58b18c]
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 ebx, ecx
mov dword [ebp - 0x34], ebx
mov edx, 1
lea eax, [ebx + 0x24]
xchg dword [eax], edx
cmp dword [ebx + 0x2c], 0
je 0x429733
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push dword [ebx + 0x30]
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
cmp dword [ebx + 0x60], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4297ca
mov ecx, ebx
call fcn.00429a20
mov esi, dword [ebx + 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 edi
xor eax, eax
mov ecx, 0x598a08
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x42978b
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4297a1
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x4297b8
push dword [esi + 4]
call edi
push 0xc
push esi
call fcn.004f79ae
add esp, 8
lea edi, [ebx + 0x18]
mov dword [ebx + 0x60], 0
mov dword [ebp - 0x30], edi
lock dec dword [edi]
jmp 0x4297d0
lea edi, [ebx + 0x18]
mov dword [ebp - 0x30], edi
xor eax, eax
lock xadd dword [edi], eax
test eax, eax
jle 0x42996f
nop
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 [ebx + 0x50]
test esi, esi
je 0x429818
nop dword [eax]
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 0x429800
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x429844
test ecx, ecx
je 0x42982b
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x18]
jmp 0x429830
mov edx, eax
mov dword [ebp - 0x18], edx
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 0x14], ecx
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x58], 0
test edx, edx
je 0x4298a4
mov ebx, dword [ebp - 0x30]
mov esi, edx
mov eax, edx
mov edi, edx
test eax, eax
je 0x429868
mov eax, dword [edi + 0x14]
xor edi, edi
test eax, eax
mov dword [ebp - 0x18], eax
cmove ecx, edi
mov dword [ebp - 0x14], ecx
mov dword [esi + 0x14], edi
lock dec dword [ebx]
mov eax, dword [edx + 0x18]
lea ecx, [ebp - 0x3c]
push 0
push ecx
push edx
push 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x58bc30
call eax
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov esi, edx
mov eax, esi
mov edi, eax
test esi, esi
je 0x42989c
mov ecx, dword [ebp - 0x14]
jmp 0x429851
mov ebx, dword [ebp - 0x34]
lea edi, [ebx + 0x18]
jmp 0x4298fc
push dword [ebx + 0x28]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], 0
push eax
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp dword [ebp - 0x2c], 0
je 0x4298fc
lock dec dword [edi]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x44]
push 0
push edx
push eax
mov ecx, dword [eax + 0x18]
push 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0x58bc30
call ecx
add esp, 0x10
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x42995a
mov esi, edx
mov eax, edx
nop
mov eax, dword [eax + 0x14]
test eax, eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], 0
cmove ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x20]
push 0
push ecx
mov dword [ebp - 0x18], eax
push edx
mov dword [esi + 0x14], 0
mov eax, dword [edx + 0x18]
push 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x58bc30
call eax
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov esi, edx
mov eax, esi
test esi, esi
jne 0x429910
mov dword [ebp - 4], 0xffffffff
xor eax, eax
lock xadd dword [edi], eax
test eax, eax
jg 0x4297e0
mov esi, dword [ebx + 0x2c]
test esi, esi
je 0x4299ce
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x598a08
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x4299b8
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4299ce
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
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.004f7466
mov esp, ebp
pop ebp
ret