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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa916
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x62cf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x2c]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0xb4], edx
cmp dword [ebp - 0xb4], 0
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xbc], edx
je 0x514a54
mov ecx, dword [ebp - 0xb4]
mov dword [ecx], 0
mov ecx, dword [ebp - 0xb0]
test edx, edx
je 0x514a5e
mov dword [edx], 0
test ecx, ecx
je 0x514a68
mov dword [ecx], 0
cmp dword [eax + 0x10], 0
mov byte [ebp - 0xa5], 0
je 0x514e9b
test ecx, ecx
je 0x514e9b
cmp dword [eax + 0x14], 8
mov dword [ebp - 0xac], eax
jb 0x514a95
mov ecx, dword [eax]
mov dword [ebp - 0xac], ecx
push 0
push eax
call fcn.004303e0
add esp, 8
test al, al
jne 0x514e9b
push dword [ebp - 0xac]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x514e9b
push dword [ebp - 0xac]
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x514e9b
lea ecx, [ebp - 0x44]
call fcn.0049d660
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.0049d9a0
test al, al
je 0x514e93
lea eax, [ebp - 0x28]
push eax
call fcn.0049d8e0
add esp, 4
cmp dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
jne 0x514b12
lea ecx, [ebp - 0x28]
call fcn.0040a580
jmp 0x514e93
push 0x4c
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0056aed0
add esp, 0xc
lea ecx, [ebp - 0x90]
call fcn.00438830
mov byte [ebp - 4], 2
test edi, edi
je 0x514bb3
mov eax, dword [edi + 0x50]
or eax, dword [edi + 0x54]
je 0x514bb3
push 1
lea ecx, [ebp - 0x90]
call fcn.00438b40
test al, al
je 0x514b6c
push dword [edi + 0x58]
lea eax, [edi + 0x50]
push eax
push 0x20007
lea ecx, [ebp - 0x90]
call fcn.00438c40
test al, al
jne 0x514bb3
lea ecx, [ebp - 0x90]
call fcn.0045bb30
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x514b90
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a5e0
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0049d6e0
xor al, al
jmp 0x514ea1
cmp byte [ebp + 0x1c], 0
je 0x514bc9
mov eax, 1
mov dword [ebp - 0x60], 1
mov word [ebp - 0x5c], ax
test edi, edi
je 0x514bd6
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x84], eax
cmp dword [esi + 0x10], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xa4], xmm0
jne 0x514bea
xor esi, esi
jmp 0x514bfd
cmp dword [esi + 0x14], 8
jb 0x514bf2
mov esi, dword [esi]
push esi
call fcn.00415341
add esp, 4
mov esi, eax
mov dword [ebp - 0xc0], esi
cmp dword [ebp - 0x94], 0
mov byte [ebp - 4], 4
je 0x514c9d
test edi, edi
je 0x514c1d
mov ecx, dword [edi + 0x3c]
jmp 0x514c1f
xor ecx, ecx
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0xa4]
push edx
lea edx, [ebp - 0x8c]
push edx
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
push dword [ebp + 0x18]
push 0
push 0
push 0
push esi
push dword [ebp - 0xac]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x514d1b
mov byte [ebp - 4], 5
test esi, esi
je 0x514c70
push esi
call fcn.0040a1b5
add esp, 4
lea ecx, [ebp - 0x90]
call fcn.0045bb30
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x514e83
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a5e0
jmp 0x514e83
test edi, edi
je 0x514ca6
mov ecx, dword [edi + 0x3c]
jmp 0x514ca8
xor ecx, ecx
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0xa4]
push edx
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
push dword [ebp + 0x18]
push 0
push 0
push 0
push esi
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x514d1b
mov byte [ebp - 4], 7
test esi, esi
je 0x514cee
push esi
call fcn.0040a1b5
add esp, 4
lea ecx, [ebp - 0x90]
call fcn.0045bb30
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp eax, 8
jb 0x514e83
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a5e0
jmp 0x514e83
test edi, edi
je 0x514d92
mov eax, dword [edi + 0x38]
test eax, eax
je 0x514d92
push dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x514d92
push eax
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x38], 0
mov byte [ebp - 4], 9
test esi, esi
je 0x514d65
push esi
call fcn.0040a1b5
add esp, 4
lea ecx, [ebp - 0x90]
call fcn.0045bb30
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
cmp eax, 8
jb 0x514e83
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a5e0
jmp 0x514e83
cmp dword [ebp - 0xa4], 0
mov edi, dword [ebp - 0xb0]
mov dword [edi], 0
je 0x514df1
push 1
push 0
push 0
mov dword [ebp - 0x94], 0
call fcn.004798d0
add esp, 4
push eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0xb8]
mov eax, dword [eax + 4]
push dword [eax]
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x514df1
mov eax, dword [ebp - 0x94]
mov dword [edi], eax
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x514e03
mov eax, dword [ebp - 0x9c]
mov dword [ecx], eax
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x514e22
mov ecx, dword [ebp - 0xbc]
test ecx, ecx
je 0x514e1b
mov dword [ecx], eax
jmp 0x514e22
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xa5], 1
mov byte [ebp - 4], 0xb
test esi, esi
je 0x514e3a
push esi
call fcn.0040a1b5
add esp, 4
lea ecx, [ebp - 0x90]
call fcn.0045bb30
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x514e83
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 0xc
cmp edx, 0x1000
jb 0x514e79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x514ebe
push edx
push ecx
call fcn.0040a1a2
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x44]
call fcn.0049d6e0
mov al, byte [ebp - 0xa5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004016cd
mov esp, ebp
pop ebp
ret 0x28
call fcn.0056e2db
int3