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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c768
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x553948]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ecx
test eax, eax
je 0x4b681c
mov dword [eax], 0
test ecx, ecx
je 0x4b6826
mov dword [ecx], 0
test edx, edx
je 0x4b6830
mov dword [edx], 0
cmp dword [esi + 0x10], 0
mov byte [ebp - 0x4d], 0
je 0x4b6a61
test edx, edx
je 0x4b6a61
mov ecx, esi
call fcn.0041a1e0
push 0
push esi
mov edi, eax
call fcn.00416de0
add esp, 8
test al, al
jne 0x4b6a61
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b6a61
push edi
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x4b6a61
lea ecx, [ebp - 0x4c]
call fcn.0045f0c0
xor esi, esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], esi
call fcn.0045f3d0
test al, al
je 0x4b6a52
lea edx, [ebp - 0x2c]
push edx
call fcn.0042bdf0
add esp, 4
cmp dword [ebp - 0x1c], esi
jne 0x4b68ce
cmp dword [ebp - 0x18], 8
jb 0x4b68c0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406fa9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
jmp 0x4b6a4b
push 0x40
lea edx, [ebp - 0xb8]
push esi
push edx
call fcn.004e41d0
add esp, 0xc
cmp byte [ebp + 0x1c], 0
mov dword [ebp - 0xbc], 0x44
je 0x4b6906
mov eax, 1
mov dword [ebp - 0x90], 1
mov word [ebp - 0x8c], ax
xor eax, eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
cmp dword [ebx + 0x10], esi
je 0x4b692b
mov ecx, ebx
call fcn.0041a1e0
push eax
call fcn.0040caf5
add esp, 4
mov esi, eax
mov dword [ebp - 0x78], esi
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x4b6992
cmp dword [ebp - 0x18], 8
jae 0x4b6947
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x64]
push edx
lea edx, [ebp - 0xbc]
push edx
push eax
mov eax, dword [ebp + 0x18]
push ebx
push eax
push ebx
push ebx
push ebx
push esi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4b69b9
cmp esi, ebx
je 0x4b6975
push esi
call fcn.00402d0e
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x4b6987
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406fa9
add esp, 4
xor edx, edx
mov word [ebp - 0x2c], dx
jmp 0x4b6a48
cmp dword [ebp - 0x18], 8
jae 0x4b699b
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0xbc]
push edx
push eax
mov eax, dword [ebp + 0x18]
push ebx
push eax
push ebx
push ebx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x4b6964
mov edi, dword [ebp - 0x70]
mov dword [edi], ebx
cmp dword [ebp - 0x64], ebx
je 0x4b69fa
push 1
push ebx
push ebx
mov dword [ebp - 0x54], ebx
call fcn.0049c990
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 0x64]
add esp, 4
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [edx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4b69fa
mov edx, dword [ebp - 0x54]
mov dword [edi], edx
mov eax, dword [ebp - 0x6c]
cmp eax, ebx
je 0x4b6a06
mov ecx, dword [ebp - 0x5c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x4b6a1f
mov ecx, dword [ebp - 0x68]
cmp ecx, ebx
je 0x4b6a18
mov dword [ecx], eax
jmp 0x4b6a1f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x4d], 1
cmp esi, ebx
je 0x4b6a30
push esi
call fcn.00402d0e
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x4b6a42
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00406fa9
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.0045f120
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401316
mov esp, ebp
pop ebp
ret 0x24