Function at 0x5270a0
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov esi, esp
mov dword [esi + 0xa8], ebp
mov edi, dword [ebp + 0x24]
mov dword [esi + 0xac], esp
mov dword [esi + 0xb8], 0xffffffff
mov dword [esi + 0xb4], 0x535170
mov edx, dword [ebp + 0x28]
lea eax, [esi + 0xb0]
mov ecx, dword fs:[0]
test edi, edi
mov dword [esi + 0xb0], ecx
mov dword fs:[0], eax
je 0x5270fa
mov dword [edi], 0
mov ecx, dword [ebp + 0x14]
test edx, edx
je 0x527107
mov dword [edx], 0
test ecx, ecx
je 0x52725a
mov eax, dword [ebp + 0xc]
mov dword [ecx], 0
cmp dword [eax + 0x10], 0
je 0x52725a
cmp dword [eax + 0x14], 7
mov edi, eax
jbe 0x52712c
mov edi, dword [eax]
push 0
push eax
call fcn.00429aa0
add esp, 8
test al, al
jne 0x52725a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x52725a
push edi
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x52725a
mov dword [esi + 8], edi
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.004a1d40
mov ecx, edi
mov dword [esi + 0xb8], 1
call fcn.004a1d60
test al, al
je 0x527252
lea eax, [esi + 0x28]
mov dword [esi], eax
push eax
call fcn.004a1b10
add esp, 4
cmp dword [esi + 0x38], 0
je 0x527278
lea ecx, [esi + 0x5c]
mov dword [esi + 0xb8], 2
call fcn.00435880
mov edi, dword [ebp + 0x2c]
test edi, edi
je 0x5271ff
mov eax, dword [edi + 0x50]
or eax, dword [edi + 0x54]
je 0x5271ff
mov dword [esi + 0xb8], 3
lea ecx, [esi + 0x5c]
push 1
call fcn.00435c90
mov edx, dword [ebp + 0x2c]
mov edi, 1
test al, al
je 0x5272c9
lea eax, [edx + 0x50]
lea ecx, [esi + 0x5c]
push dword [edx + 0x58]
push eax
push 0x20007
call fcn.00435d90
mov edi, dword [ebp + 0x2c]
test al, al
je 0x5273c8
cmp byte [ebp + 0x1c], 0
je 0x527218
mov dword [esi + 0x8c], 1
mov word [esi + 0x90], 1
mov eax, dword [ebp + 0x10]
test edi, edi
je 0x527225
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x68], ecx
xorps xmm0, xmm0
movaps xmmword [esi + 0x10], xmm0
cmp dword [eax + 0x10], 0
je 0x527284
cmp dword [eax + 0x14], 7
jbe 0x52723a
mov eax, dword [eax]
mov dword [esi + 0xb8], 3
push eax
call fcn.005d8724
add esp, 4
mov edi, dword [ebp + 0x2c]
jmp 0x527286
lea ecx, [esi + 0x40]
call fcn.004a1e70
xor ebx, ebx
test bl, bl
setne al
mov ecx, dword [esi + 0xb0]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x28
mov edi, 2
xor ebx, ebx
jmp 0x52741e
xor eax, eax
mov ecx, dword [ebp + 0x20]
cmp dword [esi + 0x3c], 7
jbe 0x527294
mov edx, dword [esi + 0x28]
mov dword [esi], edx
mov ebx, dword [ebp + 0x18]
lea edx, [esi + 0x60]
test ecx, ecx
mov dword [esi + 4], eax
je 0x5272b6
mov edx, ebx
test edi, edi
je 0x5272d0
mov edi, dword [edi + 0x3c]
mov dword [esi + 0xb8], 4
jmp 0x5272d2
test edi, edi
je 0x5272fd
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0xb8], 4
jmp 0x5272ff
xor ebx, ebx
jmp 0x527416
xor edi, edi
lea ebx, [esi + 0x10]
mov dword [esi + 0xb8], 4
push ebx
lea eax, [esi + 0x60]
push eax
push dword [esi]
push edi
push edx
push 0
push 0
push 0
push dword [esi + 4]
push dword [esi + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x527322
xor ecx, ecx
lea edi, [esi + 0x10]
mov dword [esi + 0xb8], 4
push edi
push edx
push dword [esi]
push ecx
push ebx
push 0
push 0
push 0
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov eax, dword [ebp + 0x2c]
je 0x5273ff
test eax, eax
je 0x52734a
mov eax, dword [eax + 0x38]
test eax, eax
je 0x52734a
push dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x5273de
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
cmp dword [esi + 0x10], 0
je 0x5273a6
mov dword [esi + 0xc], 0
push 0
call fcn.00498bd0
add esp, 4
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esi + 0xc]
push 1
push 0
push dword [esi + 8]
push ecx
push dword [esi]
push dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x5273a6
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x5273b2
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp + 0x28]
xor edi, edi
mov bl, 1
test eax, eax
je 0x527406
test ecx, ecx
je 0x5273d1
mov dword [ecx], eax
jmp 0x527406
xor ebx, ebx
mov edi, 1
jmp 0x527416
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov bl, 1
jmp 0x527406
push 0
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp + 0x2c]
push dword [eax + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x2c]
mov dword [eax + 0x38], 0
mov edi, 2
xor ebx, ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x527416
push eax
call fcn.005d31b1
add esp, 4
lea ecx, [esi + 0x5c]
call fcn.00472f20
mov ecx, dword [esi + 0x3c]
cmp ecx, 8
jb 0x527455
mov eax, dword [esi + 0x28]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x52744b
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x527470
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
lea ecx, [esi + 0x40]
call fcn.004a1e70
or edi, 2
cmp edi, 2
je 0x52725c
xor eax, eax
jmp 0x527261
mov dword [esi + 0xb8], 0
call fcn.006207e0
nop
push ebp
sub esp, 0x2c
lea esi, [ebp - 0xbc]
mov ebp, dword [esi + 0xa8]
call fcn.0061de80
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x2c
lea esi, [ebp - 0xbc]
mov ebp, dword [esi + 0xa8]
cmp dword [esi + 4], 0
je 0x5274c1
push dword [esi + 4]
call fcn.005d31b1
add esp, 4
add esp, 0x2c
pop ebp
ret