Function at 0x439ad8
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 [0x4df19c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x4c5e44
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 [0x4e191c], eax
push str.NtCreateKey
push esi
call ebx
mov dword [0x4e1f38], eax
push str.NtDeleteKey
push esi
call ebx
mov dword [0x4e1918], eax
push str.NtOpenKeyEx
push esi
call ebx
mov dword [0x4e1920], eax
push str.NtClose
push esi
call ebx
mov dword [0x4e1914], eax
push str.NtQueryKey
push esi
call ebx
mov dword [0x4e192c], eax
push str.NtEnumerateKey
push esi
call ebx
mov dword [0x4e1930], eax
push str.NtQueryValueKey
push esi
call ebx
mov dword [0x4e1924], eax
push str.NtSetValueKey
push esi
call ebx
xor ecx, ecx
test eax, eax
mov dword [0x4e1928], eax
je 0x439d56
mov eax, dword [0x4e191c]
test eax, eax
je 0x439d56
mov eax, dword [0x4e1f38]
test eax, eax
je 0x439d56
mov eax, dword [0x4e1920]
test eax, eax
je 0x439d56
mov eax, dword [0x4e1918]
test eax, eax
je 0x439d56
mov eax, dword [0x4e1914]
test eax, eax
je 0x439d56
mov eax, dword [0x4e192c]
test eax, eax
je 0x439d56
mov eax, dword [0x4e1930]
test eax, eax
je 0x439d56
mov eax, dword [0x4e1924]
test eax, eax
je 0x439d56
push str.RtlFormatCurrentUserKeyPath
push esi
call ebx
mov edi, eax
push str.RtlFreeUnicodeString
push esi
call ebx
xor ecx, ecx
test edi, edi
je 0x439d56
mov esi, eax
test eax, eax
je 0x439d56
lea ebx, [ebp - 0x220]
push ebx
call edi
test eax, eax
js 0x439cfa
mov eax, 0xff
mov edi, 0x4e1f3c
push eax
push dword [ebp - 0x21c]
push edi
call fcn.004ab0f2
add esp, 0xc
push edi
call fcn.004aacf8
add esp, 4
mov ecx, 0xff
sub ecx, eax
push ecx
push 0x4c2200
push edi
call fcn.004ab0f2
add esp, 0xc
push 0x5c
push dword [ebp - 0x21c]
call fcn.00499f0a
add esp, 8
add eax, 2
mov ecx, 0xff
push ecx
push eax
push 0x4e1934
call fcn.004ab171
add esp, 0xc
push ebx
call esi
lea edi, [ebp - 0x218]
push 0x208
push 0
push edi
call fcn.00499950
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0x104
push edi
push 0x4c2438
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x439ccb
push eax
push edi
push esi
call fcn.004ab137
add esp, 0xc
test eax, eax
je 0x439cfe
push 0x104
push edi
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x439cf6
push eax
push edi
push esi
call fcn.004ab137
add esp, 0xc
test eax, eax
je 0x439cfe
xor eax, eax
jmp 0x439d00
xor ecx, ecx
jmp 0x439d56
mov al, 1
mov byte [0x4e1911], al
mov dword [ebp - 0x218], 0
push 0x4c4e74
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x439d46
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push eax
call esi
test eax, eax
je 0x439d46
cmp dword [ebp - 0x218], 0
setne al
jmp 0x439d48
xor eax, eax
mov cl, 1
mov byte [0x4e1b34], al
mov byte [0x4e1910], 1
mov ebx, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004956a1
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret