Function at 0x1007e2f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100c2251
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x100eb6ac]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x100eb6ac]
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 0x1007e353
mov ecx, dword [edi]
jmp 0x1007e355
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 0x1007e548
lea ecx, [esp + 0x34]
push ecx
call fcn.10013470
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.1001c530
add esp, 0xc
push eax
call fcn.1002a270
add esp, 4
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1001dca0
add esp, 0xc
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1001dca0
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.100191b0
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.100191b0
mov byte [esp + 0x130], 2
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.10013570
mov byte [esp + 0x130], 3
push eax
push 0x42
push ebx
call fcn.10013c70
push eax
lea edx, [esp + 0xdc]
lea ecx, [esp + 0xf8]
call fcn.10072520
mov byte [esp + 0x130], 2
cmp dword [esp + 0x118], 8
jb 0x1007e4a1
mov eax, dword [esp + 0x104]
push eax
call fcn.1009c0c0
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 0x1007e4e3
mov edx, dword [esp + 0xe8]
push edx
call fcn.1009c0c0
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 0x1007e518
mov eax, dword [esp + 0xcc]
push eax
call fcn.1009c0c0
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.10002af0
xor al, al
jmp 0x1007eaf0
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.10016880
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x1007e588
cmp eax, ebx
jne 0x1007e8b8
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1009b929
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, eax
mov dword [esp + 0x2c], edx
cmp ecx, ebx
jbe 0x1007e5ca
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.10016880
mov edx, dword [esp + 0x2c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
je 0x1007e7c5
lea eax, [esp + 0x34]
push eax
call fcn.10013470
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.1001c530
add esp, 0xc
push eax
call fcn.1002a270
add esp, 4
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1001dca0
add esp, 0xc
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1001dca0
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.100191b0
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.100191b0
mov byte [esp + 0x130], 6
lea eax, [esp + 0x104]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.10013570
mov byte [esp + 0x130], 7
push eax
push 0x5b
push ebx
call fcn.10013c70
push eax
lea edx, [esp + 0xf8]
lea ecx, [esp + 0xdc]
call fcn.10072520
mov byte [esp + 0x130], 6
cmp dword [esp + 0x118], 8
jb 0x1007e71f
mov edx, dword [esp + 0x104]
push edx
call fcn.1009c0c0
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 0x1007e761
mov ecx, dword [esp + 0xcc]
push ecx
call fcn.1009c0c0
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 0x1007e797
mov edx, dword [esp + 0xe8]
push edx
call fcn.1009c0c0
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.10002af0
jmp 0x1007e89f
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x1007e7f7
mov edx, dword [esp + 0x2c]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1007e7d7
sub eax, esi
mov esi, dword [esp + 0x30]
sar eax, 1
push eax
mov eax, edx
call fcn.10019760
jmp 0x1007e890
cmp eax, 7
je 0x1007e805
cmp eax, 2
jne 0x1007e894
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.10019760
mov dword [esp + 0x130], 8
mov edi, esi
mov esi, dword [esp + 0x30]
call fcn.10016430
mov dword [esp + 0x130], 0xffffffff
cmp dword [esp + 0xe0], 8
jb 0x1007e874
mov edx, dword [esp + 0xcc]
push edx
call fcn.1009c0c0
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 0x1007e8b0
push eax
call fcn.1009d8d4
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.10013470
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 0x100cdbf4
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.10012120
add esp, 4
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1001dca0
add esp, 0xc
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1001dca0
add esp, 0xc
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1001dca0
add esp, 0xc
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1006fa80
add esp, 4
push eax
call fcn.1001c530
add esp, 0xc
push eax
call fcn.1006fa80
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.100191b0
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.100191b0
mov byte [esp + 0x130], 0xb
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.10013570
mov byte [esp + 0x130], 0xc
push eax
push 0x70
push 3
call fcn.10013c70
push eax
lea edx, [esp + 0xf8]
lea ecx, [esp + 0xdc]
call fcn.10072520
mov byte [esp + 0x130], 0xb
cmp dword [esp + 0x118], 8
jb 0x1007ea4b
mov eax, dword [esp + 0x104]
push eax
call fcn.1009c0c0
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 0x1007ea8d
mov edx, dword [esp + 0xcc]
push edx
call fcn.1009c0c0
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 0x1007eac3
mov eax, dword [esp + 0xe8]
push eax
call fcn.1009c0c0
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.10002af0
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.1009c0cb
mov esp, ebp
pop ebp
ret 0x10