Function at 0x10036db1
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100691eb
call fcn.100575f8
sub esp, 0x60
mov eax, dword [0x10084500]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
mov dword [ebp - 0x10], eax
call fcn.10033ffb
test eax, eax
jbe 0x10036fcb
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x14]
cmp eax, 5
jbe 0x10036fcb
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x10036e17
push 0x22
push 1
mov ecx, edi
call fcn.1001f5b5
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.10002e80
push 0x22
push 1
mov ecx, edi
call fcn.10008675
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x10036e25
mov eax, dword [eax + 4]
jmp 0x10036e28
add eax, 4
push 4
push str.HKLM
push eax
call fcn.1005b211
add esp, 0xc
test eax, eax
jne 0x10036e45
mov dword [ebp - 0x68], 0x80000002
jmp 0x10036e75
mov eax, dword [esi + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x10036e53
mov eax, dword [eax + 4]
jmp 0x10036e56
add eax, 4
push 4
push str.HKCU
push eax
call fcn.1005b211
add esp, 0xc
test eax, eax
jne 0x10036fcb
mov dword [ebp - 0x68], 0x80000001
mov ecx, dword [esi + 0xc]
push 1
push 0xffffffffffffffff
lea eax, [ebp + 0xb]
push eax
mov byte [ebp + 0xb], 0x5c
call fcn.1001e4a4
mov edi, eax
cmp edi, 0xffffffff
je 0x10036fcb
mov eax, dword [esi + 0xc]
lea ecx, [edi - 5]
push ecx
push 5
push eax
lea ecx, [ebp - 0x48]
call fcn.1000e54a
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
inc edi
push edi
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.1000e54a
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
jae 0x10036ec9
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push ecx
push 0x20019
push ebx
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10036fb5
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], ebx
mov dword [ebp - 0x68], 1
jae 0x10036efb
lea eax, [ebp - 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp + 8]
push ecx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x6c]
call edi
test eax, eax
jne 0x10036f91
lea ecx, [esi + 8]
call fcn.10033ffb
cmp eax, 1
jbe 0x10036f8e
mov esi, dword [esi + 0xc]
lea eax, [esi + 0x1c]
push eax
lea ecx, [ebp - 0x64]
call fcn.100015f3
mov eax, dword [ebp + 8]
inc eax
push eax
mov byte [ebp - 4], 2
call fcn.100556e2
mov esi, eax
mov eax, dword [ebp + 8]
mov byte [esi + eax], bl
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x10036f51
lea eax, [ebp - 0x28]
lea ecx, [ebp + 8]
push ecx
push esi
push ebx
push ebx
push eax
push dword [ebp - 0x6c]
call edi
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x10036f6a
lea eax, [ebp - 0x60]
push eax
push esi
call fcn.10065dcd
test eax, eax
pop ecx
pop ecx
jne 0x10036f7a
mov dword [ebp - 0x68], ebx
push esi
call fcn.10057617
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.10001293
jmp 0x10036f91
mov dword [ebp - 0x68], ebx
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001293
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.10001293
mov eax, dword [ebp - 0x68]
jmp 0x10036fce
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001293
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.10001293
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100568ae
leave
ret 4