Function at 0x463f50
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
mov dword [edi], 0x513384
test eax, eax
je 0x464143
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov eax, dword [edi + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1388
push eax
call esi
cmp eax, 0x102
jne 0x463fae
mov ecx, dword [edi + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [edi + 0xc]
push 0xffffffffffffffff
push edx
call esi
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push eax
call esi
mov eax, dword [edi + 0x2c]
mov ebx, dword [eax]
cmp ebx, eax
je 0x464041
mov esi, dword [ebx + 8]
cmp dword [esi + 4], 0
je 0x46402b
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
test byte [ebp - 4], 1
je 0x463fed
and dword [ebp - 4], 0xfffffffe
lea ecx, [ebp - 0xb4]
call fcn.00458cd0
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [ebp - 4], 2
je 0x46400b
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0xb4]
call fcn.00458cd0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
call fcn.00464f60
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 4]
add ecx, 0x14
call eax
mov dword [esi + 4], 0
push esi
call fcn.00406ec9
mov ebx, dword [ebx]
add esp, 4
cmp ebx, dword [edi + 0x2c]
jne 0x463fc4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [edi + 0xc]
push ecx
call esi
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x464057
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 1
call eax
mov ecx, dword [edi + 8]
push ecx
call esi
mov eax, dword [edi + 0x3c]
mov esi, dword [eax]
cmp esi, eax
je 0x464132
lea ebx, [ebx]
mov ebx, dword [esi + 0x10]
mov edx, dword [ebx]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
test eax, eax
je 0x4640cd
mov eax, dword [ebx + 4]
test eax, eax
je 0x4640c2
cmp eax, 0xffffffff
je 0x4640c2
call fcn.00416c40
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4640bb
call fcn.0040c5c0
test byte [ebp - 4], 8
je 0x4640bb
and dword [ebp - 4], 0xfffffff7
lea ecx, [ebp - 0xb4]
call fcn.00458cd0
mov dword [ebx + 4], 0
push ebx
call fcn.00406ec9
add esp, 4
jmp 0x4640e2
test byte [ebp - 4], 4
je 0x4640e2
and dword [ebp - 4], 0xfffffffb
lea ecx, [ebp - 0x164]
call fcn.00458cd0
cmp byte [esi + 0x15], 0
jne 0x464129
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x15], 0
jne 0x46410e
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x46410a
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x464100
mov esi, ecx
jmp 0x464129
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x464127
cmp esi, dword [eax + 8]
jne 0x464127
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x464117
mov esi, eax
cmp esi, dword [edi + 0x3c]
jne 0x464070
cmp dword [edi + 4], 0
pop ebx
je 0x464143
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [edi + 0x4c]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [edi + 0x48]
call fcn.0047e920
mov edx, dword [edi + 0x4c]
push edx
call fcn.00406ec9
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax]
add esp, 4
push eax
push ecx
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x38]
call fcn.004bf9a0
mov ecx, dword [edi + 0x3c]
push ecx
call fcn.00406ec9
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x2c]
mov dword [eax + 4], eax
add esp, 4
mov dword [edi + 0x30], 0
cmp ecx, dword [edi + 0x2c]
je 0x4641b2
lea ebx, [ebx]
mov esi, dword [ecx]
push ecx
call fcn.00406ec9
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x2c]
jne 0x4641a0
mov edx, dword [edi + 0x2c]
push edx
call fcn.00406ec9
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret