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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x53ac84]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 8
lea esi, [edi + 0x40]
mov eax, esi
jb 0x499684
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x499916
mov eax, dword [edi + 0xcc]
test eax, eax
je 0x4996b5
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4996a7
mov ecx, dword [esi]
push ecx
call eax
add esp, 4
test eax, eax
je 0x499916
xor eax, eax
mov dword [ebp - 0x41c], 0
push 0x410
push eax
mov word [ebp - 0x42c], ax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x418], 7
call fcn.004c49e0
lea eax, [edi + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4996f2
mov eax, dword [eax]
push eax
push dword [0x53a498]
lea eax, [ebp - 0x414]
push str.___s_s
push eax
call fcn.00497ec0
lea ecx, [ebp - 0x414]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499716
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.00405360
cmp dword [edi + 0x6c], 8
lea eax, [edi + 0x58]
jb 0x499743
mov eax, dword [eax]
push eax
push dword [0x53a4a0]
lea eax, [ebp - 0x414]
push str.___s_s
push eax
call fcn.00497ec0
lea ecx, [ebp - 0x414]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499767
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.00405360
push dword [edi + 4]
lea eax, [ebp - 0x414]
push dword [0x53a49c]
push str.___s_d
push eax
call fcn.00497ec0
lea ecx, [ebp - 0x414]
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4997b0
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.00405360
cmp dword [edi + 0x88], 8
lea eax, [edi + 0x74]
jb 0x4997e0
mov eax, dword [eax]
push eax
push dword [0x53a4a4]
lea eax, [ebp - 0x414]
push str.___s__s_
push eax
call fcn.00497ec0
lea ecx, [ebp - 0x414]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499804
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.00405360
push dword [edi + 0x8c]
lea eax, [ebp - 0x414]
push dword [0x53a4a8]
push str.___s_d
push eax
call fcn.00497ec0
lea ecx, [ebp - 0x414]
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499850
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.00405360
push dword [edi + 0x90]
lea eax, [ebp - 0x414]
push dword [0x53a4ac]
push str.___s_d
push eax
call fcn.00497ec0
lea ecx, [ebp - 0x414]
add esp, 0x10
lea edx, [ecx + 2]
jmp 0x4998a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4998a0
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.00405360
cmp dword [ebp - 0x418], 8
lea eax, [ebp - 0x42c]
jb 0x4998d7
mov eax, dword [ebp - 0x42c]
cmp dword [esi + 0x14], 8
jb 0x4998df
mov esi, dword [esi]
push ebx
push 0xa
push 0
push eax
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
lea ecx, [ebp - 0x42c]
cmp eax, 0x20
setg bl
call fcn.00407320
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004c1fe9
mov esp, ebp
pop ebp
ret