Function at 0x10049454
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
movzx eax, byte [ebp + 0x38]
test eax, eax
je 0x1004948b
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x70], eax
push dword [ebp - 0x70]
push 0x74e7
push 1
push dword [ebp - 0x58]
call fcn.1004984f
add esp, 0x10
jmp 0x1004984b
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xa0], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x4c], 0xbcb
mov dword [ebp - 0xa4], 0x1000c008
cmp dword [ebp - 0x4c], 0xf74
jle 0x10049549
and dword [ebp - 0x14], 0
jmp 0x100494fd
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x3283
jge 0x10049549
and dword [ebp - 0x1c], 0
jmp 0x10049513
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xa78
jge 0x10049547
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], edx
push dword [ebp - 0xc8]
push dword [ebp - 0xcc]
mov ecx, 0x10085b58
call fcn.100208d8
jmp 0x1004950c
jmp 0x100494f6
mov eax, dword [ebp - 0x98]
movzx eax, byte [eax]
test eax, eax
je 0x1004973a
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x48]
call fcn.10020c90
mov dword [eax], 0x94ff
mov eax, 0x94ff
test eax, eax
jne 0x1004963f
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x48]
call fcn.10020c90
cmp dword [eax], 0
je 0x10049632
or eax, 0xffffffff
je 0x10049632
mov dword [ebp - 0x74], 1
jmp 0x10049636
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x7c]
mov dword [eax], 0x15cc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jne 0x10049654
mov dword [ebp - 0x40], 1
jmp 0x10049658
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
sub eax, dword [ebp - 0x40]
sub eax, 0x3b8c
je 0x10049678
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x10049678
mov dword [ebp - 0x38], 1
jmp 0x1004967c
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jne 0x100496cb
mov eax, 0xaffa898c
test eax, eax
jne 0x100496cb
and dword [ebp - 0x30], 0
jmp 0x100496d2
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
imul eax, dword [ebp - 0x30]
test eax, eax
jne 0x100496e8
mov dword [ebp - 0x34], 1
jmp 0x100496ec
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x34]
cmp dword [eax], ecx
je 0x10049704
mov dword [ebp - 0x3c], 1
jmp 0x10049708
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x3c], eax
je 0x1004971b
mov dword [ebp - 0x24], 1
jmp 0x1004971f
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x10049832
mov dword [ebp - 0x44], 0x2f58
mov dword [ebp - 0x9c], 0x1000c058
cmp dword [ebp - 0x44], 0x301d
jle 0x1004980b
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
and dword [ebp - 0x10], 0
jmp 0x10049773
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x6aba
jge 0x1004980b
and dword [ebp - 0x18], 0
jmp 0x1004978d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4dc3
jge 0x10049806
and dword [ebp - 0x20], 0
jmp 0x100497a3
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xf3b
jge 0x10049804
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
sar eax, cl
mov ecx, dword [ebp - 0x20]
shl eax, cl
cdq
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], edx
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xf0]
call fcn.1001098e
pop ecx
pop ecx
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
call fcn.100208b8
push eax
call fcn.1006abb3
pop ecx
lea ecx, [ebp - 0xf0]
call fcn.100208ae
jmp 0x1004979c
jmp 0x10049786
jmp 0x1004976c
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0x44], 0x2d65
jge 0x10049832
push dword [ebp - 0x9c]
call fcn.1006abb3
pop ecx
cmp dword [ebp - 0x4c], 0x993
jge 0x1004984b
mov edx, dword [ebp - 0xa4]
mov ecx, 0x10085b58
call fcn.10023628
mov esp, ebp
pop ebp
ret