Function at 0x1004b080
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101db12d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10284f40]
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 esi, 1
lea eax, [edi + 0x24]
mov edx, esi
xchg dword [eax], edx
cmp dword [edi + 0x2c], 0
je 0x1004b0dd
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
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 0x1004b1b7
mov ecx, esi
lea eax, [edi + 0x1c]
xchg dword [eax], ecx
test ecx, ecx
jne 0x1004b13a
lea eax, [edi + 0x20]
xchg dword [eax], esi
test esi, esi
jne 0x1004b13a
push esi
push esi
push esi
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1004b13a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [ebp - 0x1c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0x1026c678
movq qword [ebp - 0x24], xmm0
setne byte [ebp - 0x20]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x1004b38b
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, 0x10295828
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x1004b17b
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1004b191
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 [edi + 0x60]
test esi, esi
je 0x1004b1a8
push dword [esi + 4]
call ebx
push 0xc
push esi
call fcn.100e476e
add esp, 8
mov dword [edi + 0x60], 0
lea ebx, [edi + 0x18]
lock dec dword [ebx]
jmp 0x1004b1ba
lea ebx, [edi + 0x18]
xor eax, eax
lock xadd dword [ebx], eax
test eax, eax
jle 0x1004b310
nop dword [eax + eax]
xorps xmm0, xmm0
xor ecx, ecx
movlpd qword [ebp - 0x18], xmm0
xor edx, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edx
mov esi, dword [edi + 0x50]
test esi, esi
je 0x1004b208
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 0x1004b1f0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 0x54]
test eax, eax
je 0x1004b234
test edx, edx
je 0x1004b21b
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x18]
jmp 0x1004b220
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [edi + 0x58]
mov dword [ebp - 0x14], edx
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
test ecx, ecx
je 0x1004b297
mov esi, ecx
mov eax, esi
nop dword [eax]
test eax, eax
je 0x1004b261
mov eax, dword [ecx + 0x14]
test eax, eax
mov dword [ebp - 0x30], 0
cmove edx, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ecx + 0x14], 0
lock dec dword [ebx]
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 0x24]
push 0
push ecx
push esi
push 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x1026c678
call eax
mov ecx, dword [ebp - 0x18]
add esp, 0x10
mov esi, ecx
mov eax, ecx
test ecx, ecx
je 0x1004b2f3
mov edx, dword [ebp - 0x14]
jmp 0x1004b240
push dword [edi + 0x28]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
cmp dword [ebp - 0x30], 0
je 0x1004b2f3
lock dec dword [ebx]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x3c]
push 0
push edx
push eax
mov ecx, dword [eax + 0x18]
push 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x1026c678
call ecx
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.10062090
xor eax, eax
lock xadd dword [ebx], eax
test eax, eax
jg 0x1004b1d0
mov esi, dword [edi + 0x2c]
test esi, esi
je 0x1004b36f
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]
xor eax, eax
mov ecx, 0x10295828
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x1004b359
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1004b36f
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.100e40d6
mov esp, ebp
pop ebp
ret
mov edx, str.pqcs
lea ecx, [ebp - 0x24]
call fcn.10049f90
int3