Function at 0x471590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c29f1
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4eb6b8]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edx
jb 0x4715f3
mov ecx, dword [edi]
jmp 0x4715f5
mov ecx, edi
mov eax, dword [eax]
lea edx, [esp + 0x20]
push edx
mov edx, dword [ebp + 0x14]
or edx, 0x20019
push edx
xor ebx, ebx
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x4717e8
lea ecx, [esp + 0x34]
push ecx
call fcn.00410ff0
mov dword [esp + 0x130], ebx
mov edx, dword [esp + 0x18]
push esi
push ecx
push str.__strKeyName:
push ecx
push edi
push ecx
push str.._strSubKey:
push ecx
push edx
push ecx
lea eax, [esp + 0x5c]
push str.RegOpenKeyEx_Failed._lStatus:
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.004100e0
add esp, 4
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 0xc
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 8
push 0x19
mov esi, 0xf
push str.CRegUtility::ReadRegValue
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.004159b0
mov byte [esp + 0x130], 1
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xf0]
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.004159b0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004110f0
mov byte [esp + 0x130], 3
push eax
push 0x42
push ebx
call fcn.004117f0
push eax
lea edx, [esp + 0xdc]
lea ecx, [esp + 0xf8]
call fcn.0047acf0
mov byte [esp + 0x130], 2
cmp dword [esp + 0x118], 8
jb 0x471741
mov eax, dword [esp + 0x104]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], cx
mov byte [esp + 0x130], 1
mov edi, 0x10
cmp dword [esp + 0xfc], edi
jb 0x471783
mov edx, dword [esp + 0xe8]
push edx
call fcn.0049b30a
add esp, 4
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov byte [esp + 0x130], bl
cmp dword [esp + 0xe0], edi
jb 0x4717b8
mov eax, dword [esp + 0xcc]
push eax
call fcn.0049b30a
add esp, 4
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004039f0
xor al, al
jmp 0x471d9c
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
mov eax, esi
mov dword [ecx], ebx
mov byte [esp + 0x23], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
call fcn.00410cd0
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x471828
cmp eax, ebx
jne 0x471b58
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049aac8
mov ecx, dword [esp + 0x20]
add esp, 4
mov edx, eax
mov dword [esp + 0x18], edx
cmp ecx, ebx
jbe 0x47186a
xor eax, eax
movzx esi, ax
mov eax, esi
shl esi, 0x10
or eax, esi
shr ecx, 1
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x1c]
push ecx
push ebx
mov eax, esi
call fcn.00410cd0
mov edx, dword [esp + 0x30]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
je 0x471a65
lea eax, [esp + 0x34]
push eax
call fcn.00410ff0
mov dword [esp + 0x130], 4
push esi
push ecx
push str.__strKeyName:
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push ecx
push str.._strSubKey:
push ecx
push edi
push ecx
lea edx, [esp + 0x5c]
push str.RegQueryValueEx_Failed._lStatus:
push edx
call fcn.00418890
add esp, 0xc
push eax
call fcn.004100e0
add esp, 4
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 0xc
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 8
push 0x19
mov esi, 0xf
push str.CRegUtility::ReadRegValue
lea ecx, [esp + 0xf0]
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.004159b0
mov byte [esp + 0x130], 5
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.004159b0
mov byte [esp + 0x130], 6
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004110f0
mov byte [esp + 0x130], 7
push eax
push 0x5b
push ebx
call fcn.004117f0
push eax
lea edx, [esp + 0xf8]
lea ecx, [esp + 0xdc]
call fcn.0047acf0
mov byte [esp + 0x130], 6
cmp dword [esp + 0x118], 8
jb 0x4719bf
mov edx, dword [esp + 0x104]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], ax
mov byte [esp + 0x130], 5
mov edi, 0x10
cmp dword [esp + 0xe0], edi
jb 0x471a01
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov byte [esp + 0x130], 4
cmp dword [esp + 0xfc], edi
jb 0x471a37
mov edx, dword [esp + 0xe8]
push edx
call fcn.0049b30a
add esp, 4
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004039f0
jmp 0x471b3f
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x471a97
mov edx, dword [esp + 0x18]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x471a77
sub eax, esi
mov esi, dword [esp + 0x28]
sar eax, 1
push eax
mov eax, edx
call fcn.00415f60
jmp 0x471b30
cmp eax, 7
je 0x471aa5
cmp eax, 2
jne 0x471b34
mov eax, dword [esp + 0x1c]
inc eax
shr eax, 1
xor ecx, ecx
push eax
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0xd0]
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], cx
call fcn.00415f60
mov dword [esp + 0x130], 8
mov edi, esi
mov esi, dword [esp + 0x28]
call fcn.00413650
mov dword [esp + 0x130], 0xffffffff
cmp dword [esp + 0xe0], 8
jb 0x471b14
mov edx, dword [esp + 0xcc]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], ebx
mov word [esp + 0xcc], ax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x471b50
push eax
call fcn.0049b58d
add esp, 4
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x24], ebx
call fcn.00410ff0
mov dword [esp + 0x130], 9
mov eax, 0x4d8290
cmp byte [esp + 0x13], bl
jne 0x471b8c
mov eax, str.FAILED.
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x30]
push ecx
push ecx
push str.._samDesired:
push ecx
mov ecx, dword [edx]
mov edx, dword [esp + 0x38]
push ecx
push ecx
push str.._dwType:
push ecx
push edx
push ecx
push str.._strKeyValue:
push ecx
push esi
push ecx
push str.._strKeyName:
push ecx
push edi
push ecx
push str._strSubKey:
push ecx
push eax
push ecx
lea eax, [esp + 0x8c]
push str.ReadRegValue
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 0xc
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 0xc
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.00418af0
add esp, 0xc
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.004102c0
add esp, 4
push eax
call fcn.00418890
add esp, 0xc
push eax
call fcn.004102c0
push 0x19
mov esi, 0xf
push str.CRegUtility::ReadRegValue
lea ecx, [esp + 0xf0]
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.004159b0
mov byte [esp + 0x130], 0xa
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
call fcn.004159b0
mov byte [esp + 0x130], 0xb
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004110f0
mov byte [esp + 0x130], 0xc
push eax
push 0x70
push 3
call fcn.004117f0
push eax
lea edx, [esp + 0xf8]
lea ecx, [esp + 0xdc]
call fcn.0047acf0
mov byte [esp + 0x130], 0xb
cmp dword [esp + 0x118], 8
jb 0x471cf7
mov eax, dword [esp + 0x104]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], cx
mov byte [esp + 0x130], 0xa
mov edi, 0x10
cmp dword [esp + 0xe0], edi
jb 0x471d39
mov edx, dword [esp + 0xcc]
push edx
call fcn.0049b30a
add esp, 4
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
mov byte [esp + 0x130], 9
cmp dword [esp + 0xfc], edi
jb 0x471d6f
mov eax, dword [esp + 0xe8]
push eax
call fcn.0049b30a
add esp, 4
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov byte [esp + 0xe8], bl
mov dword [esp + 0x130], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004039f0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0049b315
mov esp, ebp
pop ebp
ret 0x10