Function at 0x499600
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 0x499624
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4998b6
mov eax, dword [edi + 0xcc]
test eax, eax
je 0x499655
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x499647
mov ecx, dword [esi]
push ecx
call eax
add esp, 4
test eax, eax
je 0x4998b6
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.004c4ac0
lea eax, [edi + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x499692
mov eax, dword [eax]
push eax
push dword [0x53a498]
lea eax, [ebp - 0x414]
push str.___s_s
push eax
call fcn.00497e60
lea ecx, [ebp - 0x414]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4996b6
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 0x4996e3
mov eax, dword [eax]
push eax
push dword [0x53a4a0]
lea eax, [ebp - 0x414]
push str.___s_s
push eax
call fcn.00497e60
lea ecx, [ebp - 0x414]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499707
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.00497e60
lea ecx, [ebp - 0x414]
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499750
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 0x499780
mov eax, dword [eax]
push eax
push dword [0x53a4a4]
lea eax, [ebp - 0x414]
push str.___s__s_
push eax
call fcn.00497e60
lea ecx, [ebp - 0x414]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4997a4
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.00497e60
lea ecx, [ebp - 0x414]
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4997f0
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.00497e60
lea ecx, [ebp - 0x414]
add esp, 0x10
lea edx, [ecx + 2]
jmp 0x499840
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x499840
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 0x499877
mov eax, dword [ebp - 0x42c]
cmp dword [esi + 0x14], 8
jb 0x49987f
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.004c20c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004c20c9
mov esp, ebp
pop ebp
ret