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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9820
push 0x42d7e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x278
push ebx
push esi
push edi
push str.RegOpenKeyExA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
mov edi, str.s__s__r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov edi, str.__24s___15
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call fcn.004a2adf
mov edx, eax
mov dword [ebp - 0x28], edx
mov edi, str.__24s___15
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 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 edi, str.s__s__r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.15s__r_n
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov edi, str.__24s___
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call fcn.004a2adf
add esp, 8
mov edx, eax
mov dword [ebp - 0x168], edx
mov edi, str.__24s___
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 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 edi, str.15s__r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov ecx, 8
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x13c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x274]
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x278]
push ecx
push 0x20019
push ebx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x38]
test eax, eax
je 0x413059
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], 0xffffffff
call fcn.004133cc
jmp 0x4133e2
mov eax, dword [ebp + 0x24]
cmp eax, 3
ja case.0x41307b.5
jmp dword [eax*4 + 0x413410]
mov ecx, dword [ebp + 0x14]
lea eax, [ecx - 1]
cmp eax, 6
ja case.0x41307b.5
jmp dword [eax*4 + 0x413420]
mov dword [ebp - 0x1c], 0x104
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp + 0x14]
push ecx
push ebx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x41307b.5
lea ecx, [ebp - 0x13c]
push ecx
mov ecx, dword [0x51e6fc]
call fcn.0040f4b0
mov edi, eax
jmp 0x413140
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp + 0x14]
push edx
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x278]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x41307b.5
lea esi, [ebp - 0x13c]
mov dword [ebp - 0x30], esi
cmp byte [esi], 0
je 0x41313a
push 0x104
push esi
lea edx, [ebp - 0x274]
push edx
call fcn.0042de00
push 0x104
push 0x50c564
lea eax, [ebp - 0x274]
push eax
call fcn.0042de00
push 0
push esi
call fcn.0042d390
add esp, 0x20
inc eax
mov esi, eax
jmp 0x4130fa
lea edi, [ebp - 0x274]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004133cc
jmp 0x4133e2
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x164]
push ecx
lea edx, [ebp + 0x14]
push edx
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x278]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x41307b.5
mov edx, dword [ebp - 0x164]
push edx
push 0x50c2f4
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.0x413065.3
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x14]
push ecx
push ebx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x41307b.5
jmp case.0x413065.3
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x13c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0x104
mov eax, ebx
inc ebx
mov dword [ebp - 0x170], ebx
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x13c]
push edx
push eax
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne case.0x41307b.5
lea ecx, [ebp - 0x13c]
push ecx
push str.__s__r_n
lea edx, [ebp - 0x274]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edi, [ebp - 0x274]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, dword [ebp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x24], 1
jmp case.0x413065.1
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x13c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x274]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], 0x104
mov eax, ebx
inc ebx
mov dword [ebp - 0x170], ebx
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x13c]
push edx
lea ecx, [ebp + 0x14]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x160]
push ecx
push eax
mov edx, dword [ebp - 0x278]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne case.0x41307b.5
mov eax, dword [ebp + 0x14]
dec eax
cmp eax, 6
ja case.0x41330b.5
jmp dword [eax*4 + 0x41343c]
lea ecx, [ebp - 0x13c]
push ecx
push str.REG_SZ
lea edx, [ebp - 0x160]
push edx
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x274]
push ecx
call esi
add esp, 0x14
jmp case.0x41330b.5
lea edx, [ebp - 0x13c]
push edx
push str.REG_EXPAND_SZ
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x274]
push edx
call esi
add esp, 0x14
jmp case.0x41330b.5
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x13c]
push ecx
push str.REG_DWORD
lea edx, [ebp - 0x160]
push edx
push str.____2_4_s_______1_5_s___0_x___x_____d______r__n_
lea eax, [ebp - 0x274]
push eax
call esi
add esp, 0x18
jmp case.0x41330b.5
push str.REG_MULTI_SZ
jmp 0x413395
push str.REG_BINARY
lea ecx, [ebp - 0x160]
push ecx
mov edx, dword [ebp - 0x168]
push edx
lea eax, [ebp - 0x274]
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x274]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], 1
jmp 0x41328c
mov edx, dword [ebp - 0x168]
push edx
call fcn.004a2b08
mov eax, dword [ebp - 0x28]
push eax
call fcn.004a2b08
add esp, 8
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret