Function at 0x451070
Capabilities:
Check if file exists
Create process on windows
Get file size

Disassembly:
sub esp, 0x44
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0xe4]
cmp eax, 1
jne 0x451090
mov ecx, esi
pop edi
pop esi
add esp, 0x44
jmp 0x453a20
test eax, eax
jne 0x4510a0
mov ecx, esi
pop edi
pop esi
add esp, 0x44
jmp fcn.00453cb0
cmp eax, 3
jne 0x45119b
cmp dword [esi + 0x104], 0
jne 0x451193
mov eax, dword [esi + 0xec]
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
cmp dword [eax - 4], 1
jle 0x451111
push dword [eax - 0xc]
lea ecx, [esi + 0xec]
call fcn.00402260
mov eax, dword [esi + 0xec]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xf0]
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], str.open
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x45114e
cmp dword [eax - 4], 1
jle 0x45114a
push ecx
lea ecx, [esi + 0xf0]
call fcn.00402260
mov eax, dword [esi + 0xf0]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x451193
mov eax, dword [esp + 0x44]
test eax, eax
je 0x451193
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 8], 0
setne al
pop edi
pop esi
add esp, 0x44
ret
xor al, al
pop edi
pop esi
add esp, 0x44
ret
cmp eax, 4
jne 0x4511ac
mov ecx, esi
pop edi
pop esi
add esp, 0x44
jmp fcn.00453fb0
pop edi
mov al, cl
pop esi
add esp, 0x44
ret
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x494d00
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x4c4074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xe4], 1
jne 0x453c96
cmp dword [edi + 0x104], 0
jne 0x453c96
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
xorps xmm0, xmm0
lea esi, [edi + 0xec]
push eax
lea edx, [ebp - 0x48]
movlpd qword [ebp - 0x48], xmm0
mov ecx, esi
call fcn.0040dfb0
add esp, 4
test eax, eax
jne 0x453c96
test byte [edi + 0xe8], 1
je 0x453bae
mov ecx, dword [esi]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
cmp dword [ecx - 4], 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
jle 0x453ad8
push dword [ecx - 0xc]
mov ecx, esi
call fcn.00402260
mov ecx, dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x40]
call fcn.0040edc0
add esp, 4
test eax, eax
jne 0x453b9b
mov eax, dword [ebp - 0x40]
mov ecx, eax
movzx eax, ax
shr ecx, 0x10
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x44], ecx
mov ecx, eax
shr ecx, 0x10
movzx eax, ax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], eax
call fcn.00403d50
mov ecx, eax
test ecx, ecx
je 0x453c9a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x44]
push str._d._d._d._d
push eax
call fcn.00408580
add esp, 0x14
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
lea ecx, [ebp - 0x3c]
movups xmmword [ebp - 0x3c], xmm0
push eax
call fcn.0041cd10
movups xmm0, xmmword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x453b9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00453980
test al, al
je 0x453c96
test byte [edi + 0xe8], 2
je 0x453c56
mov eax, dword [esi]
cmp dword [eax - 4], 1
jle 0x453bcf
push dword [eax - 0xc]
mov ecx, esi
call fcn.00402260
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x48], 0x4a85d0
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x453c1c
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x48], 0x4a85d0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
xor al, al
jmp 0x453c58
cmp dword [edi + 0x120], 0
je 0x453c76
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [edi + 0x120]
jne 0x453c76
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x48], 0x4a85d0
test esi, esi
je 0x453c56
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046e38e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x48], 0x4a85d0
test esi, esi
je 0x453c96
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
xor al, al
jmp 0x453c58
push 0x80004005
call fcn.004024c0
int3