Function at 0x43f4a0
Capabilities:
Accept command line arguments
Link many functions at runtime
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov eax, dword [0x49c3bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x485f84
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.RtlInitUnicodeString
push eax
call ebx
mov dword [0x49f2a0], eax
push str.NtCreateKey
push esi
call ebx
mov dword [0x49f8bc], eax
push str.NtDeleteKey
push esi
call ebx
mov dword [0x49f29c], eax
push str.NtOpenKeyEx
push esi
call ebx
mov dword [0x49f2a4], eax
push str.NtClose
push esi
call ebx
mov dword [0x49f298], eax
push str.NtQueryKey
push esi
call ebx
mov dword [0x49f2b0], eax
push str.NtEnumerateKey
push esi
call ebx
mov dword [0x49f2b4], eax
push str.NtQueryValueKey
push esi
call ebx
mov dword [0x49f2a8], eax
push str.NtSetValueKey
push esi
call ebx
xor ecx, ecx
test eax, eax
mov dword [0x49f2ac], eax
je 0x43f71e
mov eax, dword [0x49f2a0]
test eax, eax
je 0x43f71e
mov eax, dword [0x49f8bc]
test eax, eax
je 0x43f71e
mov eax, dword [0x49f2a4]
test eax, eax
je 0x43f71e
mov eax, dword [0x49f29c]
test eax, eax
je 0x43f71e
mov eax, dword [0x49f298]
test eax, eax
je 0x43f71e
mov eax, dword [0x49f2b0]
test eax, eax
je 0x43f71e
mov eax, dword [0x49f2b4]
test eax, eax
je 0x43f71e
mov eax, dword [0x49f2a8]
test eax, eax
je 0x43f71e
push str.RtlFormatCurrentUserKeyPath
push esi
call ebx
mov edi, eax
push str.RtlFreeUnicodeString
push esi
call ebx
xor ecx, ecx
test edi, edi
je 0x43f71e
mov esi, eax
test eax, eax
je 0x43f71e
lea ebx, [ebp - 0x220]
push ebx
call edi
test eax, eax
js 0x43f6c2
mov eax, 0xff
mov edi, 0x49f8c0
push eax
push dword [ebp - 0x21c]
push edi
call fcn.0046eff2
add esp, 0xc
push edi
call fcn.0046ebf8
add esp, 4
mov ecx, 0xff
sub ecx, eax
push ecx
push 0x4832f0
push edi
call fcn.0046eff2
add esp, 0xc
push 0x5c
push dword [ebp - 0x21c]
call fcn.0045db6a
add esp, 8
add eax, 2
mov ecx, 0xff
push ecx
push eax
push 0x49f2b8
call fcn.0046f071
add esp, 0xc
push ebx
call esi
lea edi, [ebp - 0x218]
push 0x208
push 0
push edi
call fcn.0045d5a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0x104
push edi
push 0x483ff4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x43f693
push eax
push edi
push esi
call fcn.0046f037
add esp, 0xc
test eax, eax
je 0x43f6c6
push 0x104
push edi
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x43f6be
push eax
push edi
push esi
call fcn.0046f037
add esp, 0xc
test eax, eax
je 0x43f6c6
xor eax, eax
jmp 0x43f6c8
xor ecx, ecx
jmp 0x43f71e
mov al, 1
mov byte [0x49f295], al
mov dword [ebp - 0x218], 0
push 0x484156
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43f70e
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push eax
call esi
test eax, eax
je 0x43f70e
cmp dword [ebp - 0x218], 0
setne al
jmp 0x43f710
xor eax, eax
mov cl, 1
mov byte [0x49f4b8], al
mov byte [0x49f294], 1
mov ebx, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459221
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret