Function at 0x404b90
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x429e3b
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x436ddc]
xor eax, esp
mov dword [esp + 0x558], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x436ddc]
xor eax, esp
push eax
lea eax, [esp + 0x574]
mov dword fs:[0], eax
mov eax, dword [esp + 0x584]
mov esi, edx
mov dword [esp + 0x3c], ecx
xor edx, edx
push str.TypeLib_
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], eax
mov word [esp + 0x158], dx
call fcn.00403520
mov dword [esp + 0x57c], 0
test esi, esi
jne 0x404c07
xor eax, eax
jmp 0x404c1f
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c10
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00402940
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call ebx
test eax, eax
je 0x404cc1
push str.Wow6432NodeTypeLib_
lea ecx, [esp + 0x18]
call fcn.004032b0
test esi, esi
jne 0x404c62
xor eax, eax
jmp 0x404c76
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404c67
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00402940
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call ebx
test eax, eax
je 0x404cc1
mov dword [esp + 0x57c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x404efc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x68]
push eax
push 0
mov edi, 0x40
push ecx
mov dword [esp + 0x54], 0x80
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], 0
call esi
test eax, eax
jne 0x404ed2
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push 0x20019
push 0
lea eax, [esp + 0x60]
push eax
push ecx
call ebx
test eax, eax
jne 0x404ea0
xor ebp, ebp
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x24]
push ebp
push ebp
push ebp
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xe8]
push ecx
push ebp
push edx
mov dword [esp + 0x48], edi
call esi
test eax, eax
jne 0x404e95
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push 0x20019
push 0
lea ecx, [esp + 0xe0]
push ecx
push edx
call ebx
test eax, eax
jne 0x404e68
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.win32
push ecx
call ebx
test eax, eax
je 0x404db0
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
push str.win64
push eax
call ebx
test eax, eax
jne 0x404e5d
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x158]
push edx
lea eax, [esp + 0x40]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x4c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404e52
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x404e27
cmp eax, 2
jne 0x404e52
push 0x104
lea edx, [esp + 0x360]
push edx
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x404e27
lea ecx, [esp + 0x35c]
push ecx
lea edx, [esp + 0x158]
push 0x104
push edx
call fcn.0041886f
add esp, 0xc
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x158]
push ecx
call fcn.00404f70
mov esi, eax
test esi, esi
jg 0x404f34
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, 0x40
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0xe8]
push eax
inc ebp
push ebp
push ecx
mov dword [esp + 0x48], edi
call esi
test eax, eax
je 0x404d51
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x68]
inc eax
push ecx
push eax
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], edi
call esi
test eax, eax
je 0x404d06
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x57c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404f08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x574]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x558]
xor ecx, esp
call fcn.00417c73
add esp, 0x56c
ret 4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x57c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x404f0a