Function at 0x440330
Capabilities:
Check if file exists
Create process on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a72b3
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa8]
mov ebp, dword [esp + 0xa4]
mov dword [esp + 0x14], eax
xor eax, eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], eax
mov word [esp + 0x78], ax
mov dword [esp + 0x9c], eax
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 8]
jbe 0x4403ad
call fcn.00484029
mov ebx, esi
nop
mov esi, dword [ebp + 8]
cmp dword [ebp + 4], esi
jbe 0x4403bd
call fcn.00484029
cmp ebx, esi
je 0x4404a3
push 0x208
call fcn.004692ac
add esp, 4
cmp ebx, dword [ebp + 8]
mov edi, eax
jb 0x4403de
call fcn.00484029
cmp dword [ebx + 0x18], 8
jb 0x4403e9
mov eax, dword [ebx + 4]
jmp 0x4403ec
lea eax, [ebx + 4]
push eax
push 0x104
push edi
call fcn.00485454
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44040d
push edi
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
xor esi, esi
mov eax, edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], esi
mov word [esp + 0x20], si
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x440425
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x24]
call fcn.00406d50
mov ecx, esi
push 0
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x7c]
mov byte [esp + 0xa4], 1
call fcn.00408330
mov byte [esp + 0x9c], 0
cmp dword [esp + 0x34], 8
jb 0x440474
mov edx, dword [esp + 0x20]
push edx
call fcn.004692b1
add esp, 4
push 1
push 0x4b6254
lea ecx, [esp + 0x7c]
call fcn.00408260
push edi
call fcn.004692b1
add esp, 4
cmp ebx, dword [ebp + 8]
jb 0x440497
call fcn.00484029
mov edi, dword [esp + 0x18]
add ebx, 0x1c
jmp 0x4403b0
push 0x38
lea eax, [esp + 0x40]
push 0
push eax
call fcn.0048a580
mov esi, 8
add esp, 0xc
cmp dword [edi + 0x18], esi
mov dword [esp + 0x38], 0x3c
mov dword [esp + 0x3c], 0x40
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], str.open
jb 0x4404e7
mov ecx, dword [edi + 4]
mov dword [esp + 0x48], ecx
jmp 0x4404ee
add edi, 4
mov dword [esp + 0x48], edi
cmp dword [esp + 0x8c], esi
jb 0x440501
mov edx, dword [esp + 0x78]
mov dword [esp + 0x4c], edx
jmp 0x440509
lea eax, [esp + 0x78]
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x58], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x44053a
cmp dword [esp + 0x8c], esi
jb 0x440536
mov edx, dword [esp + 0x78]
push edx
call fcn.004692b1
add esp, 4
xor al, al
jmp 0x440573
mov eax, dword [esp + 0x70]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x44055b
mov ecx, dword [esp + 0x70]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x8c], esi
jb 0x440571
mov edx, dword [esp + 0x78]
push edx
call fcn.004692b1
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.00483bf3
add esp, 0x8c
ret