Function at 0x40c8a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c730
add esp, 4
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x40c8da
mov dword [ebp - 4], 2
jmp 0x40cae5
push 0x42c13c
call dword [sym.imp.DENKIPM.dll_Ordinal_1251]
add esp, 4
mov dword [ebp - 0x8c], eax
lea edx, [ebp - 0x88]
push edx
push 1
push str.Config
mov ecx, dword [ebp - 0x8c]
call dword [sym.imp.DENKIPM.dll_Ordinal_1478]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40c916
jmp 0x40cae5
mov dword [ebp - 0x78], 0x63
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40c9f4
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
add eax, 1
push eax
call fcn.00428870
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0x78]
add edx, 1
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x94], 0
cmp dword [ebp - 0xa4], 0
je 0x40c9a0
cmp dword [ebp - 0xa4], 0x7fffffff
jbe 0x40c9aa
mov dword [ebp - 0x94], 0x80070057
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x90], edx
cmp dword [ebp - 0x90], 0
jl 0x40c9e3
push 0x7ffffffe
lea eax, [ebp - 0x70]
push eax
push 0
mov ecx, dword [ebp - 0xa4]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
call fcn.0040caf0
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x78]
mov byte [ecx + edx], 0
jmp 0x40ca93
cmp dword [ebp - 4], 0xea
jne 0x40ca6d
mov eax, dword [ebp - 0x78]
add eax, 1
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.00428870
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x74]
push eax
push 0
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x40ca5f
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00428990
add esp, 4
jmp 0x40cae5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x78]
mov byte [eax + ecx], 0
jmp 0x40ca93
cmp dword [ebp - 4], 2
jne 0x40ca84
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40cae5
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40cae5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
mov cl, byte [eax]
mov byte [ebp - 0x81], cl
movsx edx, byte [ebp - 0x81]
test edx, edx
je 0x40cadd
movsx eax, byte [ebp - 0x81]
cmp eax, 0x7c
jne 0x40cace
mov ecx, dword [ebp - 0x7c]
mov byte [ecx], 0
mov edx, dword [ebp - 0x7c]
add edx, 1
mov dword [ebp - 0x7c], edx
jmp 0x40cadb
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x7c], eax
jmp 0x40ca9b
xor ecx, ecx
jne 0x40c8b9
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret