Function at 0x47bd60
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 [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x40
lea eax, [ebp - 0x468]
mov dword [ebp - 0x46c], 0x44
push 0
push eax
call fcn.004c52c0
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 0x47be83
lea eax, [ebp - 0x418]
push eax
push 0x50e568
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x47be1b
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47bde0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x50f668
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.004c5688
xor ecx, ecx
push str.64.exe
push 0x104
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.004d6277
movzx eax, word [0x555f4c]
add esp, 0x14
cmp eax, 6
je 0x47be9b
cmp eax, 9
je 0x47be94
push eax
lea eax, [ebp - 0x20c]
push str.Unsupported_processor_type:__d_n
push eax
call fcn.0042fa90
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x10
push 0x4fc6f4
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.004c3287
mov esp, ebp
pop ebp
ret
mov esi, 0x98
jmp 0x47bea0
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.004c5688
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004d6277
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004c905a
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0045b4a0
add esp, 0x28
test al, al
jne 0x47bf19
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47be83
lea eax, [ebp - 0x418]
push eax
push 0x50e568
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x47bf7b
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47bf40
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x4fc444
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 0x47be83
cmp dword [ebp + 8], 0
je 0x47bfe7
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.004c3287
mov esp, ebp
pop ebp
ret