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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x100416e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x83c], 0
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x82c], 0x208
push eax
lea eax, [ebp - 0x830]
mov ebx, ecx
push eax
push 0
push 0x10001c18
push dword [ebx + 0x110]
mov dword [ebp - 0x838], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100240be
mov eax, dword [ebp - 0x830]
cmp eax, 4
jne 0x10023df2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x100240be
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
add esp, 4
movzx edx, al
mov ecx, ebx
mov dword [ebx + 0xa8], eax
call fcn.10019db0
call fcn.100235f0
test ax, ax
jne 0x10024160
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0x208
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x830]
push eax
push 0
push 0x100039fc
push dword [ebx + 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10023e68
cmp dword [ebp - 0x830], 1
je 0x10023e90
push 0x10003a14
lea eax, [ebp - 0x620]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
jmp 0x10023e90
mov eax, dword [ebp - 0x83c]
cmp ax, 0x1d
jae 0x10023ddf
movzx edi, ax
inc eax
shl edi, 5
mov dword [ebp - 0x83c], eax
add edi, section..data
je 0x10023ddf
mov ebx, dword [edi + 8]
mov esi, ebx
and esi, 0xf
mov dword [ebp - 0x834], ebx
mov dword [ebp - 0x82c], 0x208
cmp esi, 2
jne 0x10023ee4
mov eax, ebx
and eax, 0x300000
cmp eax, 0x100000
je 0x10023e90
test ebx, 0x100000
je 0x10023f3e
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x830]
push eax
mov eax, dword [ebp - 0x838]
push 0
push dword [edi]
push dword [eax + 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10023f3e
cmp dword [ebp - 0x830], 1
jne 0x10023f3e
mov eax, dword [ebp - 0x838]
mov ebx, dword [eax + 0x110]
test ebx, ebx
jne 0x10023fc5
mov ebx, dword [ebp - 0x834]
test ebx, 0x200000
je 0x10023e90
mov ebx, dword [ebp - 0x838]
lea eax, [ebp - 0x620]
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebx + 0xac]
push 0x10003a2c
push dword [edi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x10003a2c
lea eax, [ebp - 0x210]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10023faa
test dx, dx
je 0x10023fa6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10023faa
add eax, 4
add ecx, 4
test dx, dx
jne 0x10023f84
xor eax, eax
jmp 0x10023faf
sbb eax, eax
or eax, 1
test eax, eax
je 0x10023e90
mov ebx, dword [ebx + 0x10c]
test ebx, ebx
je 0x10023e90
sub esi, 1
je 0x1002408d
sub esi, 1
je 0x1002405b
sub esi, 1
jne 0x10023e90
xor eax, eax
mov word [ebp - 0x834], ax
lea eax, [ebp - 0x210]
push 0x100021dc
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10024034
lea eax, [ebp - 0x210]
push 0x10003a48
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10024034
lea eax, [ebp - 0x210]
push 0x10003a50
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10024040
mov eax, 1
mov word [ebp - 0x834], ax
push 1
lea eax, [ebp - 0x834]
push eax
push 3
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10023e90
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10024064
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
push 1
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10023e90
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wtoi]
add esp, 4
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x840]
push 4
push eax
push 4
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x10023e90
xor eax, eax
push 0x104
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x418]
push eax
push 0xb3b0
push dword [0x10043518]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [ebp - 0x418], 0
jne 0x10024116
mov esi, dword [0x1004332c]
lea eax, [ebp - 0x418]
push 0x104
push eax
push 0xb3b0
mov ecx, esi
call dword [0x10044350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10001c18
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x828]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x828]
mov ecx, 0x3f
push 0
push 0
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push 0xa410
push 0xa4d8
push eax
push dword [ebx + 0x7c]
call fcn.1001a550
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret