Function at 0x470f7c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x90
push 0
push 0
dec ecx
jne 0x470f84
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405614
xor eax, eax
push ebp
push 0x471229
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 4], 0
jne 0x470fd1
lea edx, [ebp - 0x464]
xor eax, eax
call fcn.00403380
mov eax, dword [ebp - 0x464]
lea edx, [ebp - 4]
call fcn.0040b6cc
lea edx, [ebp - 0x468]
mov eax, dword [ebp - 4]
call fcn.00410a5c
mov edx, dword [ebp - 0x468]
lea eax, [ebp - 4]
call fcn.00405680
xor eax, eax
push ebp
push 0x4711f4
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.0046fbb8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x258], 0x22c
lea edx, [ebp - 0x258]
mov eax, dword [ebp - 0x18]
call fcn.0046fbd8
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4711d9
lea eax, [ebp - 0x470]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.004057e4
mov eax, dword [ebp - 0x470]
lea edx, [ebp - 0x46c]
call fcn.0040b7c8
mov eax, dword [ebp - 0x46c]
lea edx, [ebp - 0xc]
call fcn.0040a3b4
mov eax, dword [ebp - 0x250]
cmp eax, dword [ebp - 0x10]
je 0x4711c5
mov eax, dword [ebp - 0x250]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x4710f7
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, edi
call fcn.00470cc0
push 0x208
lea ecx, [ebp - 0x460]
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.00470cf0
test eax, eax
jne 0x4710c2
lea eax, [ebp - 8]
xor edx, edx
call fcn.00405680
jmp 0x4710f7
lea eax, [ebp - 0x478]
lea edx, [ebp - 0x460]
mov ecx, 0x104
call fcn.004057e4
mov eax, dword [ebp - 0x478]
lea edx, [ebp - 0x474]
call fcn.0040b6cc
mov eax, dword [ebp - 0x474]
lea edx, [ebp - 8]
call fcn.00410a5c
mov esi, dword [ebp - 4]
test esi, esi
je 0x471116
mov eax, esi
sub eax, 0xa
cmp word [eax], 2
je 0x471116
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00404fec
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x28], 0
je 0x47112a
mov eax, dword [ebp - 0x28]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 4
jle 0x471167
lea edx, [ebp - 0x47c]
mov eax, dword [ebp - 8]
call fcn.0040a3b4
mov eax, dword [ebp - 0x47c]
push eax
lea edx, [ebp - 0x480]
mov eax, dword [ebp - 4]
call fcn.0040a3b4
mov eax, dword [ebp - 0x480]
pop edx
call fcn.00405f48
test eax, eax
setg byte [ebp - 0x29]
jmp 0x47116b
mov byte [ebp - 0x29], 0
cmp byte [ebp - 0x29], 0
je 0x4711bf
lea edx, [ebp - 0x484]
mov eax, dword [ebp - 0xc]
call fcn.0040a3b4
mov edx, dword [ebp - 0x484]
mov eax, 0x471248
call fcn.00405f48
test eax, eax
jne 0x4711bf
mov eax, dword [ebp - 0x250]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x24], 0
je 0x4711bf
push 0
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 0x14], eax
push edi
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x258]
mov eax, dword [ebp - 0x18]
call fcn.0046fbf8
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x47102d
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4711fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471230
lea eax, [ebp - 0x484]
mov edx, 9
call fcn.00405624
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405624
ret