Function at 0x10034870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aeac8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100d65e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 8
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], edi
jb 0x100348b5
mov edx, dword [edx]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 0x18]
or eax, 0x20019
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100348d8
xor al, al
jmp 0x10034a8a
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, ebx
mov dword [edi], 0
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.1000eb30
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x1003491c
test eax, eax
jne 0x10034a7e
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1007d096
mov ecx, dword [ebp - 0x34]
add esp, 4
mov ebx, eax
test ecx, ecx
je 0x1003495b
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
mov edi, ebx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
push 0
call fcn.1000eb30
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10034a71
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x10034a3a
cmp eax, 2
je 0x10034a3a
cmp eax, 7
jne 0x10034a6b
mov eax, dword [ebp - 0x34]
inc eax
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.1000f9f0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp esi, eax
je 0x10034a0c
cmp dword [esi + 0x14], 8
jb 0x100349ee
push dword [esi]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.1000fcf0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x10034a24
push dword [ebp - 0x2c]
call fcn.1007d9ed
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jmp 0x10034a68
cmp word [ebx], 0
jne 0x10034a44
xor ecx, ecx
jmp 0x10034a5f
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10034a50
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.1000f9f0
mov eax, dword [ebp - 0x38]
mov dword [edi], eax
mov byte [ebp - 0x2d], 1
test ebx, ebx
je 0x10034a7e
push ebx
call fcn.1007f59b
add esp, 4
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1007e654
mov esp, ebp
pop ebp
ret 0x14