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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8030
call fcn.00411da0
push ebx
push esi
push edi
mov dword [ebp - 0x28], ecx
call fcn.00401046
and byte [ebp - 0x8030], 0
mov ecx, 0x1fff
xor eax, eax
lea edi, [ebp - 0x802f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x424f58
mov edi, 0x7fff
push esi
lea eax, [ebp - 0x8030]
push edi
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea eax, [ebp - 0x8030]
push edi
push eax
push dword [0x41c55c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 0x10], eax
xor edx, edx
and byte [ebp - 0x24], dl
xor eax, eax
lea edi, [ebp - 0x23]
cmp dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 8], edx
stosb byte es:[edi], al
jbe 0x407c66
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x407ad7
mov edx, dword [ebp - 8]
cmp byte [ebp + edx - 0x802f], 0
je 0x407c66
mov al, byte [ebp + edx - 0x8030]
xor ecx, ecx
cmp al, 0x3d
je 0x407b06
mov byte [ebp + ecx - 0x24], al
mov al, byte [ebp + edx - 0x802f]
inc ecx
inc edx
cmp al, 0x3d
jne 0x407af2
mov dword [ebp - 8], edx
and byte [ebp + ecx - 0x24], 0
mov ecx, dword [ebp - 0x28]
call fcn.00401046
mov ecx, eax
mov dword [ebp - 4], ecx
call fcn.0040a26d
push esi
push 0
push dword [0x41c560]
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
call edi
cmp eax, dword [ebx + 8]
mov dword [ebp - 0xc], eax
jne 0x407c3c
push esi
push 0
push dword [0x41c564]
lea eax, [ebp - 0x24]
push eax
call edi
cmp eax, dword [ebx + 0xc]
jb 0x407c3c
push esi
push 0
push dword [0x41c56c]
lea eax, [ebp - 0x24]
push eax
call edi
cmp eax, dword [ebx + 0x10]
jb 0x407c3c
push esi
push 0
push dword [0x41c570]
lea eax, [ebp - 0x24]
push eax
call edi
cmp eax, dword [ebx + 0x14]
jne 0x407c3c
push esi
push 0
push dword [0x41c568]
lea eax, [ebp - 0x24]
push eax
call edi
cmp eax, dword [ebx + 0xc]
jbe 0x407c3c
cmp dword [ebx + 0x14], 2
jne 0x407c7c
cmp dword [ebp - 0xc], 4
jne 0x407bc8
mov eax, dword [ebp - 4]
push str.1.20.1827.0
add eax, 0x10
push eax
call fcn.0040cc2f
pop ecx
test eax, eax
pop ecx
jl 0x407bc8
mov ebx, 0x300
jmp 0x407be1
push esi
push 0
push dword [0x41c574]
lea eax, [ebp - 0x24]
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x407c7c
and dword [ebp - 4], 0
push 0x20019
push str.SystemCurrentControlSetControlWindows
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
call fcn.00406de3
test eax, eax
jne 0x407c2d
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xc], eax
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
push str.CSDVersion
mov dword [ebp - 0x30], eax
push dword [ebp - 4]
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 0xc], ebx
jae 0x407c6d
cmp dword [ebp - 4], 0
je 0x407c3c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov cl, byte [ebp + eax - 0x8030]
inc eax
test cl, cl
mov dword [ebp - 8], eax
je 0x407c5d
mov cl, byte [ebp + eax - 0x8030]
inc eax
test cl, cl
jne 0x407c4e
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
jb 0x407ad4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], 0
je 0x407c7c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x407c68