Function at 0x1005ca1
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa78
mov eax, dword [0x10191f4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x14
mov dword [ebp - 0xa24], edi
mov dword [ebp - 0xa08], 0x200
mov dword [ebp - 0xa1c], ebx
mov dword [ebp - 0xa20], ebx
mov dword [ebp - 0xa10], eax
call fcn.01009cf0
cmp eax, ebx
pop ecx
mov dword [0x1019084], eax
je 0x1005d6a
push 0x1b
call fcn.01009cf0
cmp eax, ebx
pop ecx
mov dword [0x1019088], eax
je 0x1005d6a
push 0x16
call fcn.01009cf0
cmp eax, ebx
pop ecx
mov dword [0x101908c], eax
je 0x1005d6a
push 0x19
call fcn.01009cf0
cmp eax, ebx
pop ecx
mov dword [0x1019090], eax
je 0x1005d6a
push 0x1a
call fcn.01009cf0
cmp eax, ebx
pop ecx
mov dword [0x1019094], eax
je 0x1005d6a
push 0x15
call fcn.01009cf0
cmp eax, ebx
pop ecx
mov dword [0x1019098], eax
je 0x1005d6a
push 0x17
call fcn.01009cf0
cmp eax, ebx
pop ecx
mov dword [0x101909c], eax
je 0x1005d6a
push 0x18
call fcn.01009cf0
cmp eax, ebx
pop ecx
mov dword [0x10190a0], eax
jne 0x1005d71
xor eax, eax
jmp 0x100619e
lea eax, [ebp - 0xa1c]
push eax
call dword [0x1001394]
test eax, eax
je 0x1005d95
test byte [ebp - 0xa1c], 1
je 0x1005d95
mov dword [ebp - 0xa08], 0x2200
push esi
push ebx
push dword [0x1019510]
mov esi, dword [0x100137c]
push 1
push edi
push ebx
push ebx
push ebx
push ebx
push 0x5001001f
push ebx
push 0x1001850
push dword [ebp - 0xa08]
call esi
cmp eax, ebx
mov dword [0x1019060], eax
jne 0x1005dcd
xor eax, eax
jmp 0x100619d
push ebx
push dword [0x1019510]
push 2
push edi
push ebx
push ebx
push ebx
push ebx
push 0x52018a41
push ebx
push 0x1001834
push dword [ebp - 0xa08]
call esi
cmp eax, ebx
mov dword [0x1019064], eax
je 0x1005dc6
mov esi, dword [fcn.01001300]
mov ecx, 0x4000
push ecx
push ecx
push 0x1036
push eax
call esi
push 3
push edi
push ebx
push 0x40000110
call dword [0x1001108]
cmp eax, ebx
mov dword [0x1019068], eax
je 0x1005dc6
mov ecx, dword [ebp - 0xa10]
mov ecx, dword [ecx + 0x3c]
and cl, 1
neg cl
sbb ecx, ecx
and ecx, 5
push ecx
push eax
mov dword [0x1019080], ecx
call dword [0x1001374]
push edi
call fcn.01004f6c
test eax, eax
je 0x1005dc6
call fcn.01005054
push 0x13
mov dword [ebp - 0xa78], 0xffff0000
mov dword [ebp - 0xa74], 0xffff0002
mov dword [ebp - 0xa70], 0x67
mov dword [ebp - 0xa58], ebx
mov dword [ebp - 0xa54], ebx
mov dword [ebp - 0xa50], 1
mov dword [ebp - 0xa4c], ebx
call fcn.01009cf0
pop ecx
mov dword [ebp - 0xa60], eax
lea eax, [ebp - 0xa78]
push eax
push ebx
push 0x1132
push dword [0x1019060]
call esi
push dword [ebp - 0xa60]
mov edi, dword [fcn.01001220]
mov dword [ebp - 0xa78], eax
call edi
xor eax, eax
mov dword [ebp - 0xa58], 2
mov dword [ebp - 0xa54], 3
mov dword [ebp - 0xa08], eax
cmp eax, 0x3c
je 0x1005f3c
mov ecx, dword [eax + 0x10019e0]
mov eax, dword [eax + 0x10019e4]
push 0x100
mov dword [ebp - 0xa60], ecx
lea ecx, [ebp - 0x204]
push ecx
push ebx
push eax
mov dword [ebp - 0xa4c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xa50], eax
lea eax, [ebp - 0xa78]
push eax
push ebx
push 0x1132
push dword [0x1019060]
call esi
mov eax, dword [ebp - 0xa08]
add eax, 0xc
cmp eax, 0x48
mov dword [ebp - 0xa08], eax
jb 0x1005ee5
push dword [ebp - 0xa78]
push 2
push 0x1102
push dword [0x1019060]
call esi
push dword [ebp - 0xa78]
push 9
push 0x110b
push dword [0x1019060]
call esi
mov eax, dword [0x1019060]
mov dword [0x101906c], eax
mov eax, dword [ebp - 0xa10]
mov dword [0x101907c], ebx
mov ecx, dword [eax + 0x2c]
mov dword [0x1019070], ecx
mov dword [ebp - 0xa44], 6
mov eax, dword [eax + 0x30]
push 0x11
mov dword [ebp - 0xa3c], eax
call fcn.01009cf0
pop ecx
mov dword [ebp - 0xa38], eax
lea eax, [ebp - 0xa44]
push eax
push ebx
push 0x1061
push dword [0x1019064]
call esi
push dword [ebp - 0xa38]
call edi
mov eax, dword [ebp - 0xa10]
mov eax, dword [eax + 0x34]
push 0x1f
mov dword [ebp - 0xa3c], eax
call fcn.01009cf0
pop ecx
mov dword [ebp - 0xa38], eax
lea eax, [ebp - 0xa44]
push eax
push 1
push 0x1061
push dword [0x1019064]
call esi
push dword [ebp - 0xa38]
call edi
mov eax, dword [ebp - 0xa10]
mov eax, dword [eax + 0x38]
push 0x12
mov dword [ebp - 0xa3c], eax
call fcn.01009cf0
pop ecx
mov dword [ebp - 0xa38], eax
lea eax, [ebp - 0xa44]
push eax
push 2
push 0x1061
push dword [0x1019064]
call esi
push dword [ebp - 0xa38]
call edi
push 0x15
pop ecx
push dword [ebp - 0xa24]
xor eax, eax
mov edi, 0x1019920
rep stosd dword es:[edi], eax
call dword [0x1001348]
push 0x3f
mov dword [0x10190a8], eax
call dword [fcn.01001428]
and eax, 1
mov dword [0x10190b0], eax
jne 0x10060b4
push ebx
push dword [0x10190a8]
call dword [0x10012cc]
mov edi, dword [0x1001340]
push ebx
push 0x291
push eax
mov dword [ebp - 0xa08], eax
call edi
push ebx
push 0x300
push dword [ebp - 0xa08]
call edi
push ebx
push 0x2a1
push dword [ebp - 0xa08]
call edi
push ebx
push 9
push 0x110a
push dword [0x1019060]
call esi
mov dword [0x10190b8], eax
lea eax, [ebp - 0xa18]
push eax
push 0x1001688
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100619a
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa04]
push eax
lea eax, [ebp - 0xa14]
push eax
push ebx
push 0x10017a8
push dword [ebp - 0xa18]
mov dword [ebp - 0xa0c], 0x400
call fcn.0100a0c1
test eax, eax
jne 0x1006139
cmp dword [ebp - 0xa14], 1
jne 0x1006139
cmp dword [ebp - 0xa0c], ebx
jbe 0x1006139
lea eax, [ebp - 0xa04]
push eax
call fcn.0100599b
push 4
pop esi
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa20]
push eax
lea eax, [ebp - 0xa14]
push eax
push ebx
push 0x10017b8
push dword [ebp - 0xa18]
mov dword [ebp - 0xa0c], esi
call fcn.0100a0c1
test eax, eax
jne 0x100618e
cmp dword [ebp - 0xa14], esi
jne 0x100618e
cmp dword [ebp - 0xa0c], ebx
jbe 0x100618e
cmp dword [ebp - 0xa20], ebx
je 0x100618e
mov dword [0x1019224], 1
push dword [ebp - 0xa18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01016b82
leave
ret 8