Function at 0x463474
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 [0x533014]
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 [0x545d50], eax
push str.NtCreateKey
push esi
call ebx
mov dword [0x54636c], eax
push str.NtDeleteKey
push esi
call ebx
mov dword [0x545d4c], eax
push str.NtOpenKeyEx
push esi
call ebx
mov dword [0x545d54], eax
push str.NtClose
push esi
call ebx
mov dword [0x545d48], eax
push str.NtQueryKey
push esi
call ebx
mov dword [0x545d60], eax
push str.NtEnumerateKey
push esi
call ebx
mov dword [0x545d64], eax
push str.NtQueryValueKey
push esi
call ebx
mov dword [0x545d58], eax
push str.NtSetValueKey
push esi
call ebx
mov dword [0x545d5c], eax
mov dword [ebp - 0x224], 0
cmp dword [0x545d50], 0
je 0x463727
cmp dword [0x54636c], 0
je 0x463727
cmp dword [0x545d54], 0
je 0x463727
cmp dword [0x545d4c], 0
je 0x463727
cmp dword [0x545d48], 0
je 0x463727
cmp dword [0x545d60], 0
je 0x463727
cmp dword [0x545d64], 0
je 0x463727
cmp dword [0x545d58], 0
je 0x463727
test eax, eax
je 0x463727
push str.RtlFormatCurrentUserKeyPath
push esi
call ebx
mov edi, eax
push str.RtlFreeUnicodeString
push esi
call ebx
mov dword [ebp - 0x224], 0
test edi, edi
je 0x463727
mov esi, eax
test eax, eax
je 0x463727
xor eax, eax
dec eax
lea ebx, [ebp - 0x220]
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov ecx, edi
call dword [section..00cfg]
push ebx
call edi
test eax, eax
setns al
mov dword [ebp - 0x224], eax
js 0x463727
mov eax, 0xff
mov edi, 0x546370
push eax
push dword [ebp - 0x21c]
push edi
call fcn.004fb423
add esp, 0xc
push edi
call fcn.004fb029
add esp, 4
mov ecx, 0xff
sub ecx, eax
push ecx
push 0x51e844
push edi
call fcn.004fb423
add esp, 0xc
push 0x5c
push dword [ebp - 0x21c]
call fcn.004e65b2
add esp, 8
add eax, 2
mov ecx, 0xff
push ecx
push eax
push 0x545d68
call fcn.004fb4a2
add esp, 0xc
mov ecx, esi
call dword [section..00cfg]
push ebx
call esi
lea ebx, [ebp - 0x218]
push 0x208
push 0
push ebx
call fcn.004e5eb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0x104
push ebx
push 0x51ed8c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x463698
push eax
push ebx
push esi
call fcn.004fb468
add esp, 0xc
test eax, eax
je 0x4636c7
push 0x104
push ebx
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x4636c3
push eax
push ebx
push esi
call fcn.004fb468
add esp, 0xc
test eax, eax
je 0x4636c7
xor eax, eax
jmp 0x4636c9
mov al, 1
mov byte [0x545d45], al
mov dword [ebp - 0x218], 0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x522930
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x463719
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
mov ecx, esi
call dword [section..00cfg]
push ebx
push edi
call esi
test eax, eax
je 0x463719
cmp dword [ebp - 0x218], 0
setne al
jmp 0x46371b
xor eax, eax
mov byte [0x545f68], al
mov byte [0x545d44], 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3343
mov eax, dword [ebp - 0x224]
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret