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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100125a8
push 0x1001134a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x154], ebx
push 0x20
push ebx
lea eax, [ebp - 0x14c]
push eax
call sub.MSVCRT.dll_memset
mov esi, 0x104
push esi
push ebx
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_memset
push esi
push ebx
lea eax, [ebp - 0x258]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x25c]
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10007a69
or dword [ebp - 0x24], 0xffffffff
jmp 0x10007d8c
mov eax, dword [ebp + 0x24]
sub eax, ebx
je 0x10007c2f
dec eax
je 0x10007bb7
dec eax
je 0x10007a84
dec eax
jmp 0x10007d43
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x20
push ebx
lea eax, [ebp - 0x14c]
push eax
call sub.MSVCRT.dll_memset
push esi
push ebx
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_memset
push esi
push ebx
lea eax, [ebp - 0x258]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x154]
inc dword [ebp - 0x154]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp + 0x14]
push ecx
push ebx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14c]
push ecx
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x10007d8c
mov eax, dword [ebp + 0x14]
dec eax
je 0x10007b77
dec eax
je 0x10007b69
dec eax
je 0x10007b4a
dec eax
je 0x10007b1d
sub eax, 3
jne 0x10007b9b
push str.REG_MULTI_SZ
jmp 0x10007b4f
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x12c]
push eax
push str.REG_DWORD
lea eax, [ebp - 0x14c]
push eax
push str.__24s___15s_0x_x__d___r_n
lea eax, [ebp - 0x258]
push eax
call edi
add esp, 0x18
jmp 0x10007b9b
push str.REG_BINARY
lea eax, [ebp - 0x14c]
push eax
push str.__24s___15s__r_n
lea eax, [ebp - 0x258]
push eax
call edi
add esp, 0x10
jmp 0x10007b9b
lea eax, [ebp - 0x12c]
push eax
push str.REG_EXPAND_SZ
jmp 0x10007b83
lea eax, [ebp - 0x12c]
push eax
push str.REG_SZ
lea eax, [ebp - 0x14c]
push eax
push str.__24s___15s__s__r_n
lea eax, [ebp - 0x258]
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x24], 1
jmp 0x10007a8a
push esi
push ebx
lea eax, [ebp - 0x12c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x154]
inc dword [ebp - 0x154]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x10007d8c
lea eax, [ebp - 0x12c]
push eax
push str.__s__r_n
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strcat
add esp, 0x14
mov dword [ebp - 0x24], 1
jmp 0x10007bb7
mov ecx, dword [ebp + 0x14]
cmp ecx, ebx
jbe 0x10007d8c
cmp ecx, 2
jbe 0x10007d47
cmp ecx, 3
je 0x10007d20
push 4
pop eax
cmp ecx, eax
je 0x10007ce0
cmp ecx, 7
jne 0x10007d8c
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10007d8c
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x28], eax
mov edi, dword [sym.imp.MSVCRT.dll_strncat]
cmp byte [eax], bl
je 0x10007cca
push esi
push eax
lea eax, [ebp - 0x258]
push eax
call edi
push esi
push 0x10016184
lea eax, [ebp - 0x258]
push eax
call edi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0x20
inc eax
mov dword [ebp - 0x28], eax
jmp 0x10007c99
lea eax, [ebp - 0x258]
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
jmp 0x10007d85
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10007d8c
push dword [ebp - 0x150]
push 0x1001677c
push dword [ebp + 0x18]
call dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x10007d82
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10007d8c
jmp 0x10007d85
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10007d8c
lea eax, [ebp - 0x12c]
push eax
call fcn.100079b1
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strcpy
add esp, 0xc
mov dword [ebp - 0x24], 1
or dword [ebp - 4], 0xffffffff
call fcn.10007da7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret