Function at 0x11111580
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1118b3bb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x111ec774]
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 + 8]
mov edi, ecx
mov ecx, dword [edi]
mov ebx, edx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x230], ecx
call fcn.11064de0
push eax
push 1
mov dword [ebp - 0x23c], eax
call fcn.1116406b
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebx + 6]
push ecx
mov esi, eax
push esi
push edx
push edi
call fcn.111110c0
xor ecx, ecx
add esp, 0x18
cmp eax, ecx
jne 0x1111160b
mov eax, dword [ebp - 0x228]
push eax
push ecx
lea eax, [ecx + 6]
call fcn.11111090
add esp, 8
jmp 0x1111184f
movzx ebx, word [ebx + 2]
mov edx, dword [eax]
mov edi, dword [ebp - 0x230]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x214], ecx
shr ebx, 0xf
mov eax, 0x55
mov ecx, 1
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], ebx
mov word [esi], ax
mov word [esi + 8], cx
cmp dword [ebp - 0x214], 0
jne 0x1111165e
mov edx, dword [ebp - 0x23c]
add edx, 0xffffffe1
mov dword [ebp - 0x218], edx
lea edi, [esi + 0xa]
lea eax, [ebp - 0x24c]
push eax
mov eax, dword [ebp - 0x224]
push 0
push 0
push 0
lea ecx, [ebp - 0x244]
push ecx
mov ecx, dword [ebp - 0x238]
lea edx, [ebp - 0x110]
push edx
push eax
push ecx
mov dword [ebp - 0x244], 0x100
call dword [sym.imp.aDvapi32.DLL_RegEnumKeyExA]
test eax, eax
jne 0x11111826
push eax
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x21c]
call fcn.11145bc0
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x111116c2
sub eax, edx
inc eax
lea ecx, [eax + ebx]
mov dword [ebp - 0x22c], eax
cmp ecx, dword [ebp - 0x218]
jg 0x111117e1
xor bl, bl
cmp dword [ebp - 0x234], 0
je 0x11111793
mov dword [ebp - 0x220], 0
mov eax, 0x20019
cmp byte [0x111ee26d], bl
je 0x1111170c
mov eax, 0x20119
mov ecx, dword [ebp - 0x238]
lea edx, [ebp - 0x220]
push edx
push eax
push 0
lea eax, [ebp - 0x110]
push eax
push ecx
call dword [sym.imp.aDvapi32.DLL_RegOpenKeyExA]
test eax, eax
jne 0x11111772
lea edx, [ebp - 0x24c]
push edx
mov edx, dword [ebp - 0x220]
push eax
push eax
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0
push edx
mov dword [ebp - 0x240], 0x100
call dword [sym.imp.aDvapi32.DLL_RegEnumKeyExA]
test eax, eax
jne 0x11111765
mov bl, 1
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.aDvapi32.DLL_RegCloseKey]
mov eax, dword [ebp - 0x22c]
neg bl
sbb bl, bl
and bl, 0xb
add bl, 0x20
mov byte [edi], bl
mov ebx, 1
add edi, ebx
sub dword [ebp - 0x218], ebx
jmp 0x11111798
mov ebx, 1
mov ecx, dword [ebp - 0x21c]
push eax
push ecx
push edi
call fcn.11162c60
mov eax, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x21c]
sub dword [ebp - 0x218], eax
add dword [ebp - 0x214], ebx
add dword [ebp - 0x224], ebx
push edx
add edi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.11162777
mov ebx, dword [ebp - 0x234]
add esp, 0x10
jmp 0x11111643
mov ax, word [ebp - 0x214]
mov ecx, dword [ebp - 0x230]
mov word [esi + 6], ax
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push 0
mov eax, edi
sub eax, esi
push eax
push esi
call edx
mov eax, dword [ebp - 0x21c]
push eax
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 0xffffffff
call fcn.11162777
add esp, 4
jmp 0x11111643
cmp eax, 0x103
jne 0x1111182f
xor eax, eax
mov cx, word [ebp - 0x214]
mov dword [esi + 2], eax
mov eax, dword [ebp - 0x228]
xor edx, edx
sub edi, esi
mov word [esi + 6], cx
mov word [esi + 8], dx
mov dword [eax], edi
mov eax, esi
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.11162bb7
mov esp, ebp
pop ebp
ret