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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af55d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
mov eax, dword [0x4e4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0xec]
xor al, al
cmp ecx, 1
jne 0x45e58e
mov ecx, esi
call fcn.00460e20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x45e5aa
mov ecx, esi
call fcn.004610a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp ecx, 3
jne 0x45e69e
cmp dword [esi + 0x10c], 0
jne 0x45e7c0
mov eax, dword [esi + 0xf4]
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x40
cmp dword [eax - 4], 1
jle 0x45e60d
push dword [eax - 0xc]
lea ecx, [esi + 0xf4]
call fcn.00402500
mov ecx, dword [esi + 0xf8]
mov eax, dword [esi + 0xf4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x44], str.open
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x45e64c
cmp dword [ecx - 4], 1
jle 0x45e643
push eax
lea ecx, [esi + 0xf8]
call fcn.00402500
mov eax, dword [esi + 0xf8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x45e7c0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45e7c0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x14], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp ecx, 4
jne 0x45e57d
call fcn.00404500
test eax, eax
je 0x45e7d3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
call fcn.00404500
test eax, eax
je 0x45e7d3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 0x4c4078
call fcn.00403660
test al, al
jne 0x45e706
push 0
push 0x4c4078
lea ecx, [ebp - 0x10]
call fcn.004037d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x108]
push eax
lea eax, [esi + 0x104]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x114]
push eax
lea edx, [esi + 0x100]
lea ecx, [esi + 0xfc]
call fcn.0041e460
add esp, 0x14
mov edi, eax
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov ecx, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x45e75e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x45e7a1
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45e7a1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45e78e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x45e7c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004027c0
int3