Function at 0x1004caa0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c75c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1022b584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.1000ed90
mov ecx, eax
test ecx, ecx
je 0x1004ced6
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], 0x208
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or ebx, 0xffffffff
test eax, eax
jne 0x1004ce8a
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x1004cb40
push 0x104
lea ecx, [ebp - 0x14]
call fcn.1000f500
mov esi, dword [ebp - 0x14]
cmp dword [esi - 8], 0x104
jl 0x1004cee0
xor eax, eax
mov dword [esi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [esi + 0x208], ax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push dword [esi - 8]
mov edi, eax
push esi
call fcn.101952b4
add esp, 8
test eax, eax
js 0x1004cee0
cmp eax, dword [esi - 8]
jg 0x1004cee0
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x1004ce81
cmp edi, 0xea
je 0x1004ce81
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push 0x20019
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004cdca
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x1004cbf5
push 0x104
lea ecx, [ebp - 0x14]
call fcn.1000f500
mov esi, dword [ebp - 0x14]
cmp dword [esi - 8], 0x104
jl 0x1004cee0
xor eax, eax
mov dword [esi - 0xc], 0x104
mov word [esi + 0x208], ax
call fcn.1000ed90
test eax, eax
je 0x1004ced6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.1003e240
test al, al
jne 0x1004cc5b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004cc42
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.1000f6e0
mov ebx, dword [ebp + 0x14]
mov byte [ebp - 4], 3
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28], eax
cmp dword [ebx + 8], eax
je 0x1004cc8a
mov edi, dword [ebp - 0x10]
lea eax, [edi - 0x10]
push eax
call fcn.100121a0
mov ecx, dword [ebp - 0x28]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
add dword [ebx + 4], 4
jmp 0x1004cc99
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.10018b90
mov edi, dword [ebp - 0x10]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1004ccb5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
cmp eax, 4
jae 0x1004cdbe
call fcn.1000ed90
test eax, eax
je 0x1004ced6
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x101d889c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.1003e240
test al, al
jne 0x1004cd63
push 0
push 0
push 0xffffffffffffffff
push 0x101d889c
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ebx, [eax - 1]
test ebx, ebx
jle 0x1004cd58
mov edi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x1004cd2e
push ebx
lea ecx, [ebp - 0x10]
call fcn.1000f500
mov edi, dword [ebp - 0x10]
push ebx
push edi
push 0xffffffffffffffff
push 0x101d889c
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp ebx, dword [edi - 8]
jg 0x1004cee0
mov dword [edi - 0xc], ebx
xor eax, eax
mov word [edi + ebx*2], ax
mov ebx, dword [ebp + 0x14]
jmp 0x1004cd66
lea ecx, [ebp - 0x10]
call fcn.10012290
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebx + 4]
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], eax
cmp dword [ebx + 8], eax
je 0x1004cd8f
lea eax, [edi - 0x10]
push eax
call fcn.100121a0
mov ecx, dword [ebp - 0x28]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
add dword [ebx + 4], 4
jmp 0x1004cd9e
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.10018b90
mov edi, dword [ebp - 0x10]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1004cdc1
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1004cdc1
or ebx, 0xffffffff
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x20]
lea edx, [esi - 0x10]
mov dword [ebp - 0x1c], 0x208
cmp dword [edx + 4], 0
mov edi, dword [edx]
je 0x1004ce20
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x1004ce00
cmp dword [esi - 8], 0
jl 0x1004cee0
xor eax, eax
mov dword [esi - 0xc], 0
mov word [esi], ax
jmp 0x1004ce20
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1004ce13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x1004ce44
push 0x104
lea ecx, [ebp - 0x14]
call fcn.1000f500
mov esi, dword [ebp - 0x14]
cmp dword [esi - 8], 0x104
jl 0x1004cee0
xor eax, eax
mov dword [esi - 0xc], 0x104
push eax
push eax
push eax
push eax
mov word [esi + 0x208], ax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push esi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test edi, edi
je 0x1004cba1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1004cea5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1004cec4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10009b10
push 0x80070057
call fcn.10009b10
int3