Function at 0x467dd0
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], 0x5174f4
test eax, eax
je 0x467fc3
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 0x467e2e
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 0x467ec1
mov esi, dword [ebx + 8]
cmp dword [esi + 4], 0
je 0x467eab
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
test byte [ebp - 4], 1
je 0x467e6d
and dword [ebp - 4], 0xfffffffe
lea ecx, [ebp - 0xb4]
call fcn.0045cab0
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [ebp - 4], 2
je 0x467e8b
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0xb4]
call fcn.0045cab0
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
call fcn.00468c90
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.00406fa9
mov ebx, dword [ebx]
add esp, 4
cmp ebx, dword [edi + 0x2c]
jne 0x467e44
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 0x467ed7
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 0x467fb2
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 0x467f4d
mov eax, dword [ebx + 4]
test eax, eax
je 0x467f42
cmp eax, 0xffffffff
je 0x467f42
call fcn.00416dd0
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x467f3b
call fcn.0040c740
test byte [ebp - 4], 8
je 0x467f3b
and dword [ebp - 4], 0xfffffff7
lea ecx, [ebp - 0xb4]
call fcn.0045cab0
mov dword [ebx + 4], 0
push ebx
call fcn.00406fa9
add esp, 4
jmp 0x467f62
test byte [ebp - 4], 4
je 0x467f62
and dword [ebp - 4], 0xfffffffb
lea ecx, [ebp - 0x164]
call fcn.0045cab0
cmp byte [esi + 0x15], 0
jne 0x467fa9
mov ecx, dword [esi + 8]
cmp byte [ecx + 0x15], 0
jne 0x467f8e
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
jne 0x467f8a
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x15], 0
je 0x467f80
mov esi, ecx
jmp 0x467fa9
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x467fa7
cmp esi, dword [eax + 8]
jne 0x467fa7
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x467f97
mov esi, eax
cmp esi, dword [edi + 0x3c]
jne 0x467ef0
cmp dword [edi + 4], 0
pop ebx
je 0x467fc3
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.00482af0
mov edx, dword [edi + 0x4c]
push edx
call fcn.00406fa9
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.004b3ea0
mov ecx, dword [edi + 0x3c]
push ecx
call fcn.00406fa9
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 0x468032
lea ebx, [ebx]
mov esi, dword [ecx]
push ecx
call fcn.00406fa9
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x2c]
jne 0x468020
mov edx, dword [edi + 0x2c]
push edx
call fcn.00406fa9
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret