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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404200
push 0x4035a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffda0
push ebx
push esi
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x154], 0
push 0x20
push 0
lea eax, [ebp - 0x14c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x12c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x258]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x25c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401b69
mov dword [ebp - 0x24], 0xffffffff
jmp case.default.0x401b85
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 3
ja case.default.0x401b85
mov ecx, dword [ebp - 0x260]
jmp dword [ecx*4 + 0x401ffa]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x264], edx
mov eax, dword [ebp - 0x264]
sub eax, 1
mov dword [ebp - 0x264], eax
cmp dword [ebp - 0x264], 6
ja case.0x401bb7.4
mov ecx, dword [ebp - 0x264]
jmp dword [ecx*4 + 0x40200a]
mov dword [ebp - 0x1c], 0x104
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c0e
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00401a70
add esp, 4
push eax
mov edx, dword [ebp + 0x18]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x24], 1
jmp case.0x401bb7.4
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401cb6
lea edx, [ebp - 0x12c]
mov dword [ebp - 0x28], edx
jmp 0x401c5f
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.MSVCRT.dll_strchr
add esp, 8
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
movsx edx, byte [ecx]
test edx, edx
je 0x401c9c
push 0x104
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x258]
push ecx
call sub.MSVCRT.dll_strncat
add esp, 0xc
push 0x104
push 0x42c9d0
lea edx, [ebp - 0x258]
push edx
call sub.MSVCRT.dll_strncat
add esp, 0xc
jmp 0x401c4b
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x24], 1
jmp case.0x401bb7.4
mov dword [ebp - 0x1c], 4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401d05
mov ecx, dword [ebp - 0x150]
push ecx
push 0x42c9d4
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x24], 1
jmp case.0x401bb7.4
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
lea eax, [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x401bb7.4
mov dword [ebp - 0x24], 1
jmp case.default.0x401b85
mov eax, 1
test eax, eax
je 0x401de9
push 0x104
push 0
lea ecx, [ebp - 0x12c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x268]
push edx
mov eax, dword [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x154]
add ecx, 1
mov dword [ebp - 0x154], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x401dae
jmp 0x401de9
lea edx, [ebp - 0x12c]
push edx
push str.__s__r_n
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
mov dword [ebp - 0x24], 1
jmp case.0x401b85.1
jmp case.default.0x401b85
mov eax, 1
test eax, eax
je 0x401fb7
push 0x20
push 0
lea ecx, [ebp - 0x14c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea edx, [ebp - 0x12c]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x258]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], 0x104
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp + 0x14]
push eax
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14c]
push edx
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x154]
add eax, 1
mov dword [ebp - 0x154], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x401e9c
jmp 0x401fb7
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x270]
sub edx, 1
mov dword [ebp - 0x270], edx
cmp dword [ebp - 0x270], 6
ja case.0x401ec7.4
mov eax, dword [ebp - 0x270]
jmp dword [eax*4 + 0x402026]
lea ecx, [ebp - 0x12c]
push ecx
push str.REG_SZ
lea edx, [ebp - 0x14c]
push edx
push 0x42c9e8
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp case.0x401ec7.4
lea ecx, [ebp - 0x12c]
push ecx
push str.REG_EXPAND_SZ
lea edx, [ebp - 0x14c]
push edx
push str.__24s___15s__s__r_n
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp case.0x401ec7.4
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x12c]
push edx
push str.REG_DWORD
lea eax, [ebp - 0x14c]
push eax
push str.__24s___15s_0x_x__d___r_n
lea ecx, [ebp - 0x258]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp case.0x401ec7.4
push str.REG_MULTI_SZ
lea edx, [ebp - 0x14c]
push edx
push 0x42ca54
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp case.0x401ec7.4
push str.REG_BINARY
lea ecx, [ebp - 0x14c]
push ecx
push str.__24s___15s__r_n
lea edx, [ebp - 0x258]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], 1
jmp case.0x401b85.2
jmp case.default.0x401b85
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00401fce
jmp 0x401fe6
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