Function at 0x51c860
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404078
mov eax, dword [ebp - 8]
call fcn.00404078
lea edi, [ebp - 0x134]
xor eax, eax
push ebp
push 0x51cbbe
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
mov eax, 2
call fcn.005048b8
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.005048d8
jmp 0x51c976
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403e74
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x13c]
call fcn.0040a2dc
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.004095cc
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004095cc
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403fd4
je 0x51c96c
lea eax, [ebp - 0x13c]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403e74
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.004095cc
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004095cc
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403fd4
jne 0x51c96d
inc esi
mov edx, edi
mov eax, ebx
call fcn.005048f8
test eax, eax
jne 0x51c8cd
push ebx
call sub.kernel32.dll_CloseHandle_1
test esi, esi
jle 0x51cb93
cmp esi, 1
jle 0x51ca97
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
mov eax, 2
call fcn.005048b8
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.005048d8
jmp 0x51ca84
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403e74
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x13c]
call fcn.0040a2dc
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.004095cc
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004095cc
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403fd4
je 0x51ca5b
lea eax, [ebp - 0x13c]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403e74
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.004095cc
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004095cc
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403fd4
jne 0x51ca7b
mov eax, dword [ebp - 8]
call fcn.00404088
push eax
push 0
call sub.user32.dll_FindWindowA
test eax, eax
je 0x51ca7b
push 0
push 0
push 0x10
push eax
call sub.user32.dll_PostMessageA
mov edx, edi
mov eax, ebx
call fcn.005048f8
test eax, eax
jne 0x51c9bc
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x51cb93
dec esi
jne 0x51cb93
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
mov eax, 2
call fcn.005048b8
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.005048d8
jmp 0x51cb85
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403e74
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x13c]
call fcn.0040a2dc
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.004095cc
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004095cc
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403fd4
je 0x51cb64
lea eax, [ebp - 0x13c]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00403e74
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.004095cc
mov eax, dword [ebp - 0x138]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004095cc
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00403fd4
jne 0x51cb7c
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov dword [ebp - 0xc], eax
mov edx, edi
mov eax, ebx
call fcn.005048f8
test eax, eax
jne 0x51cac5
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51cbc5
lea eax, [ebp - 0x13c]
mov edx, 2
call fcn.00403c6c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403c6c
ret