Function at 0x10058fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1009e237
mov eax, dword fs:[0]
push eax
mov eax, 0x20bc
call fcn.10088280
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x20b8], eax
push ebx
push esi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x20c8]
mov dword fs:[0], eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlNls
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
call esi
test eax, eax
jne 0x100592cf
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push ebx
push str.CodePage
push edx
call esi
test eax, eax
jne 0x100592cf
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push str.Language
push ecx
call esi
cmp eax, ebx
jne 0x100592cf
xor edx, edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
mov dword [esp + 0x20d0], ebx
push 0x81e
lea ecx, [esp + 0x108a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x1090], ax
call fcn.10079c60
mov esi, dword [esp + 0x1c]
add esp, 0xc
lea ebx, [esp + 0x1084]
mov ecx, 0x100ae6ec
call fcn.10058ee0
test eax, eax
je 0x100590fa
lea edx, [esp + 0x28]
push edx
mov eax, ebx
push eax
call fcn.10058b40
test eax, eax
je 0x100590fa
sub esp, 0x1c
lea ecx, [esp + 0x44]
mov esi, esp
mov dword [esp + 0x34], esp
push ecx
call fcn.100066a0
mov byte [esp + 0x20ec], 1
push edi
mov byte [esp + 0x20f0], 0
call fcn.10058450
test eax, eax
jne 0x100590fa
lea eax, [esp + 0x28]
mov ebx, edi
call fcn.10059b70
xor edx, edx
push 0x81e
push edx
lea eax, [esp + 0x4e]
push eax
mov word [esp + 0x50], dx
call fcn.10079c60
mov esi, dword [esp + 0x1c]
add esp, 0xc
lea ebx, [esp + 0x44]
mov ecx, str.OEMCP
call fcn.10058ee0
test eax, eax
je 0x10059173
lea ecx, [esp + 0x28]
push ecx
mov edx, ebx
push edx
call fcn.10058b40
test eax, eax
je 0x10059173
sub esp, 0x1c
lea eax, [esp + 0x44]
mov esi, esp
mov dword [esp + 0x34], esp
push eax
call fcn.100066a0
mov byte [esp + 0x20ec], 2
push edi
mov byte [esp + 0x20f0], 0
call fcn.10058450
test eax, eax
jne 0x10059173
lea eax, [esp + 0x28]
mov ebx, edi
call fcn.10059b70
xor ecx, ecx
push 0x81e
push ecx
lea edx, [esp + 0x86e]
push edx
mov word [esp + 0x870], cx
call fcn.10079c60
mov esi, dword [esp + 0x28]
add esp, 0xc
lea ebx, [esp + 0x864]
mov ecx, str.Default
call fcn.10058ee0
test eax, eax
je 0x100591f5
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
push ecx
call fcn.10058b40
test eax, eax
je 0x100591f5
sub esp, 0x1c
lea edx, [esp + 0x44]
mov esi, esp
mov dword [esp + 0x34], esp
push edx
call fcn.100066a0
mov byte [esp + 0x20ec], 3
push edi
mov byte [esp + 0x20f0], 0
call fcn.10058450
test eax, eax
jne 0x100591f5
lea eax, [esp + 0x28]
mov ebx, edi
call fcn.10059b70
push 0x81e
xor ebx, ebx
lea ecx, [esp + 0x18aa]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x18b0], ax
call fcn.10079c60
add esp, 0xc
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18a8]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push str.OEMHAL
push edx
mov dword [esp + 0x3c], 0x208
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10059297
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18a8]
push ecx
call fcn.10058b40
test eax, eax
je 0x10059297
sub esp, 0x1c
lea edx, [esp + 0x44]
mov esi, esp
mov dword [esp + 0x34], esp
push edx
call fcn.100066a0
mov byte [esp + 0x20ec], 4
push edi
mov byte [esp + 0x20f0], bl
call fcn.10058450
cmp eax, ebx
jne 0x10059297
lea eax, [esp + 0x28]
mov ebx, edi
call fcn.10059b70
mov dword [esp + 0x20d0], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x100592b6
mov eax, dword [esp + 0x2c]
push eax
call fcn.100755e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], cx
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x100592e0
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100592eb
push eax
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100592f6
push eax
call esi
xor eax, eax
mov ecx, dword [esp + 0x20c8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20b8]
xor ecx, esp
call fcn.100755ed
add esp, 0x20c8
ret