Function at 0x44c320
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50667c
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [edi], 0x517888
mov eax, dword [edi + 4]
mov dword [ebp - 4], 3
test eax, eax
je 0x44c53b
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push dword [edi + 0xc]
call esi
cmp eax, 0x102
jne 0x44c3a0
push ebx
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push dword [edi + 0xc]
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x2c]
mov esi, dword [eax]
cmp esi, eax
je 0x44c434
mov edi, dword [esi + 8]
cmp dword [edi + 4], 0
je 0x44c421
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov dword [ebp - 4], 3
test bl, 1
je 0x44c3e3
lea ecx, [ebp - 0xc4]
and ebx, 0xfffffffe
call fcn.00462150
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 3
test bl, 2
je 0x44c405
lea ecx, [ebp - 0xc4]
and ebx, 0xfffffffd
call fcn.00462150
push dword [edi]
mov ecx, dword [edi + 4]
call fcn.0044c5e0
mov ecx, dword [edi + 4]
add ecx, 0x10
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 4], 0
push edi
call fcn.0040823e
mov edi, dword [ebp - 0x10]
add esp, 4
mov esi, dword [esi]
cmp esi, dword [edi + 0x2c]
jne 0x44c3b6
push dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x44c44d
mov eax, dword [ecx]
push 1
call dword [eax + 8]
push dword [edi + 8]
call esi
mov eax, dword [edi + 0x34]
mov esi, dword [eax]
cmp esi, eax
je 0x44c52b
nop
mov eax, dword [esi + 0x14]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
push dword [eax]
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
test eax, eax
je 0x44c4c5
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x44c4ba
cmp ecx, 0xffffffff
je 0x44c4ba
call fcn.0040e530
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x44c4b0
call fcn.0040db10
test bl, 8
je 0x44c4b0
lea ecx, [ebp - 0xc4]
and ebx, 0xfffffff7
call fcn.00462150
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0
push eax
call fcn.0040823e
add esp, 4
jmp 0x44c4df
mov dword [ebp - 4], 3
test bl, 4
je 0x44c4df
lea ecx, [ebp - 0x174]
and ebx, 0xfffffffb
call fcn.00462150
cmp byte [esi + 0xd], 0
jne 0x44c522
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x44c504
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x44c522
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x44c4f8
jmp 0x44c522
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x44c520
lea ecx, [ecx]
cmp esi, dword [eax + 8]
jne 0x44c520
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x44c510
mov esi, eax
cmp esi, dword [edi + 0x34]
jne 0x44c460
cmp dword [edi + 4], 0
je 0x44c53b
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [edi + 0x44]
lea ecx, [edi + 0x44]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0040e120
push dword [edi + 0x44]
call fcn.0040823e
mov eax, dword [edi + 0x3c]
lea ecx, [edi + 0x3c]
add esp, 4
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0040e120
push dword [edi + 0x3c]
call fcn.0040823e
mov eax, dword [edi + 0x34]
lea ecx, [edi + 0x34]
add esp, 4
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.0040e120
push dword [edi + 0x34]
call fcn.0040823e
mov eax, dword [edi + 0x2c]
add esp, 4
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x2c]
mov dword [eax + 4], eax
mov dword [edi + 0x30], 0
cmp ecx, dword [edi + 0x2c]
je 0x44c5c2
jmp 0x44c5b0
mov esi, dword [ecx]
push ecx
call fcn.0040823e
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x2c]
jne 0x44c5b0
push dword [edi + 0x2c]
call fcn.0040823e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret