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

Disassembly:
push 0x4ac
mov eax, 0x5106fd
call fcn.004d18f8
mov esi, ecx
mov edi, dword [ebp + 8]
call fcn.0040be79
test edi, edi
jne 0x405dab
xor ebx, ebx
mov ecx, esi
push ebx
call fcn.00405a88
lea eax, [esi + 0x8b8]
mov dword [ebp - 0x490], ebx
push eax
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 0x48c], ebx
call fcn.00406530
lea eax, [ebp - 0x4b8]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.0040d130
mov ecx, eax
call fcn.0040d60a
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x454]
call fcn.004066c5
pop ecx
lea ecx, [ebp - 0x4b8]
call fcn.004020b1
lea ecx, [ebp - 0x4a0]
mov byte [ebp - 4], 4
call fcn.004020b1
lea eax, [ebp - 0x43c]
push ebx
push eax
call fcn.0040d130
mov ecx, eax
call fcn.0040d60a
push 8
lea eax, [esi + 0x8e8]
mov byte [ebp - 4], 5
pop edi
mov ecx, eax
cmp dword [eax + 0x14], edi
jb 0x405c8f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x43c]
call fcn.00402455
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 0x405d0e
push 0x412
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.004e8520
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.0040146e
add esp, 0x20
lea eax, [ebp - 0x424]
push 0xa
push ebx
push eax
push str.explorer
jmp 0x405d44
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 0x405d52
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 0x405d89
lea eax, [ebp - 0x4b8]
push ebx
push eax
call fcn.0040d130
mov ecx, eax
call fcn.0040d60a
cmp dword [eax + 0x14], edi
jb 0x405d6d
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.004020b1
call fcn.0040607c
mov ecx, esi
call fcn.00405fa6
lea ecx, [ebp - 0x43c]
call fcn.004020b1
lea ecx, [ebp - 0x454]
jmp 0x405ed7
cmp edi, 0x2a
jne 0x405dbd
push edi
mov ecx, esi
call fcn.00405a88
jmp 0x405edc
mov ecx, dword [esi + 0x930]
xor ebx, ebx
test ecx, ecx
je 0x405dd2
mov eax, dword [ecx]
push ebx
call dword [eax + 0xf8]
mov ecx, dword [esi + 0x934]
test ecx, ecx
je 0x405de6
mov eax, dword [ecx]
push 1
call dword [eax + 0xf8]
push edi
call fcn.00469b60
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 0x405e10
sub ecx, dword [ebp - 0x470]
push ecx
push edx
lea ecx, [ebp - 0x488]
call fcn.00402321
push ecx
lea edx, [ebp - 0x488]
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x46c]
call fcn.00401c5c
pop ecx
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 8
call fcn.0040217b
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004e8520
push edi
push 0x53aa54
push 0xffffffffffffffff
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0040146e
mov ecx, dword [esi + 0x940]
add esp, 0x20
test ecx, ecx
je 0x405e97
mov eax, dword [ecx]
lea edx, [ebp - 0x21c]
push edx
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x944]
test ecx, ecx
je 0x405ebd
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 0x405ed1
mov eax, dword [ecx]
push 1
call dword [eax + 0xf8]
lea ecx, [ebp - 0x46c]
call fcn.004020b1
call fcn.004d18a2
ret 4