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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4adb4d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
mov eax, dword [0x4e2054]
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 0x45d88e
mov ecx, esi
call fcn.00460150
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 0x45d8aa
mov ecx, esi
call fcn.004603d0
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 0x45d99e
cmp dword [esi + 0x10c], 0
jne 0x45dac0
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 0x45d90d
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 0x45d94c
cmp dword [ecx - 4], 1
jle 0x45d943
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 0x45dac0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x45dac0
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 0x45d87d
call fcn.00404580
test eax, eax
je 0x45dad3
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.00404580
test eax, eax
je 0x45dad3
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 0x4c2090
call fcn.00403660
test al, al
jne 0x45da06
push 0
push 0x4c2090
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.0041d7d0
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 0x45da5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x45daa1
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45daa1
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 0x45da8e
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 0x45dac0
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