Function at 0x40cc30
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x10
mov eax, dword [0x41f0cc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov byte [eax], 0
xor ebp, ebp
push edi
mov eax, dword [esi + 0x1e]
mov dword [esp + 0x14], ebp
cmp eax, ebp
je 0x40cc7f
push str.parent
push eax
call fcn.00412fb0
add esp, 8
test eax, eax
je 0x40cc77
mov ecx, dword [esi + 0x1e]
mov edx, dword [0x41f350]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40cc6b
jmp 0x40cc7f
mov dword [esp + 0x14], 1
cmp dword [esi + 0x16], ebp
je 0x40cd9d
mov eax, dword [esi + 0x12]
mov edi, dword [0x41a2c4]
cmp eax, 0x14
mov dword [esp + 0x18], ebp
jae 0x40cca1
mov edi, dword [eax*4 + 0x41a2c0]
xor ebx, ebx
cmp eax, 4
jne 0x40ccbf
mov ecx, dword [esi + 0x1a]
push 0x5c
push ecx
call fcn.00413210
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x40ccbf
mov byte [ebx], 0
mov ecx, dword [0x41f2ec]
xor eax, eax
cmp ecx, ebp
je 0x40ccd6
test byte [esi + 1], 0x40
je 0x40ccd6
mov eax, 0x100
lea edx, [esp + 0x24]
or eax, 0x20019
push edx
push eax
mov eax, dword [esi + 0x16]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push edi
call ebp
test eax, eax
jne 0x40cd39
mov edx, dword [0x41f0cc]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x1a]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, 1
je 0x40cd2a
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40cd96
cmp dword [esi + 0x12], 4
jne 0x40cd96
mov edi, dword [esi + 0x1a]
test ebx, ebx
je 0x40cd49
lea edi, [ebx + 1]
mov edx, dword [esi + 0x16]
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push 0
push edx
push 0x80000001
call ebp
test eax, eax
jne 0x40cd96
mov ecx, dword [0x41f0cc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push edi
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40cd9d
mov byte [ebx], 0x5c
mov ecx, dword [0x41f0cc]
cmp byte [ecx], 0
jne 0x40ce44
mov eax, dword [esi + 0x26]
test eax, eax
je 0x40ce3b
mov edx, dword [esi + 0x2a]
test edx, edx
je 0x40ce3b
mov edx, dword [esi + 0x2e]
test edx, edx
je 0x40ce3b
push 0xffdc
push eax
push 0
call fcn.00408290
lea edi, [eax + 1]
push edi
call fcn.00413320
mov edx, dword [esi + 0x26]
mov ebx, eax
push edi
push edx
push ebx
call fcn.00408290
mov ecx, dword [0x41f350]
mov edx, dword [0x41f0cc]
add esp, 0x1c
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40cdf7
mov eax, dword [0x41f0cc]
mov ecx, dword [esi + 0x2e]
mov edx, dword [esi + 0x2a]
push ebx
push 0x104
push eax
push 0x41f384
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40ce2c
mov eax, dword [0x41f0cc]
mov byte [eax], 0
push ebx
call fcn.00413483
mov ecx, dword [0x41f0cc]
add esp, 4
cmp byte [ecx], 0
je 0x40cef8
mov esi, ecx
cmp byte [esi], 0x22
jne 0x40ce71
mov al, byte [esi + 1]
inc esi
cmp al, 0x22
mov ecx, esi
je 0x40ce66
test al, al
je 0x40ce66
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x22
jne 0x40ce55
mov byte [ecx], 0
jmp 0x40ce71
cmp byte [ecx], 0x22
jne 0x40ce70
mov byte [ecx], 0
jmp 0x40ce71
dec esi
push esi
call fcn.00413518
add esp, 4
test eax, eax
je 0x40ceb6
push 0x5c
push esi
call fcn.004131d0
mov edi, eax
add esp, 8
test edi, edi
je 0x40ceb1
lea ecx, [edi + 1]
push 0x2e
push ecx
call fcn.00413210
add esp, 8
test eax, eax
je 0x40ceb1
push esi
mov byte [edi], 0
call fcn.00413518
add esp, 4
test eax, eax
je 0x40ceb6
mov byte [esi], 0
jmp 0x40cef8
cmp byte [esi], 0
je 0x40cef8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40ced5
push 0x5c
push esi
call fcn.004131d0
add esp, 8
test eax, eax
je 0x40ced5
mov byte [eax], 0
mov ecx, dword [0x41f350]
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
test al, al
jne 0x40cedb
mov eax, dword [0x41f350]
cmp byte [eax], 0
je 0x40cef8
push eax
call fcn.0040cf20
add esp, 4
mov eax, dword [0x41f350]
push 0x104
push eax
push eax
call fcn.00408290
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret