Function at 0x10012830
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x100370a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x230], eax
xor ebx, ebx
push edi
xor eax, eax
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov edi, 0x1000
call fcn.1000e910
push 0x400
push ebx
push 0x10039e20
mov dword [ebp - 0x220], 0x53de
call fcn.100157f0
add esp, 0xc
lea eax, [ebp - 0x220]
call fcn.1000eb80
mov esi, dword [eax + 4]
lea eax, [ebp - 0x220]
call fcn.1000eb80
mov eax, dword [eax]
push 0x10039e20
push esi
push eax
call fcn.10005710
xor eax, eax
nop
mov cl, byte [eax + 0x10039e20]
mov byte [ebp + eax - 0x14], cl
inc eax
test cl, cl
jne 0x100128b0
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 0xf], 0x2e
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [ebp - 0x22c], ebx
test ebx, ebx
jne 0x100128ed
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013396
mov esp, ebp
pop ebp
ret
push 0x400
push 0
push 0x10039e20
mov dword [ebp - 0x220], 0x53df
call fcn.100157f0
add esp, 0xc
lea eax, [ebp - 0x220]
call fcn.1000eb80
mov esi, dword [eax + 4]
lea eax, [ebp - 0x220]
call fcn.1000eb80
mov eax, dword [eax]
push 0x10039e20
push esi
push eax
call fcn.10005710
push 0x10039e20
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x10012965
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebx - 2]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013396
mov esp, ebp
pop ebp
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x100129ac
lea ecx, [ebp - 0x234]
push ecx
push edi
push eax
push 5
call ebx
mov esi, eax
test esi, esi
je 0x100129b8
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0xc0000004
jne 0x100129b3
add edi, edi
cmp edi, 0x80000
jb 0x10012965
jmp 0x100129b8
mov esi, 0xfffffffd
jmp 0x100129b8
mov esi, 0xfffffffc
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x100129dc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013396
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x220]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x10012a5d
push 0x104
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.100150d5
mov edx, dword [ebp - 0x230]
add esp, 0xc
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.100137f0
add esp, 8
test eax, eax
jne 0x10012a5d
mov ecx, dword [edi + 0x44]
push ecx
push eax
push 1
mov dword [ebp - 0x228], 1
call ebx
mov esi, eax
test esi, esi
je 0x10012a5d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10012a4e
mov dword [ebp - 0x224], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi]
test eax, eax
je 0x10012a67
add edi, eax
jmp 0x100129e8
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x228], 0
jne 0x10012a93
mov eax, 0xfffffffb
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10013396
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 8]
neg eax
sbb eax, eax
pop edi
and eax, 7
pop esi
xor ecx, ebp
add eax, 0xfffffffa
pop ebx
call fcn.10013396
mov esp, ebp
pop ebp
ret