Function at 0x5311b4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2f
push 0
push 0
dec ecx
jne 0x5311bc
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x53150a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x535d18]
cmp dword [eax], 6
jge 0x5314e4
lea edx, [ebp - 0x150]
mov eax, 0x531520
call fcn.00498dc8
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 8]
call fcn.0040f518
cmp dword [ebp - 8], 0
jne 0x531225
lea edx, [ebp - 0x154]
mov eax, 0x531534
call fcn.00498dc8
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 8]
call fcn.0040f518
lea edx, [ebp - 0x158]
mov eax, 0x531544
call fcn.00498dc8
mov eax, dword [ebp - 0x158]
push eax
lea edx, [ebp - 0x15c]
mov eax, dword [ebp - 8]
call fcn.00498d68
mov edx, dword [ebp - 0x15c]
lea eax, [ebp - 8]
pop ecx
call fcn.00404ff4
mov eax, dword [ebp - 8]
call fcn.00409fe4
test al, al
je 0x5314e4
push ebp
mov eax, dword [ebp - 8]
call fcn.00530fb0
pop ecx
mov dl, 1
mov eax, dword [0x41afc4]
call fcn.00403e68
mov dword [ebp - 0x10], eax
mov dl, 1
mov eax, dword [0x41afc4]
call fcn.00403e68
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x531491
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14c], 0x128
xor edx, edx
mov eax, 2
call fcn.00524240
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0xc]
call fcn.00524260
test eax, eax
je 0x53137b
lea eax, [ebp - 0x128]
push eax
push 0x531564
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x531325
mov eax, dword [ebp - 0x134]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x160]
call fcn.00409bc8
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.00409bc8
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x10]
pop ecx
call fcn.0041f80c
jmp 0x531365
mov eax, dword [ebp - 0x134]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x168]
call fcn.00409bc8
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.00409bc8
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp - 0x14]
pop ecx
call fcn.0041f80c
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 0xc]
call fcn.00524280
test eax, eax
jne 0x5312ce
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 0x531396
call fcn.00403dd4
test eax, eax
jl 0x531473
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.0041fb44
mov eax, dword [ebp - 0x170]
or edx, 0xffffffff
call fcn.00409c54
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x531424
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 0x1c]
call fcn.00409adc
mov edx, dword [ebp - 0x178]
lea ecx, [ebp - 0x174]
mov eax, dword [ebp - 0x14]
call fcn.0041f100
mov eax, dword [ebp - 0x174]
or edx, 0xffffffff
call fcn.00409c54
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x531412
mov byte [ebp - 0x1d], 1
cmp dword [ebp - 0x1c], 0
je 0x531424
cmp dword [ebp - 0x1c], 0xffffffff
je 0x531424
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x5313d5
cmp byte [ebp - 0x1d], 0
je 0x531467
lea ecx, [ebp - 0x17c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0041ef20
mov eax, dword [ebp - 0x17c]
or edx, 0xffffffff
call fcn.00409c54
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x531467
push 0
mov eax, dword [ebp - 0x1c]
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 0x5313a9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x531498
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 0x531511
lea eax, [ebp - 0x17c]
mov edx, 0xc
call fcn.00404d0c
lea eax, [ebp - 8]
call fcn.00404ce8
ret