Function at 0x451600
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Delete file
Get file attributes
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3c
lea eax, [ebp - 0x464]
mov dword [ebp - 0x46c], 0x44
push 0
push eax
mov dword [ebp - 0x468], 0
call fcn.004906c0
add esp, 0xc
lea eax, [ebp - 0x20c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x428], xmm0
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x45166b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x418]
push eax
push 0x4bb9b0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4516cb
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451690
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x4bca30
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call fcn.0049130d
xor ecx, ecx
push str.64.exe
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.00493457
movzx eax, word [0x4e5228]
add esp, 0x14
cmp eax, 6
je 0x45174c
cmp eax, 9
je 0x451745
push eax
lea eax, [ebp - 0x20c]
push str.Unsupported_processor_type:__d_n
push eax
call fcn.00426350
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x10
push 0x4b0220
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret
mov esi, 0x98
jmp 0x451751
mov esi, 0x99
push 0x104
lea eax, [ebp - 0x414]
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0049130d
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00493457
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004911bd
lea eax, [ebp - 0x20c]
push eax
movzx eax, si
push eax
call fcn.0043ea80
add esp, 0x28
test al, al
jne 0x4517cd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x451734
lea eax, [ebp - 0x418]
push eax
push 0x4bb9b0
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45182c
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4517f1
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x4aff6c
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x440], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x451734
cmp dword [ebp + 8], 0
je 0x451897
push 0xffffffffffffffff
push dword [ebp - 0x428]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x428]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x424]
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret