Function at 0x40ef60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d9810
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x40ef9f
mov eax, 0x80070057
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x68], ebx
call fcn.0040eb10
lea edi, [esp + 0x18]
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 1
call fcn.0040eda0
test eax, eax
jne 0x40f000
lea esi, [esp + 0x28]
call fcn.0040eb80
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40efe9
push eax
call fcn.0049f15f
add esp, 4
mov eax, 0x80004005
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
cmp edi, eax
jbe 0x40f015
call fcn.004a089d
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ecx
lea ecx, [ecx]
cmp dword [esp + 0x1c], eax
mov esi, eax
jbe 0x40f02d
call fcn.004a089d
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, ecx
je 0x40f03f
lea edx, [esp + 0x18]
cmp eax, edx
je 0x40f046
call fcn.004a089d
xor ecx, ecx
cmp edi, esi
je 0x40f0fc
cmp dword [esp + 0x10], ecx
jne 0x40f059
call fcn.004a089d
mov eax, dword [esp + 0x10]
cmp edi, dword [eax + 8]
jb 0x40f067
call fcn.004a089d
mov ecx, dword [edi]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0040ebd0
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0xc]
push ecx
push edx
call fcn.004a16c0
add esp, 8
test eax, eax
jne 0x40f0c2
mov eax, dword [esp + 0x10]
cmp edi, dword [eax + 8]
jb 0x40f09c
call fcn.004a089d
mov eax, dword [edi]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40f0c2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f0e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
cmp edi, dword [ecx + 8]
jb 0x40f0f0
call fcn.004a089d
mov eax, dword [esp + 0x20]
add edi, 4
jmp 0x40f020
mov eax, dword [esp + 0x4c]
neg ebx
sbb ebx, ebx
and ebx, 0x7fffbffb
add ebx, 0x80004005
cmp eax, ecx
je 0x40f12c
mov edi, dword [esp + 0x50]
call fcn.0040f6b0
mov edx, dword [esp + 0x4c]
push edx
call fcn.0049f15f
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x3c], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
je 0x40f163
mov eax, dword [esp + 0x40]
cmp eax, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
je 0x40f15f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x1c]
cmp eax, ecx
je 0x40f174
push eax
call fcn.0049f15f
add esp, 4
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret