Function at 0x10198e4
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 [0x10280b8]
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 0x1004f24
push eax
push 0x1004be8
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.01005678
add esp, 0x14
test eax, eax
je 0x101995d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01008e04
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 0x101994c
push esi
push ebx
push 0x1004f14
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
mov dword [ebp - 0x238], eax
jne 0x10199b0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x101994c
push 0xfffe
call fcn.01009817
cmp eax, ebx
pop ecx
mov dword [ebp - 0x234], eax
je 0x10199a2
mov esi, 0x7fff
push esi
push ebx
push eax
call fcn.01008e20
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 0x1019a10
push dword [ebp - 0x234]
call fcn.01008df4
pop ecx
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x101994e
cmp dword [ebp - 0x238], ebx
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x220], ebx
jle 0x1019b60
mov edi, 0x1004f08
push edi
push dword [ebp - 0x228]
call fcn.01020739
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1019b2b
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.010097e7
test eax, eax
pop ecx
je 0x1019b29
movzx eax, word [ebx + 2]
push eax
call fcn.010097e7
test eax, eax
pop ecx
je 0x1019b29
movzx eax, word [esi + edi*2 + 4]
push eax
call fcn.010097e7
test eax, eax
pop ecx
je 0x1019b29
cmp word [esi + edi*2 + 6], 0x3d
jne 0x1019b29
push 3
push ebx
push 5
lea eax, [ebp - 0x10]
push eax
call fcn.010190b4
test eax, eax
je 0x1019aad
and word [ebp - 0x10], 0
inc dword [ebp - 0x220]
push 2
pop eax
cmp dword [ebp - 0x230], eax
jne 0x1019af0
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 0x1019b29
lea eax, [esi + edi*2 + 8]
push eax
call fcn.01009d27
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 0x1019b46
cmp word [eax + 2], bx
je 0x1019b60
inc eax
inc eax
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x238]
cmp dword [ebp - 0x220], eax
jl 0x1019a28
xor ebx, ebx
inc ebx
jmp 0x10199f1