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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x10290b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x1004ff4
push eax
push 0x1004c2c
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x22c], 4
call fcn.01005817
add esp, 0x14
test eax, eax
je 0x1019c88
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008fe1
leave
ret
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1019c77
push esi
push ebx
push 0x1004fe4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
mov dword [ebp - 0x238], eax
jne 0x1019cdb
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1019c77
push 0xfffe
call fcn.010099d0
cmp eax, ebx
pop ecx
mov dword [ebp - 0x234], eax
je 0x1019ccd
mov esi, 0x7fff
push esi
push ebx
push eax
call fcn.01009000
add esp, 0xc
push dword [ebp - 0x220]
push esi
mov esi, dword [ebp - 0x234]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, 0x7ffd
jne 0x1019d3b
push dword [ebp - 0x234]
call fcn.01008fd1
pop ecx
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1019c79
cmp dword [ebp - 0x238], ebx
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x220], ebx
jle 0x1019e8b
mov edi, 0x1004fd8
push edi
push dword [ebp - 0x228]
call fcn.01021181
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1019e56
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea ebx, [esi + edi*2]
movzx eax, word [ebx]
push eax
call fcn.010099a0
test eax, eax
pop ecx
je 0x1019e54
movzx eax, word [ebx + 2]
push eax
call fcn.010099a0
test eax, eax
pop ecx
je 0x1019e54
movzx eax, word [esi + edi*2 + 4]
push eax
call fcn.010099a0
test eax, eax
pop ecx
je 0x1019e54
cmp word [esi + edi*2 + 6], 0x3d
jne 0x1019e54
push 3
push ebx
push 5
lea eax, [ebp - 0x10]
push eax
call fcn.010193df
test eax, eax
je 0x1019dd8
and word [ebp - 0x10], 0
inc dword [ebp - 0x220]
push 2
pop eax
cmp dword [ebp - 0x230], eax
jne 0x1019e1b
lea ecx, [ebp - 0x22c]
push ecx
xor eax, eax
lea ecx, [ebp - 0x224]
push ecx
push eax
push eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0x22c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1019e54
lea eax, [esi + edi*2 + 8]
push eax
call fcn.01009b81
pop ecx
push 4
mov dword [ebp - 0x224], eax
pop eax
push eax
lea ecx, [ebp - 0x224]
push ecx
push eax
mov dword [ebp - 0x22c], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
mov esi, dword [ebp - 0x228]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
cmp word [eax], bx
jne 0x1019e71
cmp word [eax + 2], bx
je 0x1019e8b
inc eax
inc eax
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x238]
cmp dword [ebp - 0x220], eax
jl 0x1019d53
xor ebx, ebx
inc ebx
jmp 0x1019d1c