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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x678cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x71906c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x3a8
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x5c], esi
call fcn.00418630
push eax
mov ecx, esi
call fcn.00408cb0
lea eax, [ebp - 0x28]
push eax
call fcn.004ce02a
add esp, 0x20
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x424601
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x40]
push str.othpkgstartexename_s
push eax
call fcn.004cd2fa
add esp, 0xc
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x42464b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x424641
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4247ca
push edx
push ecx
call fcn.0042e830
add esp, 8
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x40]
push eax
push str.hget
push 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00418740
mov ecx, eax
call fcn.004064d0
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x64]
cmp dword [eax + 0x14], 0x10
jb 0x42468a
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42477f
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x64]
cmp dword [eax + 0x14], 0x10
jb 0x4246a7
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
test eax, eax
je 0x424730
push str..exe
push eax
call fcn.0051bf9a
add esp, 8
test eax, eax
jne 0x424730
push eax
push eax
push eax
push eax
mov eax, dword [edi + 0x14]
push 0x3a8
sub esp, 0x18
mov ecx, esp
push dword [eax + 0x64]
call fcn.00406d70
lea eax, [ebp - 0x58]
push eax
call fcn.004cdca9
add esp, 0x20
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4246f5
mov eax, dword [eax]
push eax
call fcn.004d51f8
add esp, 0x14
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x42477f
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x424775
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4247cf
jmp 0x424775
mov eax, dword [edi + 0x14]
push 5
push 0x6ff274
push 0x6ff274
push 0x3a8
sub esp, 0x18
mov ecx, esp
push dword [eax + 0x64]
call fcn.00406d70
lea eax, [ebp - 0x58]
push eax
call fcn.004cdca9
add esp, 0x20
cmp dword [eax + 0x14], 8
jb 0x424765
mov eax, dword [eax]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4246fe
push edx
push ecx
call fcn.0042e830
add esp, 8
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4247af
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4247a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4247cf
push edx
push ecx
call fcn.0042e830
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e1e5
mov esp, ebp
pop ebp
ret
call fcn.0050d5fe
call fcn.0050d5fe
int3