Function at 0x47ec80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c2ad1
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 + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], edx
jb 0x47ece3
mov ecx, dword [edi]
jmp 0x47ece5
mov ecx, edi
mov eax, dword [eax]
lea edx, [esp + 0x1c]
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 0x47eed8
lea ecx, [esp + 0x34]
push ecx
call fcn.00414a60
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.0041d7d0
add esp, 0xc
push eax
call fcn.004122f0
add esp, 4
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
add esp, 0xc
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
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.004190e0
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.004190e0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00414b60
mov byte [esp + 0x130], 3
push eax
push 0x42
push ebx
call fcn.00413e40
push eax
lea edx, [esp + 0xdc]
lea ecx, [esp + 0xf8]
call fcn.00471900
mov byte [esp + 0x130], 2
cmp dword [esp + 0x118], 8
jb 0x47ee31
mov eax, dword [esp + 0x104]
push eax
call fcn.0049ca60
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 0x47ee73
mov edx, dword [esp + 0xe8]
push edx
call fcn.0049ca60
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 0x47eea8
mov eax, dword [esp + 0xcc]
push eax
call fcn.0049ca60
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.00403e50
xor al, al
jmp 0x47f480
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
mov eax, esi
mov dword [ecx], ebx
mov byte [esp + 0x28], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004169f0
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x47ef18
cmp eax, ebx
jne 0x47f248
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049c21e
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, eax
mov dword [esp + 0x2c], edx
cmp ecx, ebx
jbe 0x47ef5a
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 + 0x28]
lea eax, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x18]
push ecx
push ebx
mov eax, esi
call fcn.004169f0
mov edx, dword [esp + 0x2c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
je 0x47f155
lea eax, [esp + 0x34]
push eax
call fcn.00414a60
mov dword [esp + 0x130], 4
push esi
push ecx
push str.__strKeyName:
push ecx
mov ecx, dword [esp + 0x34]
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.0041d7d0
add esp, 0xc
push eax
call fcn.004122f0
add esp, 4
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
add esp, 0xc
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
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.004190e0
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.004190e0
mov byte [esp + 0x130], 6
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00414b60
mov byte [esp + 0x130], 7
push eax
push 0x5b
push ebx
call fcn.00413e40
push eax
lea edx, [esp + 0xf8]
lea ecx, [esp + 0xdc]
call fcn.00471900
mov byte [esp + 0x130], 6
cmp dword [esp + 0x118], 8
jb 0x47f0af
mov edx, dword [esp + 0x104]
push edx
call fcn.0049ca60
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 0x47f0f1
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.0049ca60
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 0x47f127
mov edx, dword [esp + 0xe8]
push edx
call fcn.0049ca60
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.00403e50
jmp 0x47f22f
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x47f187
mov edx, dword [esp + 0x2c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47f167
sub eax, esi
mov esi, dword [esp + 0x30]
sar eax, 1
push eax
mov eax, edx
call fcn.00419690
jmp 0x47f220
cmp eax, 7
je 0x47f195
cmp eax, 2
jne 0x47f224
mov eax, dword [esp + 0x14]
inc eax
shr eax, 1
xor ecx, ecx
push eax
mov eax, dword [esp + 0x30]
lea esi, [esp + 0xd0]
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], cx
call fcn.00419690
mov dword [esp + 0x130], 8
mov edi, esi
mov esi, dword [esp + 0x30]
call fcn.004165a0
mov dword [esp + 0x130], 0xffffffff
cmp dword [esp + 0xe0], 8
jb 0x47f204
mov edx, dword [esp + 0xcc]
push edx
call fcn.0049ca60
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 + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x47f240
push eax
call fcn.0049cdad
add esp, 4
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x20], ebx
call fcn.00414a60
mov dword [esp + 0x130], 9
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
push ecx
push ecx
push str.._samDesired:
push ecx
push eax
push ecx
push str.._dwType:
push ecx
mov ecx, dword [esp + 0x50]
push ecx
push ecx
mov edx, dword [esp + 0x40]
push str.._strKeyValue:
push ecx
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 + 0x8c]
push 0x4cdcac
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.00412110
add esp, 4
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
add esp, 0xc
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
add esp, 0xc
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.0041dcf0
add esp, 0xc
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.00475c10
add esp, 4
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.00475c10
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.004190e0
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.004190e0
mov byte [esp + 0x130], 0xb
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00414b60
mov byte [esp + 0x130], 0xc
push eax
push 0x70
push 3
call fcn.00413e40
push eax
lea edx, [esp + 0xf8]
lea ecx, [esp + 0xdc]
call fcn.00471900
mov byte [esp + 0x130], 0xb
cmp dword [esp + 0x118], 8
jb 0x47f3db
mov eax, dword [esp + 0x104]
push eax
call fcn.0049ca60
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 0x47f41d
mov edx, dword [esp + 0xcc]
push edx
call fcn.0049ca60
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 0x47f453
mov eax, dword [esp + 0xe8]
push eax
call fcn.0049ca60
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.00403e50
mov al, byte [esp + 0x18]
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.0049ca6b
mov esp, ebp
pop ebp
ret 0x10