Function at 0x46da90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a0991
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4bf6bc]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x4bf6bc]
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 0x46daf3
mov ecx, dword [edi]
jmp 0x46daf5
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 0x46dce8
lea ecx, [esp + 0x34]
push ecx
call fcn.004059f0
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.004090a0
add esp, 0xc
push eax
call fcn.00468250
add esp, 4
push eax
call fcn.004090a0
add esp, 0xc
push eax
call fcn.00410900
add esp, 0xc
push eax
call fcn.004090a0
add esp, 0xc
push eax
call fcn.00410900
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.00407f60
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.00407f60
mov byte [esp + 0x130], 2
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00405af0
mov byte [esp + 0x130], 3
push eax
push 0x42
push ebx
call fcn.004061f0
push eax
lea edx, [esp + 0xdc]
lea ecx, [esp + 0xf8]
call fcn.00462280
mov byte [esp + 0x130], 2
cmp dword [esp + 0x118], 8
jb 0x46dc41
mov eax, dword [esp + 0x104]
push eax
call fcn.0047bd91
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 0x46dc83
mov edx, dword [esp + 0xe8]
push edx
call fcn.0047bd91
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 0x46dcb8
mov eax, dword [esp + 0xcc]
push eax
call fcn.0047bd91
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.004039b0
xor al, al
jmp 0x46e290
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.00405920
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x46dd28
cmp eax, ebx
jne 0x46e058
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047bb12
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, eax
mov dword [esp + 0x2c], edx
cmp ecx, ebx
jbe 0x46dd6a
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.00405920
mov edx, dword [esp + 0x2c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
je 0x46df65
lea eax, [esp + 0x34]
push eax
call fcn.004059f0
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.004090a0
add esp, 0xc
push eax
call fcn.00468250
add esp, 4
push eax
call fcn.004090a0
add esp, 0xc
push eax
call fcn.00410900
add esp, 0xc
push eax
call fcn.004090a0
add esp, 0xc
push eax
call fcn.00410900
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.00407f60
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.00407f60
mov byte [esp + 0x130], 6
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00405af0
mov byte [esp + 0x130], 7
push eax
push 0x5b
push ebx
call fcn.004061f0
push eax
lea edx, [esp + 0xf8]
lea ecx, [esp + 0xdc]
call fcn.00462280
mov byte [esp + 0x130], 6
cmp dword [esp + 0x118], 8
jb 0x46debf
mov edx, dword [esp + 0x104]
push edx
call fcn.0047bd91
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 0x46df01
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.0047bd91
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 0x46df37
mov edx, dword [esp + 0xe8]
push edx
call fcn.0047bd91
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.004039b0
jmp 0x46e03f
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x46df97
mov edx, dword [esp + 0x2c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x46df77
sub eax, esi
mov esi, dword [esp + 0x30]
sar eax, 1
push eax
mov eax, edx
call fcn.00408600
jmp 0x46e030
cmp eax, 7
je 0x46dfa5
cmp eax, 2
jne 0x46e034
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.00408600
mov dword [esp + 0x130], 8
mov edi, esi
mov esi, dword [esp + 0x30]
call fcn.00408590
mov dword [esp + 0x130], 0xffffffff
cmp dword [esp + 0xe0], 8
jb 0x46e014
mov edx, dword [esp + 0xcc]
push edx
call fcn.0047bd91
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 0x46e050
push eax
call fcn.0047c53b
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.004059f0
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 str.bRet:
push eax
call fcn.004090a0
add esp, 0xc
push eax
call fcn.00465980
add esp, 4
push eax
call fcn.004090a0
add esp, 0xc
push eax
call fcn.00410900
add esp, 0xc
push eax
call fcn.004090a0
add esp, 0xc
push eax
call fcn.00410900
add esp, 0xc
push eax
call fcn.004090a0
add esp, 0xc
push eax
call fcn.00410900
add esp, 0xc
push eax
call fcn.004090a0
add esp, 0xc
push eax
call fcn.0045f6e0
add esp, 4
push eax
call fcn.004090a0
add esp, 0xc
push eax
call fcn.0045f6e0
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.00407f60
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.00407f60
mov byte [esp + 0x130], 0xb
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00405af0
mov byte [esp + 0x130], 0xc
push eax
push 0x70
push 3
call fcn.004061f0
push eax
lea edx, [esp + 0xf8]
lea ecx, [esp + 0xdc]
call fcn.00462280
mov byte [esp + 0x130], 0xb
cmp dword [esp + 0x118], 8
jb 0x46e1eb
mov eax, dword [esp + 0x104]
push eax
call fcn.0047bd91
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 0x46e22d
mov edx, dword [esp + 0xcc]
push edx
call fcn.0047bd91
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 0x46e263
mov eax, dword [esp + 0xe8]
push eax
call fcn.0047bd91
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.004039b0
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.0047bd9c
mov esp, ebp
pop ebp
ret 0x10