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

Disassembly:
push 0x4ac
mov eax, 0x506ffd
call fcn.004c8468
mov esi, ecx
mov edi, dword [ebp + 8]
call fcn.0040934a
test edi, edi
jne 0x4042fb
xor ebx, ebx
mov ecx, esi
push ebx
call fcn.00403fdd
lea eax, [esi + 0x8b8]
mov dword [ebp - 0x490], ebx
push eax
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 0x48c], ebx
call fcn.0040470d
lea eax, [ebp - 0x4b8]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.0040a009
mov ecx, eax
call fcn.0040a35d
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x454]
call fcn.004048a2
pop ecx
lea ecx, [ebp - 0x4b8]
call fcn.004020a3
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 4
call fcn.004020a3
lea eax, [ebp - 0x43c]
push ebx
push eax
call fcn.0040a009
mov ecx, eax
call fcn.0040a35d
push 8
lea eax, [esi + 0x8e8]
mov byte [ebp - 4], 5
pop edi
mov ecx, eax
cmp dword [eax + 0x14], edi
jb 0x4041e4
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00402447
cmp dword [ebp - 0x428], edi
lea eax, [ebp - 0x43c]
cmovae eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404263
push 0x412
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.004df090
cmp dword [ebp - 0x428], edi
lea eax, [ebp - 0x43c]
cmovae eax, dword [ebp - 0x43c]
push eax
push str._select____s_
push 0xffffffffffffffff
lea eax, [ebp - 0x424]
push 0x208
push eax
call fcn.0040145e
add esp, 0x20
lea eax, [ebp - 0x424]
push 0xa
push ebx
push eax
push str.explorer
jmp 0x404299
cmp dword [ebp - 0x440], edi
lea eax, [ebp - 0x454]
cmovae eax, dword [ebp - 0x454]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4042a7
cmp dword [ebp - 0x440], edi
lea eax, [ebp - 0x454]
push 0xa
cmovae eax, dword [ebp - 0x454]
push eax
push ebx
push ebx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4042de
lea eax, [ebp - 0x4b8]
push ebx
push eax
call fcn.0040a009
mov ecx, eax
call fcn.0040a35d
cmp dword [eax + 0x14], edi
jb 0x4042c2
mov eax, dword [eax]
push 0xa
push eax
push ebx
push ebx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x4b8]
call fcn.004020a3
mov ecx, esi
call fcn.0040459d
lea ecx, [ebp - 0x43c]
call fcn.004020a3
lea ecx, [ebp - 0x454]
jmp 0x404427
cmp edi, 0x2a
jne 0x40430d
push edi
mov ecx, esi
call fcn.00403fdd
jmp 0x40442c
mov ecx, dword [esi + 0x930]
xor ebx, ebx
test ecx, ecx
je 0x404322
mov eax, dword [ecx]
push ebx
call dword [eax + 0xf8]
mov ecx, dword [esi + 0x934]
test ecx, ecx
je 0x404336
mov eax, dword [ecx]
push 1
call dword [eax + 0xf8]
push edi
call fcn.004606f0
mov edx, eax
mov dword [ebp - 0x478], ebx
pop ecx
mov ecx, edx
mov dword [ebp - 0x474], 0xf
mov byte [ebp - 0x488], bl
lea eax, [ecx + 1]
mov dword [ebp - 0x470], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404360
sub ecx, dword [ebp - 0x470]
push ecx
push edx
lea ecx, [ebp - 0x488]
call fcn.00402313
push ecx
lea edx, [ebp - 0x488]
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x46c]
call fcn.00401c50
pop ecx
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 8
call fcn.0040216d
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004df090
push edi
push 0x52b158
push 0xffffffffffffffff
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0040145e
mov ecx, dword [esi + 0x940]
add esp, 0x20
test ecx, ecx
je 0x4043e7
mov eax, dword [ecx]
lea edx, [ebp - 0x21c]
push edx
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x944]
test ecx, ecx
je 0x40440d
mov eax, dword [ecx]
lea edx, [ebp - 0x46c]
push 8
pop edi
cmp dword [ebp - 0x458], edi
cmovae edx, dword [ebp - 0x46c]
push edx
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x950]
test ecx, ecx
je 0x404421
mov eax, dword [ecx]
push 1
call dword [eax + 0xf8]
lea ecx, [ebp - 0x46c]
call fcn.004020a3
call fcn.004c8412
ret 4