Function at 0x10041d20
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x100a70b4]
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 [0x100a9ee8], 7
push eax
push 0x100040c0
push 0x80000002
mov dword [ebp - 0x94], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10041df6
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 0x1000a980
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10041dea
cmp dword [ebp - 0x9c], 4
jne 0x10041dea
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x10041dea
mov dword [0x100a9ee8], eax
cmp eax, 7
jle 0x10041ddb
mov dword [0x100a9ee8], 7
jmp 0x10041dea
cmp eax, 6
jge 0x10041dea
mov dword [0x100a9ee8], 6
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x100a9ee8]
mov dword [esi], 0
mov dword [esi], 0x100404b0
mov dword [esi + 4], 0x10040770
lea eax, [edx - 1]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x10040800
mov dword [esi + 0x54], 0x10040d70
mov dword [esi + 0x5c], 0x100412f0
mov dword [esi + 0x58], 0x10041260
mov dword [esi + 0x60], 0x10041620
cmp eax, 6
ja case.default.0x10041e45
jmp dword [eax*4 + 0x1004236c]
mov dword [esi + 0x4c], 0x10040bc0
mov dword [esi + 0x50], 0x10040c20
mov dword [esi + 0x44], 0x10040960
mov dword [esi + 0x48], 0x10042540
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], 0x10040900
mov dword [esi + 0x10], 0
mov ecx, 0xe
mov dword [esi + 0x14], 0
mov eax, edx
mov dword [esi + 0x18], 0x10040980
mov dword [esi + 0x1c], 0x10040a80
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0x10040b80
mov esi, 0x100aa250
mov dword [0x100aa1e8], 0xc0
mov dword [0x100aa1f8], 0x551
mov dword [0x100aa298], 0x7e5
mov dword [0x100aa29c], 0x1b
mov dword [0x100aa250], 0x38
mov dword [0x100aa254], 0x72
mov dword [0x100aa258], 0x3f29f1
mov dword [0x100aa25c], 0xff
mov dword [0x100aa260], 0x1fff
mov dword [0x100aa264], 0x7ff
mov dword [0x100aa268], 0xff
mov dword [0x100aa26c], 0xc528a
mov dword [0x100aa270], 0x1cdf
mov dword [0x100aa274], 0x703073f
mov dword [0x100aa278], 0xcf
mov dword [0x100aa27c], 0x1f
mov dword [0x100aa280], 0
mov dword [0x100aa284], 0
push edi
mov edi, 0x100aa218
rep movsd dword es:[edi], dword [esi]
mov dword [0x100aa220], 0x1721f1
mov dword [0x100aa288], 0x700
mov dword [0x100aa28c], 0x500
sub eax, 4
je 0x10041fb3
sub eax, 1
jne 0x10041fc2
mov eax, 0x10551
jmp 0x10041fb8
mov eax, dword [0x100aa1f8]
or eax, 0x8000
mov dword [0x100aa1f8], eax
mov ecx, dword [ebp - 0x8c]
call fcn.10041660
mov ecx, dword [ebp - 0x90]
fld dword [0x1000b758]
mov dword [ecx], eax
mov dword [0x100a9fb4], 0x6108550
mov dword [0x100a9fb8], 0x3ef6
mov dword [0x100a9fbc], 0x772199
mov dword [0x100a9fc0], 0xff
mov dword [0x100a9fc4], 0x1fff
mov dword [0x100a9fc8], 0x7ff
mov dword [0x100a9fcc], 0xff
mov dword [0x100a9fd0], 0x84208
mov dword [0x100a9fd4], 0x7ecc5
mov dword [0x100a9fd8], 0x7030700
mov dword [0x100a9fdc], 0x3030300
mov dword [0x100a9fe0], 0x3030300
mov dword [0x100a9fe4], 0x3f
mov dword [0x100a9fe8], 0x3f
mov dword [0x100a9fec], 0x1f
mov dword [0x100a9ff0], 0x1000
mov dword [0x100a9ff4], 0x1000
mov dword [0x100a9ff8], 0x1000
mov dword [0x100a9ffc], 0x8000
mov dword [0x100aa000], 0
mov dword [0x100aa004], 0x10
mov dword [0x100aa020], 0xff
mov dword [0x100aa024], 0x100008
mov dword [0x100aa028], 0x3ffffff
mov dword [0x100aa02c], 8
mov dword [0x100aa030], 8
mov dword [0x100aa034], 0
mov dword [0x100aa038], 0
mov dword [0x100aa03c], 0
mov dword [0x100aa040], 0
mov dword [0x100aa044], 0
mov dword [0x100aa04c], 0x1fffff
mov dword [0x100aa050], 0xffffff
mov dword [0x100aa054], 1
mov dword [0x100aa058], 0x100
mov dword [0x100aa05c], 0xfffe0000
mov dword [0x100aa060], 0
mov dword [0x100aa064], 0xffff0104
mov dword [0x100a9fa0], 0
mov dword [0x100a9fa4], 0x30080000
mov dword [0x100a9fa8], 0x20
fstp dword [0x100aa008]
fld dword [0x1000b788]
fst dword [0x100aa00c]
fstp dword [0x100aa010]
fld dword [0x1000b748]
fst dword [0x100aa014]
fstp dword [0x100aa018]
fldz
fstp dword [0x100aa01c]
fld dword [0x1000b73c]
fstp dword [0x100aa048]
fld dword [0x1000b75c]
fstp dword [0x100aa068]
cmp edx, 7
jne 0x10042228
mov dword [0x100a9fb4], 0x7f18550
mov dword [0x100aa034], 0x7b
mov dword [0x100aa038], 0xffffffff
mov dword [0x100aa03c], 6
mov dword [0x100aa040], 4
mov dword [0x100aa044], 0xff
mov dword [0x100aa054], 0x10
mov dword [0x100aa05c], 0xfffe0101
mov dword [0x100aa060], 0x60
mov dword [0x100a9fb8], 0x3ff6
lea eax, [ebp - 0x88]
mov dword [ebp - 0x90], 4
push eax
push 0x1000a98c
push 0x80000002
mov dword [ebp - 0x88], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100422a5
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0
push 0x1000a954
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 0x100422a5
cmp dword [ebp - 0x8c], 4
jne 0x100422a5
mov eax, dword [ebp - 0x98]
mov dword [0x100aa064], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x90], 0x80
push eax
push 0x1000a98c
push 0x80000002
mov dword [ebp - 0x88], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10042331
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
push 0
push 0x1000a968
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 0x10042331
cmp dword [ebp - 0x8c], 1
jne 0x10042331
push 0x100aa068
lea eax, [ebp - 0x84]
push 0x1000a97c
push eax
call dword [sym.imp.msvcrt.dll_sscanf_s]
add esp, 0xc
mov edi, ebx
mov ecx, 0x35
mov esi, 0x100a9f98
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.1009fbf0
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop esi
xor ecx, ebp
pop ebx
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret 8