Function at 0x402f37
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x141c
call fcn.005106b0
mov dword [ebp - 0x141c], 0
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x100c]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x100c]
push edx
call fcn.00401fca
add esp, 4
push 0x51a30c
mov eax, dword [ebp + 0x14]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x402fad
push 0x5b8568
lea ecx, [ebp - 0x100c]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x1018]
push edx
push 0x20119
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402ff1
push 0x51a310
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [ebp - 0x141c]
or edx, 1
mov dword [ebp - 0x141c], edx
mov eax, dword [ebp + 8]
jmp 0x4032e9
mov dword [ebp - 0x1014], 0
jmp 0x40300c
mov eax, dword [ebp - 0x1014]
add eax, 1
mov dword [ebp - 0x1014], eax
mov dword [ebp - 0x40c], 0x400
mov byte [ebp - 0x404], 0
mov dword [ebp - 0x408], 0x400
mov byte [ebp - 0x1418], 0
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x1418]
push edx
lea eax, [ebp - 0x1010]
push eax
push 0
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
mov eax, dword [ebp - 0x1014]
push eax
mov ecx, dword [ebp - 0x1018]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x4032b6
lea edx, [ebp - 0x404]
push edx
call fcn.00401fca
add esp, 4
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x100c]
push ecx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x4032b4
cmp dword [ebp - 0x1010], 3
jne 0x403146
push str.Hex:
lea edx, [ebp - 0xc0c]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 4], 0
jmp 0x4030cf
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x408]
jae 0x403130
mov edx, dword [ebp - 4]
xor eax, eax
mov al, byte [ebp + edx - 0x1418]
push eax
push str._02X
lea ecx, [ebp - 0x80c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x80c]
push edx
lea eax, [ebp - 0xc0c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
cmp dword [ebp - 4], 9
jne 0x40312e
push 0x51a328
lea ecx, [ebp - 0xc0c]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x403130
jmp 0x4030c6
lea edx, [ebp - 0xc0c]
push edx
lea eax, [ebp - 0x1418]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
cmp dword [ebp - 0x1010], 7
jne 0x40321f
push 0x5b856c
lea ecx, [ebp - 0xc0c]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 4], 0
jmp 0x403179
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x408]
jae 0x403209
mov ecx, dword [ebp - 4]
movsx edx, byte [ebp + ecx - 0x1418]
test edx, edx
jne 0x4031a8
mov eax, dword [ebp - 4]
movsx ecx, byte [ebp + eax - 0x1417]
test ecx, ecx
jne 0x4031a8
jmp 0x403209
mov edx, dword [ebp - 4]
movsx eax, byte [ebp + edx - 0x1418]
test eax, eax
jne 0x4031cd
push 0x51a32c
lea ecx, [ebp - 0xc0c]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x403170
mov edx, dword [ebp - 4]
movsx eax, byte [ebp + edx - 0x1418]
push eax
push 0x51a330
lea ecx, [ebp - 0x80c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [ebp - 0x80c]
push edx
lea eax, [ebp - 0xc0c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x403170
lea ecx, [ebp - 0xc0c]
push ecx
lea edx, [ebp - 0x1418]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
cmp dword [ebp - 0x1010], 4
jne 0x403285
mov eax, dword [ebp - 0x1418]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x1417]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x1416]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x1415]
and eax, 0xff
push eax
push str.DWORD:_0x_02X_02X_02X_02X
lea ecx, [ebp - 0xc0c]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea edx, [ebp - 0xc0c]
push edx
lea eax, [ebp - 0x1418]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov ecx, dword [ebp - 0x1018]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x1418]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp - 0x141c]
or al, 1
mov dword [ebp - 0x141c], eax
mov eax, dword [ebp + 8]
jmp 0x4032e9
jmp 0x4032b8
jmp 0x4032bd
jmp 0x402ffd
mov ecx, dword [ebp - 0x1018]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x51a350
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [ebp - 0x141c]
or edx, 1
mov dword [ebp - 0x141c], edx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret