Function at 0x47bff0
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 [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x3c
lea eax, [ebp - 0x464]
mov dword [ebp - 0x46c], 0x44
push 0
push eax
mov dword [ebp - 0x468], 0
call fcn.004c53a0
add esp, 0xc
lea eax, [ebp - 0x20c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x428], xmm0
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x47c118
lea eax, [ebp - 0x418]
push eax
push 0x50c558
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x47c0b0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c075
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x50d658
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call fcn.004c5767
xor ecx, ecx
push str.64.exe
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.004d6355
movzx eax, word [0x54ff20]
add esp, 0x14
cmp eax, 6
je 0x47c130
cmp eax, 9
je 0x47c129
push eax
lea eax, [ebp - 0x20c]
push str.Unsupported_processor_type:__d_n
push eax
call fcn.0042fa30
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x10
push 0x4fa6f4
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.004c34b7
mov esp, ebp
pop ebp
ret
mov esi, 0x98
jmp 0x47c135
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.004c5767
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004d6355
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004c913a
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0045ad30
add esp, 0x28
test al, al
jne 0x47c1ae
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47c118
lea eax, [ebp - 0x418]
push eax
push 0x50c558
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47c20d
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47c1d2
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x4fa444
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, word [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 0x47c118
cmp dword [ebp + 8], 0
je 0x47c279
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.004c34b7
mov esp, ebp
pop ebp
ret