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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
mov dword [ebp - 0x8c], 0
cmp dword [ebp + 0x18], 3
jle 0x410041
jmp 0x4102a8
lea eax, [ebp - 0x19c]
push eax
cmp dword [0x462284], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 0x100
or eax, 0x20019
push eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4102a8
mov dword [ebp - 0x114], 0
cmp dword [ebp - 0x114], 0
jne 0x41029b
mov dword [ebp - 4], 0x80
lea edi, [ebp - 0x110]
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x1a0], eax
inc dword [ebp - 0x8c]
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x1a0]
push eax
mov eax, dword [ebp - 0x19c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x410296
lea eax, [ebp - 0x90]
push eax
cmp dword [0x462284], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 0x100
or eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x19c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410296
mov dword [ebp - 4], 0x80
lea edi, [ebp - 0x88]
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x198]
push eax
push 0
push 0x46d064
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410246
mov dword [ebp - 4], 0x80
lea edi, [ebp - 0x194]
xor eax, eax
mov ecx, 0x20
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x198]
push eax
push 0
push str.SerialNumber
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x410246
mov eax, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
jne 0x4101ff
mov eax, dword [ebp + 0x10]
add eax, 9
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0042fa7e
add esp, 8
test eax, eax
je 0x410246
lea edi, [ebp - 0x194]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov edi, dword [ebp + 0x14]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x19c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4102a8
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x18]
inc eax
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x19c]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0041001c
add esp, 0x14
mov eax, dword [ebp + 0x14]
movsx eax, byte [eax]
test eax, eax
je 0x410296
mov eax, dword [ebp - 0x19c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4102a8
jmp 0x410089
mov eax, dword [ebp - 0x19c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret