Function at 0x455590
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a9341
mov eax, dword fs:[0]
push eax
mov eax, 0x205c
call fcn.0048ed30
mov eax, dword [0x4c97a0]
xor eax, esp
mov dword [esp + 0x2058], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c97a0]
xor eax, esp
push eax
lea eax, [esp + 0x2070]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
mov ebp, dword [esp + 0x2080]
lea ecx, [esp + 0x3c]
xor eax, eax
push ecx
mov dword [esp + 0x38], ebp
mov word [esp + 0x3c], ax
call fcn.00454a80
lea edx, [esp + 0x18]
push edx
push 1
xor ebx, ebx
push ebx
push str.CommonLanguageResources
mov dword [esp + 0x2088], ebx
push ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4556bb
mov ebp, 4
mov dword [esp + 0x20], ebp
mov eax, str.UILanguage
cmp edi, 9
je 0x455630
mov eax, str.SKULanguage
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4556b0
cmp dword [esp + 0x1c], ebp
jne 0x4556b0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4556b0
cmp edi, 9
jne 0x45566a
cmp eax, 0x804
jne 0x4556b0
mov edi, dword [esi]
mov esi, dword [esi + 4]
mov word [esp + 0x38], ax
cmp dword [esp + 0x2084], ebx
je 0x455691
mov eax, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3c]
push eax
jmp 0x4556a2
lea ecx, [esp + 0x3c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
push ecx
lea eax, [esp + 0x28]
call fcn.00454930
mov dword [eax], edi
mov dword [eax + 4], esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x58], ebx
jne 0x4556db
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x207c], 0xffffffff
call fcn.00456450
jmp 0x4558cf
mov edx, dword [0x4ce67c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4ce67c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x2078], 1
xor ebp, ebp
lea esp, [esp]
mov ecx, dword [ebp + 0x4cdffc]
push ecx
push str._sInstallRoot
lea edi, [esp + 0x28]
call fcn.0046afd0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
add esp, 8
lea edx, [esp + 0x18]
push edx
push 1
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x455863
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
push str.Path
push edx
mov dword [esp + 0x34], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x455858
mov eax, dword [esp + 0x2c]
cmp eax, 1
je 0x45577a
cmp eax, 2
jne 0x455858
mov ecx, dword [esp + 0x1c]
shr ecx, 1
cmp word [esp + ecx*2 + 0x68], 0x5c
mov dword [esp + 0x1c], ecx
je 0x45579b
mov eax, 0x5c
mov word [esp + ecx*2 + 0x6a], ax
inc ecx
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp + 0x4ce000]
lea edx, [esp + ecx*2 + 0x6a]
push eax
mov eax, SysReAllocString
mov ecx, 0x1000
call fcn.0046a070
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x34]
push 0x4b4c24
push edx
call fcn.00468430
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4557ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x24]
lea esi, [esp + 0x6c]
call fcn.00445a00
test eax, eax
je 0x455858
mov eax, dword [ebp + 0x4cdff8]
cmp dword [esp + 0x2084], ebx
je 0x455835
lea ecx, [esp + 0x3c]
mov dword [esp + 0x68], eax
push ecx
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 1
call fcn.00454930
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x455858
lea edx, [esp + 0x3c]
mov dword [esp + 0x60], eax
push edx
lea eax, [esp + 0x60]
mov dword [esp + 0x60], ebx
call fcn.00454930
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebp, 0xc
cmp ebp, 0x78
jb 0x455700
cmp dword [esp + 0x58], 1
jbe 0x455881
lea ebx, [esp + 0x38]
call fcn.004554f0
xor ebx, ebx
mov byte [esp + 0x2078], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4558a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], ecx
mov esi, ecx
mov dword [esp + 0x2078], 2
call fcn.00456410
mov edx, dword [esp + 0x3c]
push edx
call fcn.0048b128
add esp, 4
mov ecx, dword [esp + 0x2070]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2058]
xor ecx, esp
call fcn.0048b133
add esp, 0x2068
ret 8