Function at 0x452466
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
sub esp, 0x2fc
lea ebp, [esp - 4]
mov eax, dword [0x7bb3e8]
xor eax, ebp
mov dword [ebp + 0x2fc], eax
push 0x48
mov eax, 0x6ae094
call fcn.00652366
lea ecx, [ebp + 0xd8]
call fcn.00442f2b
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x4524d0
push ebx
push str.cannotReadCommandline
lea ecx, [ebp + 0x54]
call fcn.00453beb
push 0x7625d4
lea eax, [ebp + 0x54]
push eax
call fcn.0066a234
xor esi, esi
inc esi
cmp dword [ebp - 0x10], esi
jle 0x45252e
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [edi + esi*4]
call fcn.00442f07
sub esp, 0x1c
mov byte [ebp - 4], 1
mov ecx, esp
push 0x756a0c
call fcn.00442ebe
lea eax, [ebp + 0xa0]
mov byte [ebp - 4], bl
push eax
call fcn.00444749
push eax
lea ecx, [ebp + 0xd8]
mov byte [ebp - 4], 2
call fcn.004433dd
lea ecx, [ebp + 0xa0]
mov byte [ebp - 4], bl
call fcn.00442f8c
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x4524d8
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
lea ecx, [ebp + 0x1c]
call fcn.00442f2b
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.00442f2b
lea eax, [ebp + 0x84]
mov byte [ebp - 4], 4
push eax
call fcn.00444eab
mov esi, eax
push esi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 5
call fcn.0043c97b
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp + 0x38]
call fcn.0043c97b
lea ecx, [ebp + 0xa0]
mov byte [ebp - 4], 4
call fcn.00442f8c
lea ecx, [ebp + 0x84]
call fcn.00442f8c
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0xbc]
call fcn.00442e23
push 1
push 0x1a
lea eax, [ebp + 0xf4]
mov byte [ebp - 4], 6
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4525c2
push ebx
push str.noAppdataPath
jmp 0x4524ba
lea eax, [ebp + 0xf4]
push eax
lea ecx, [ebp]
call fcn.00442f07
mov eax, dword [ebp]
lea ecx, [ebp]
mov esi, 0x6d7a88
mov byte [ebp - 4], 7
push esi
call dword [eax + 0x24]
lea ecx, [ebp + 0xbc]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
lea ecx, [ebp + 0xbc]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x2c]
push 0x6d92b0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x452620
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x452637
push ebx
push str.existingExeNotAccessible
jmp 0x4524ba
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.0066c620
mov eax, dword [ebp + 4]
add esp, 0xc
cmp dword [ebp + 0x18], 8
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x48], 0x6d24b4
jae 0x45265e
lea eax, [ebp + 4]
cmp dword [ebp + 0xf0], 8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xdc]
jae 0x452676
lea eax, [ebp + 0xdc]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x50], 0x500
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4526a0
push ebx
push str.cannotExecuteExisting
jmp 0x4524ba
lea ecx, [ebp]
call fcn.00442f8c
lea ecx, [ebp + 0xbc]
call fcn.00442f8c
lea ecx, [ebp + 0x38]
call fcn.00442f8c
lea ecx, [ebp + 0x1c]
call fcn.00442f8c
lea ecx, [ebp + 0xd8]
call fcn.00442f8c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2fc]
xor ecx, ebp
call fcn.0065231e
lea esp, [ebp + 0x300]
pop ebp
ret