Function at 0x1004ca70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cbc66
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x101063e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
cmp dword [eax + 0x44], 8
lea edi, [eax + 0x30]
mov byte [ebp - 4], 1
mov dword [ebp - 0x364], edi
jb 0x1004cb02
mov eax, dword [edi]
mov dword [ebp - 0x364], eax
mov esi, dword [edi + 0x10]
test esi, esi
je 0x1004cb82
push 0x100
lea eax, [ebp - 0x360]
push 0
push eax
call fcn.1009c500
mov edx, 0x100
add esp, 0xc
mov ecx, 0x100d5ee0
mov dword [ebp - 0x368], edx
nop
movzx eax, word [ecx]
cmp ax, dx
jae 0x1004cc1d
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x360], 1
cmp ecx, 0x100d5ee2
jne 0x1004cb30
mov edx, dword [ebp - 0x364]
lea ecx, [edx + esi*2]
mov esi, edx
cmp edx, ecx
jae 0x1004cb82
movzx eax, word [esi]
cmp ax, word [ebp - 0x368]
jae 0x1004cb7b
cmp byte [ebp + eax - 0x360], 0
jne 0x1004cc14
add esi, 2
cmp esi, ecx
jb 0x1004cb61
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x1004ccfd
xor eax, eax
mov dword [ebp - 0x250], 0
cmp dword [edi + 0x10], esi
mov ecx, esi
mov word [ebp - 0x260], ax
mov eax, edi
cmovb ecx, dword [edi + 0x10]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x24c], 7
jb 0x1004cbbe
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.10010b00
movups xmm0, xmmword [ebp - 0x260]
xor eax, eax
inc esi
mov word [ebp - 0x260], ax
mov eax, dword [edi + 0x10]
movups xmmword [ebp - 0x248], xmm0
movq xmm0, qword [ebp - 0x250]
movq qword [ebp - 0x238], xmm0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
cmp eax, esi
jb 0x1004cf34
jmp 0x1004cc7a
sub esi, edx
sar esi, 1
jmp 0x1004cb85
mov eax, dword [ebp - 0x364]
lea ecx, [eax + esi*2]
mov esi, eax
mov dword [ebp - 0x368], ecx
cmp eax, ecx
jae 0x1004cb82
nop word [eax + eax]
movzx edx, word [esi]
mov ecx, 1
mov eax, 0x100d5ee0
nop dword [eax]
cmp word [eax], dx
je 0x1004cc6d
add eax, 2
sub ecx, 1
jne 0x1004cc50
add esi, 2
cmp esi, dword [ebp - 0x368]
jb 0x1004cc40
jmp 0x1004cb82
sub esi, dword [ebp - 0x364]
sar esi, 1
jmp 0x1004cb85
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 8
jb 0x1004cc8d
mov edi, dword [edi]
push ecx
lea eax, [edi + esi*2]
push eax
lea ecx, [ebp - 0x260]
call fcn.10010b00
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1004ccdd
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004ccd3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004cf39
push edx
push ecx
call fcn.100757e2
add esp, 8
movups xmm0, xmmword [ebp - 0x260]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [ebp - 0x250]
movq qword [ebp - 0x220], xmm0
jmp 0x1004cd0f
push 0x12
push str.HKEY_LOCAL_MACHINE
lea ecx, [ebp - 0x248]
call fcn.10010b00
lea eax, [ebp - 0x248]
mov esi, 0x80000002
push str.HKEY_CLASSES_ROOT
push eax
call fcn.1004a870
add esp, 8
test al, al
je 0x1004cd33
mov esi, 0x80000000
jmp 0x1004cd8f
lea eax, [ebp - 0x248]
push str.HKEY_CURRENT_USER
push eax
call fcn.1004a870
add esp, 8
test al, al
je 0x1004cd52
mov esi, 0x80000001
jmp 0x1004cd8f
lea eax, [ebp - 0x248]
push str.HKEY_USERS
push eax
call fcn.1004a870
add esp, 8
test al, al
je 0x1004cd71
mov esi, 0x80000003
jmp 0x1004cd8f
lea eax, [ebp - 0x248]
push str.HKEY_CURRENT_CONFIG
push eax
call fcn.1004a870
add esp, 8
mov ecx, 0x80000005
test al, al
cmovne esi, ecx
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x364]
push ecx
push 0x20219
lea eax, [ebp - 0x230]
mov dword [ebp - 0x364], 0
cmovae eax, dword [ebp - 0x230]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004ce41
mov eax, dword [ebp - 0x36c]
mov esi, dword [ebp - 0x364]
add eax, 0x48
cmp dword [eax + 0x14], 8
jb 0x1004cdde
mov eax, dword [eax]
lea ecx, [ebp - 0x368]
mov dword [ebp - 0x368], 0x208
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x36c]
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004ce36
mov eax, dword [ebp - 0x36c]
cmp eax, 1
je 0x1004ce1b
cmp eax, 2
jne 0x1004ce36
mov eax, dword [ebp - 0x368]
test eax, eax
je 0x1004ce78
test al, 1
jne 0x1004ce36
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x1004ce81
test esi, esi
je 0x1004ce41
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x230]
call fcn.10008bd0
lea ecx, [ebp - 0x248]
call fcn.10008bd0
mov eax, dword [ebp - 0x370]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10075b61
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0x218], ax
mov dword [ebp - 0x370], 1
test esi, esi
je 0x1004ce96
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1004ced2
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004cec8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004cf3e
push edx
push ecx
call fcn.100757e2
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x1004ce57
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1004cf25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004cf43
push edx
push ecx
call fcn.100757e2
add esp, 8
jmp 0x1004ce57
call fcn.10010750
call fcn.100a0325
call fcn.100a0325
call fcn.100a0325
int3