Function at 0x52e5f4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2f
push 0
push 0
dec ecx
jne 0x52e5fc
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52e953
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x532c70]
cmp dword [eax], 6
jge 0x52e92d
lea edx, [ebp - 0x150]
mov eax, 0x52e968
call fcn.004978e4
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 8]
call fcn.0040f444
cmp dword [ebp - 8], 0
jne 0x52e665
lea edx, [ebp - 0x154]
mov eax, 0x52e97c
call fcn.004978e4
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 8]
call fcn.0040f444
lea edx, [ebp - 0x158]
mov eax, 0x52e98c
call fcn.004978e4
mov eax, dword [ebp - 0x158]
push eax
lea edx, [ebp - 0x15c]
mov eax, dword [ebp - 8]
call fcn.00497894
mov edx, dword [ebp - 0x15c]
lea eax, [ebp - 8]
pop ecx
call fcn.00404ff4
mov eax, dword [ebp - 8]
call fcn.00409fc4
test al, al
je 0x52e92d
push ebp
mov eax, dword [ebp - 8]
call fcn.0052e3f0
pop ecx
mov dl, 1
mov eax, dword [0x41aed8]
call fcn.00403e68
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x41aed8]
call fcn.00403e68
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x52e8da
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14c], 0x128
xor edx, edx
mov eax, 2
call fcn.00522450
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0xc]
call fcn.00522470
test eax, eax
je 0x52e7bb
lea eax, [ebp - 0x128]
push eax
push 0x52e9ac
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x52e765
mov eax, dword [ebp - 0x134]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x160]
call fcn.00409ba8
mov eax, dword [ebp - 0x160]
push eax
mov eax, dword [ebp - 0x144]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x164]
call fcn.00409ba8
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x10]
pop ecx
call fcn.0041f720
jmp 0x52e7a5
mov eax, dword [ebp - 0x134]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x168]
call fcn.00409ba8
mov eax, dword [ebp - 0x168]
push eax
mov eax, dword [ebp - 0x144]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x16c]
call fcn.00409ba8
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x14]
pop ecx
call fcn.0041f720
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0xc]
call fcn.00522490
test eax, eax
jne 0x52e70e
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
sub eax, 1
jno 0x52e7d6
call fcn.00403dd4
test eax, eax
jl 0x52e8bc
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x1d], 0
lea ecx, [ebp - 0x170]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0041fa58
mov eax, dword [ebp - 0x170]
or edx, 0xffffffff
call fcn.00409c34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x52e864
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 0x1c]
call fcn.00409abc
mov edx, dword [ebp - 0x178]
lea ecx, [ebp - 0x174]
mov eax, dword [ebp - 0x14]
call fcn.0041f014
mov eax, dword [ebp - 0x174]
or edx, 0xffffffff
call fcn.00409c34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x52e852
mov byte [ebp - 0x1d], 1
cmp dword [ebp - 0x1c], 0
je 0x52e864
cmp dword [ebp - 0x1c], 0xffffffff
je 0x52e864
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x52e815
cmp byte [ebp - 0x1d], 0
je 0x52e8b0
lea ecx, [ebp - 0x17c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0041ee34
mov eax, dword [ebp - 0x17c]
or edx, 0xffffffff
call fcn.00409c34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x52e8b0
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jns 0x52e8a0
call fcn.00403dcc
push eax
push 0xffffffffffffffff
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
inc dword [ebp - 0x18]
dec dword [ebp - 0x24]
jne 0x52e7e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e8e1
mov eax, dword [ebp - 0x10]
call fcn.00403e98
mov eax, dword [ebp - 0x14]
call fcn.00403e98
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e95a
lea eax, [ebp - 0x17c]
mov edx, 0xc
call fcn.00404d0c
lea eax, [ebp - 8]
call fcn.00404ce8
ret