Function at 0x10001986
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x10002957
call fcn.100025c0
sub esp, 0xc40
mov ax, word [0x10008a0c]
push ebx
push esi
mov esi, 0x81
push edi
mov word [ebp - 0x83c], ax
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x83a]
mov ebx, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x83c]
push ebx
push eax
call fcn.10001883
cmp word [ebp - 0x83c], 0x38
pop ecx
pop ecx
jne 0x10001c73
and word [ebp - 0x634], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x632]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x634]
push ebx
push eax
mov ecx, 0x10006aa8
call fcn.100013c4
and word [ebp - 0x42c], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x634]
inc ebx
push eax
push 0x10005034
lea eax, [ebp - 0x42c]
push ebx
push eax
call fcn.10001667
and word [ebp - 0xc4c], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0xc4a]
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x634]
push eax
push 0x100058c8
lea eax, [ebp - 0xc4c]
push ebx
push eax
call fcn.10001667
add esp, 0x10
lea eax, [ebp - 0x42c]
mov ebx, 0x100058b8
push eax
push 0
push 0x100058b0
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
cmp edi, 2
je 0x10001c73
lea ecx, [ebp - 0x224]
call fcn.10001c82
and dword [ebp - 4], 0
lea eax, [ebp - 0xc4c]
push eax
lea ecx, [ebp - 0x224]
call fcn.10001ce1
cmp edi, 3
jae 0x10001c20
push 0x10005894
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x10005878
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x1000585c
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x10005844
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x1000582c
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x10005814
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x100057f8
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x100057dc
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x100057c0
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x100057a4
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x10005788
lea ecx, [ebp - 0x224]
call fcn.10001f95
mov edi, 0x1000576c
lea ecx, [ebp - 0x224]
push edi
call fcn.10001f95
push 0x10005750
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x10005734
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x10005734
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x10005718
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x10005718
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x100056fc
lea ecx, [ebp - 0x224]
call fcn.10001f95
push edi
lea ecx, [ebp - 0x224]
call fcn.10001f95
push edi
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x100057a4
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x100056e0
lea ecx, [ebp - 0x224]
call fcn.10001f95
push 0x10005750
lea ecx, [ebp - 0x224]
call fcn.10001f95
and word [ebp - 0xa44], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0xa42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xa44]
push 0xa
push eax
push 2
call dword [0x1000308c]
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0xa44]
push eax
push 0x100058b0
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.10001cb4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret