Function at 0x10035dc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a78fc
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x100c66d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x250], eax
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x258], esi
cmp byte [ebp + 0x44], 0
mov byte [ebp - 4], 3
je 0x10035f79
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x10035e44
lea eax, [ebp + 8]
lea edx, [ebp - 0x23c]
push edx
push 0x20119
push esi
push eax
push ecx
mov dword [ebp - 0x23c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10035f79
mov edi, dword [ebp - 0x23c]
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], 0x100
xor ebx, ebx
lea eax, [ebp - 0x26c]
push eax
push esi
push esi
push esi
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x218]
push edx
push ebx
push edi
mov dword [ebp - 0x240], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10035f56
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x10035ebd
lea eax, [ebp + 0x24]
mov ecx, dword [ebp + 0x34]
push ecx
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.1003f705
add esp, 0xc
test eax, eax
jne 0x10035f4a
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10035ef5
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.10005fb0
lea ecx, [ebp - 0x234]
lea edi, [ebp - 0x260]
mov byte [ebp - 4], 4
call fcn.1001d8a0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x220], 8
jb 0x10035f48
mov edx, dword [ebp - 0x234]
push edx
call fcn.1003d468
add esp, 4
xor esi, esi
mov edi, dword [ebp - 0x23c]
inc ebx
jmp 0x10035e7f
cmp edi, esi
je 0x10035f67
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], esi
mov edi, dword [ebp - 0x25c]
mov ebx, dword [ebp - 0x260]
mov dword [ebp - 0x248], esi
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x10035f85
lea eax, [ebp + 8]
mov edx, dword [ebp - 0x264]
lea ecx, [ebp - 0x23c]
push ecx
push 0x20219
push esi
push eax
push edx
mov dword [ebp - 0x23c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x100360e5
mov ecx, dword [ebp - 0x24c]
xor eax, eax
cmp ecx, esi
je 0x10035fc1
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], 0x200
cmp eax, esi
jne 0x100360e5
xor ebx, ebx
lea edx, [ebp - 0x26c]
push edx
mov edx, dword [ebp - 0x23c]
push esi
push esi
push esi
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x218]
push ecx
push ebx
push edx
mov dword [ebp - 0x240], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100360bc
cmp dword [ebp + 0x38], 8
mov eax, dword [ebp + 0x24]
jae 0x10036025
lea eax, [ebp + 0x24]
mov ecx, dword [ebp + 0x34]
push ecx
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.1003f705
add esp, 0xc
test eax, eax
jne 0x100360b6
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10036061
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.10005fb0
lea ecx, [ebp - 0x234]
lea edi, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.1001d8a0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x220], 8
jb 0x100360b4
mov edx, dword [ebp - 0x234]
push edx
call fcn.1003d468
add esp, 4
xor esi, esi
inc ebx
jmp 0x10035fe1
mov eax, dword [ebp - 0x23c]
cmp eax, esi
je 0x100360d3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], esi
mov edi, dword [ebp - 0x25c]
mov ebx, dword [ebp - 0x260]
mov dword [ebp - 0x248], esi
mov ecx, edi
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp esi, 1
jne 0x10036108
push 0xffffffffffffffff
push 0
push ebx
jmp 0x10036127
jbe 0x10036132
push esi
push edi
push ebx
call fcn.100361c0
add esp, 0xc
lea eax, [esi*8]
push 0xffffffffffffffff
sub eax, esi
push 0
lea ecx, [ebx + eax*4 - 0x1c]
push ecx
mov ecx, dword [ebp - 0x250]
call fcn.10005150
test esi, esi
setne byte [ebp - 0x235]
test ebx, ebx
je 0x1003614f
mov eax, ebx
call fcn.10006280
push ebx
call fcn.1003d468
add esp, 4
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x10036160
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 8
cmp dword [ebp + 0x1c], esi
jb 0x10036176
mov edx, dword [ebp + 8]
push edx
call fcn.1003d468
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
cmp dword [ebp + 0x38], esi
jb 0x1003619b
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.1003d468
add esp, 4
mov al, byte [ebp - 0x235]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c5b5
mov esp, ebp
pop ebp
ret