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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4144b8
push 0x413102
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 0x407914
mov dword [ebp - 0x24], 0xffffffff
jmp case.default.0x407930
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 3
ja case.default.0x407930
mov ecx, dword [ebp - 0x260]
jmp dword [ecx*4 + 0x407da8]
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.0x407962.4
mov ecx, dword [ebp - 0x264]
jmp dword [ecx*4 + 0x407db8]
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 0x4079b9
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00407610
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.0x407962.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 0x407a64
lea edx, [ebp - 0x12c]
mov dword [ebp - 0x28], edx
jmp 0x407a0b
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.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 0x407a4a
push 0x104
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x258]
push ecx
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
push 0x104
push 0x418580
lea edx, [ebp - 0x258]
push edx
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
jmp 0x4079f6
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.0x407962.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 0x407ab3
mov ecx, dword [ebp - 0x150]
push ecx
push 0x418584
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x24], 1
jmp case.0x407962.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.0x407962.4
mov dword [ebp - 0x24], 1
jmp case.default.0x407930
mov eax, 1
test eax, eax
je 0x407b97
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 0x407b5c
jmp 0x407b97
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.0x407930.1
jmp case.default.0x407930
mov eax, 1
test eax, eax
je 0x407d65
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 0x407c4a
jmp 0x407d65
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.0x407c75.4
mov eax, dword [ebp - 0x270]
jmp dword [eax*4 + 0x407dd4]
lea ecx, [ebp - 0x12c]
push ecx
push str.REG_SZ
lea edx, [ebp - 0x14c]
push edx
push 0x418598
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp case.0x407c75.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.0x407c75.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.0x407c75.4
push str.REG_MULTI_SZ
lea edx, [ebp - 0x14c]
push edx
push str.__24s___15s__r_n
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp case.0x407c75.4
push str.REG_BINARY
lea ecx, [ebp - 0x14c]
push ecx
push str.__24_s___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.0x407930.2
jmp case.default.0x407930
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00407d7c
jmp 0x407d94
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