Function at 0x439414
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, 0x218
mov eax, dword [0x4c6f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlInitUnicodeString
push eax
call ebx
mov dword [0x4c965c], eax
push str.NtCreateKey
push esi
call ebx
mov dword [0x4c9c78], eax
push str.NtDeleteKey
push esi
call ebx
mov dword [0x4c9658], eax
push str.NtOpenKeyEx
push esi
call ebx
mov dword [0x4c9660], eax
push str.NtClose
push esi
call ebx
mov dword [0x4c9654], eax
push str.NtQueryKey
push esi
call ebx
mov dword [0x4c966c], eax
push str.NtEnumerateKey
push esi
call ebx
mov dword [0x4c9670], eax
push str.NtQueryValueKey
push esi
call ebx
mov dword [0x4c9664], eax
push str.NtSetValueKey
push esi
call ebx
mov dword [0x4c9668], eax
xor ecx, ecx
test eax, eax
je 0x43969b
cmp dword [0x4c965c], 0
je 0x43969b
cmp dword [0x4c9c78], 0
je 0x43969b
cmp dword [0x4c9660], 0
je 0x43969b
cmp dword [0x4c9658], 0
je 0x43969b
cmp dword [0x4c9654], 0
je 0x43969b
cmp dword [0x4c966c], 0
je 0x43969b
cmp dword [0x4c9670], 0
je 0x43969b
cmp dword [0x4c9664], 0
je 0x43969b
push str.RtlFormatCurrentUserKeyPath
push esi
call ebx
mov edi, eax
push str.RtlFreeUnicodeString
push esi
call ebx
xor ecx, ecx
test edi, edi
je 0x43969b
mov esi, eax
test eax, eax
je 0x43969b
lea ebx, [ebp - 0x220]
push ebx
call edi
test eax, eax
setns cl
js 0x43969b
mov dword [ebp - 0x224], ecx
mov eax, 0xff
mov edi, 0x4c9c7c
push eax
push dword [ebp - 0x21c]
push edi
call fcn.0047fb97
add esp, 0xc
push edi
call fcn.0047f79d
add esp, 4
mov ecx, 0xff
sub ecx, eax
push ecx
push 0x4958fc
push edi
call fcn.0047fb97
add esp, 0xc
push 0x5c
push dword [ebp - 0x21c]
call fcn.0046ca57
add esp, 8
add eax, 2
mov ecx, 0xff
push ecx
push eax
push 0x4c9674
call fcn.0047fc16
add esp, 0xc
push ebx
call esi
lea edi, [ebp - 0x218]
push 0x208
push 0
push edi
call fcn.0046c5c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0x104
push edi
push 0x496e60
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x439610
push eax
push edi
push esi
call fcn.0047fbdc
add esp, 0xc
test eax, eax
je 0x43963f
push 0x104
push edi
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x43963b
push eax
push edi
push esi
call fcn.0047fbdc
add esp, 0xc
test eax, eax
je 0x43963f
xor eax, eax
jmp 0x439641
mov al, 1
mov byte [0x4c9651], al
mov dword [ebp - 0x218], 0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x498406
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x439687
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push eax
call esi
test eax, eax
je 0x439687
cmp dword [ebp - 0x218], 0
setne al
jmp 0x439689
xor eax, eax
mov ecx, dword [ebp - 0x224]
mov byte [0x4c9874], al
mov byte [0x4c9650], 1
mov ebx, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00468d81
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret