Function at 0x10041b80
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x100a60a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x90], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x8c], eax
mov esi, edx
lea eax, [ebp - 0x94]
mov dword [0x100a8f28], 7
push eax
push 0x10004090
push 0x80000002
mov dword [ebp - 0x94], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10041c56
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 4
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x9c]
push eax
push 0
push 0x1000a9b0
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10041c4a
cmp dword [ebp - 0x9c], 4
jne 0x10041c4a
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x10041c4a
mov dword [0x100a8f28], eax
cmp eax, 7
jle 0x10041c3b
mov dword [0x100a8f28], 7
jmp 0x10041c4a
cmp eax, 6
jge 0x10041c4a
mov dword [0x100a8f28], 6
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x100a8f28]
mov dword [esi], 0x10040350
mov dword [esi + 4], 0x100405e0
mov dword [esi + 8], 0
lea ecx, [eax - 1]
mov dword [esi + 0xc], 0x10040660
mov dword [esi + 0x54], 0x10040b90
mov dword [esi + 0x5c], 0x10041150
mov dword [esi + 0x58], 0x10041090
mov dword [esi + 0x60], 0x10041480
cmp ecx, 6
ja case.default.0x10041c9e
jmp dword [ecx*4 + 0x100421c8]
mov dword [esi + 0x4c], 0x100409e0
mov dword [esi + 0x50], 0x10040a40
mov dword [esi + 0x44], 0x100407a0
mov dword [esi + 0x48], 0x10042390
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0x10040740
mov dword [esi + 0x10], 0
mov ecx, 0xe
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x100407c0
mov dword [esi + 0x1c], 0x100408c0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0x100409a0
mov esi, 0x100a9290
mov dword [0x100a9228], 0xc0
mov dword [0x100a9238], 0x551
mov dword [0x100a92d8], 0x7e5
mov dword [0x100a92dc], 0x1b
mov dword [0x100a9290], 0x38
mov dword [0x100a9294], 0x72
mov dword [0x100a9298], 0x3f29f1
mov dword [0x100a929c], 0xff
mov dword [0x100a92a0], 0x1fff
mov dword [0x100a92a4], 0x7ff
mov dword [0x100a92a8], 0xff
mov dword [0x100a92ac], 0xc528a
mov dword [0x100a92b0], 0x1cdf
mov dword [0x100a92b4], 0x703073f
mov dword [0x100a92b8], 0xcf
mov dword [0x100a92bc], 0x1f
mov dword [0x100a92c0], 0
mov dword [0x100a92c4], 0
push edi
mov edi, 0x100a9258
rep movsd dword es:[edi], dword [esi]
mov dword [0x100a9260], 0x1721f1
mov dword [0x100a92c8], 0x700
mov dword [0x100a92cc], 0x500
sub eax, 4
je 0x10041e0a
sub eax, 1
jne 0x10041e19
mov eax, 0x10551
jmp 0x10041e0f
mov eax, dword [0x100a9238]
or eax, 0x8000
mov dword [0x100a9238], eax
mov ecx, dword [ebp - 0x8c]
call fcn.100414c0
cmp dword [0x100a8f28], 7
mov ecx, dword [ebp - 0x90]
fld dword [0x1000b784]
mov dword [ecx], eax
fstp dword [0x100a9048]
fld dword [0x1000b7b0]
fst dword [0x100a904c]
fstp dword [0x100a9050]
fld dword [0x1000b778]
fst dword [0x100a9054]
fstp dword [0x100a9058]
fldz
fstp dword [0x100a905c]
fld dword [0x1000b76c]
fstp dword [0x100a9088]
fld dword [0x1000b788]
fstp dword [0x100a90a8]
mov dword [0x100a8ff4], 0x6108550
mov dword [0x100a8ff8], 0x3ef6
mov dword [0x100a8ffc], 0x772199
mov dword [0x100a9000], 0xff
mov dword [0x100a9004], 0x1fff
mov dword [0x100a9008], 0x7ff
mov dword [0x100a900c], 0xff
mov dword [0x100a9010], 0x84208
mov dword [0x100a9014], 0x7ecc5
mov dword [0x100a9018], 0x7030700
mov dword [0x100a901c], 0x3030300
mov dword [0x100a9020], 0x3030300
mov dword [0x100a9024], 0x3f
mov dword [0x100a9028], 0x3f
mov dword [0x100a902c], 0x1f
mov dword [0x100a9030], 0x1000
mov dword [0x100a9034], 0x1000
mov dword [0x100a9038], 0x1000
mov dword [0x100a903c], 0x8000
mov dword [0x100a9040], 0
mov dword [0x100a9044], 0x10
mov dword [0x100a9060], 0xff
mov dword [0x100a9064], 0x100008
mov dword [0x100a9068], 0x3ffffff
mov dword [0x100a906c], 8
mov dword [0x100a9070], 8
mov dword [0x100a9074], 0
mov dword [0x100a9078], 0
mov dword [0x100a907c], 0
mov dword [0x100a9080], 0
mov dword [0x100a9084], 0
mov dword [0x100a908c], 0x1fffff
mov dword [0x100a9090], 0xffffff
mov dword [0x100a9094], 1
mov dword [0x100a9098], 0x100
mov dword [0x100a909c], 0xfffe0000
mov dword [0x100a90a0], 0
mov dword [0x100a90a4], 0xffff0104
mov dword [0x100a8fe0], 0
mov dword [0x100a8fe4], 0x30080000
mov dword [0x100a8fe8], 0x20
jne 0x10042083
mov dword [0x100a8ff4], 0x7f18550
mov dword [0x100a9074], 0x7b
mov dword [0x100a9078], 0xffffffff
mov dword [0x100a907c], 6
mov dword [0x100a9080], 4
mov dword [0x100a9084], 0xff
mov dword [0x100a9094], 0x10
mov dword [0x100a909c], 0xfffe0101
mov dword [0x100a90a0], 0x60
mov dword [0x100a8ff8], 0x3ff6
lea eax, [ebp - 0x88]
mov dword [ebp - 0x90], 4
push eax
push 0x1000a9bc
push 0x80000002
mov dword [ebp - 0x88], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10042100
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0
push 0x1000a984
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x88]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10042100
cmp dword [ebp - 0x8c], 4
jne 0x10042100
mov eax, dword [ebp - 0x98]
mov dword [0x100a90a4], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x90], 0x80
push eax
push 0x1000a9bc
push 0x80000002
mov dword [ebp - 0x88], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1004218c
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0
push 0x1000a998
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x88]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1004218c
cmp dword [ebp - 0x8c], 1
jne 0x1004218c
push 0x100a90a8
lea eax, [ebp - 0x84]
push 0x1000a9ac
push eax
call dword [sym.imp.msvcrt.dll_sscanf_s]
add esp, 0xc
mov edi, ebx
mov ecx, 0x35
mov esi, 0x100a8fd8
xor eax, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009ebb0
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop esi
xor ecx, ebp
pop ebx
call fcn.1009ebb0
mov esp, ebp
pop ebp
ret 8