Function at 0x470ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c2aa4
mov eax, dword fs:[0]
push eax
sub esp, 0x520
mov eax, dword [0x4eb6b8]
xor eax, esp
mov dword [esp + 0x518], eax
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
xor eax, esp
push eax
lea eax, [esp + 0x530]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, edx
cmp dword [edi + 0x14], 8
mov dword [esp + 0x1c], ecx
jb 0x470f16
mov ecx, dword [edi]
jmp 0x470f18
mov ecx, edi
mov eax, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x20019
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 0x471106
lea ecx, [esp + 0x24]
push ecx
call fcn.00410ff0
mov dword [esp + 0x538], 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 + 0x4c]
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 + 0xc8]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
call fcn.004159b0
mov byte [esp + 0x538], 1
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xe4]
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
call fcn.004159b0
mov byte [esp + 0x538], 2
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004110f0
mov byte [esp + 0x538], 3
push eax
push 0x1c
push ebx
call fcn.004117f0
push eax
lea edx, [esp + 0xd0]
lea ecx, [esp + 0xec]
call fcn.0047acf0
mov byte [esp + 0x538], 2
cmp dword [esp + 0x10c], 8
jb 0x47105f
mov eax, dword [esp + 0xf8]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], cx
mov byte [esp + 0x538], 1
mov edi, 0x10
cmp dword [esp + 0xf0], edi
jb 0x4710a1
mov edx, dword [esp + 0xdc]
push edx
call fcn.0049b30a
add esp, 4
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov byte [esp + 0x538], bl
cmp dword [esp + 0xd4], edi
jb 0x4710d6
mov eax, dword [esp + 0xc0]
push eax
call fcn.0049b30a
add esp, 4
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov dword [esp + 0x538], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004039f0
xor al, al
jmp 0x471568
push 0x40e
lea edx, [esp + 0x11a]
xor ecx, ecx
push ebx
push edx
mov byte [esp + 0x1f], bl
mov word [esp + 0x120], cx
call fcn.004a2b10
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
mov eax, esi
mov dword [esp + 0x28], 0x410
call fcn.00410cd0
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x47132f
lea ecx, [esp + 0x24]
push ecx
call fcn.00410ff0
mov dword [esp + 0x538], 4
push esi
push ecx
push str.__strKeyName:
push ecx
push edi
push ecx
push str.._strSubKey:
push ecx
push ebx
push ecx
lea edx, [esp + 0x4c]
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
push str.CRegUtility::ReadRegValue
lea ecx, [esp + 0xe4]
mov dword [esp + 0xf8], 0xf
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
call fcn.004159b0
mov byte [esp + 0x538], 5
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xc8]
mov dword [esp + 0xdc], 0xf
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
call fcn.004159b0
mov byte [esp + 0x538], 6
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004110f0
mov byte [esp + 0x538], 7
push eax
push 0x29
push ebx
call fcn.004117f0
push eax
lea edx, [esp + 0xec]
lea ecx, [esp + 0xd0]
call fcn.0047acf0
mov byte [esp + 0x538], 6
cmp dword [esp + 0x10c], 8
jb 0x471287
mov edx, dword [esp + 0xf8]
push edx
call fcn.0049b30a
add esp, 4
xor eax, eax
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], ax
mov byte [esp + 0x538], 5
cmp dword [esp + 0xd4], 0x10
jb 0x4712c5
mov ecx, dword [esp + 0xc0]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [esp + 0xd4], 0xf
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov byte [esp + 0x538], 4
cmp dword [esp + 0xf0], 0x10
jb 0x471300
mov edx, dword [esp + 0xdc]
push edx
call fcn.0049b30a
add esp, 4
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov dword [esp + 0x538], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004039f0
jmp 0x471348
cmp dword [esp + 0x20], 4
jne 0x471348
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x13], 1
mov dword [ecx], eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x18], ebx
call fcn.00410ff0
mov dword [esp + 0x538], 8
mov eax, 0x4d8290
cmp byte [esp + 0x13], bl
jne 0x47137c
mov eax, str.FAILED.
push ebx
push ecx
push str.._samDesired:
push ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
push edx
push ecx
push str.._dwKeyValue:
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 + 0x6c]
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.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 + 0xe4]
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], ebx
mov byte [esp + 0xe4], bl
call fcn.004159b0
mov byte [esp + 0x538], 9
push 0xe
push str.RegUtility.cpp
lea ecx, [esp + 0xc8]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xc8], bl
call fcn.004159b0
mov byte [esp + 0x538], 0xa
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.004110f0
mov byte [esp + 0x538], 0xb
push eax
push 0x38
push 3
call fcn.004117f0
push eax
lea edx, [esp + 0xec]
lea ecx, [esp + 0xd0]
call fcn.0047acf0
mov byte [esp + 0x538], 0xa
cmp dword [esp + 0x10c], 8
jb 0x4714c3
mov eax, dword [esp + 0xf8]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x10c], 7
mov dword [esp + 0x108], ebx
mov word [esp + 0xf8], cx
mov byte [esp + 0x538], 9
mov edi, 0x10
cmp dword [esp + 0xd4], edi
jb 0x471505
mov edx, dword [esp + 0xc0]
push edx
call fcn.0049b30a
add esp, 4
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
mov byte [esp + 0x538], 8
cmp dword [esp + 0xf0], edi
jb 0x47153b
mov eax, dword [esp + 0xdc]
push eax
call fcn.0049b30a
add esp, 4
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov dword [esp + 0x538], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004039f0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x530]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.0049b315
mov esp, ebp
pop ebp
ret 8