Function at 0x10016120
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1094
call fcn.102244a0
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
mov ebx, ecx
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x100161d1
mov esi, dword [esp + 0x10ac]
mov edi, dword [sym.imp.MSVCRT.dll__stricmp]
push str.SYSTEM.INI
push esi
call edi
add esp, 8
test eax, eax
jne 0x1001618b
mov ecx, dword [esp + 0x10bc]
push ecx
mov ecx, ebx
call fcn.10017160
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1094
ret 0x18
push str.WIN.INI
push esi
call edi
add esp, 8
test eax, eax
jne 0x10016535
mov edx, dword [esp + 0x10bc]
mov eax, dword [esp + 0x10b4]
mov ecx, dword [esp + 0x10a8]
push edx
push 0x16
push eax
push ecx
mov ecx, ebx
call fcn.10017ee0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1094
ret 0x18
mov edi, dword [esp + 0x10a8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4a4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x8a4], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xa4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x100
lea edi, [esp + 0xa4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10ac]
mov eax, dword [esp + 0x10b4]
push ecx
mov ecx, dword [esp + 0x10b4]
push 0x400
push edx
push 0x107ab9d8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x10016535
lea edx, [esp + 0xa4]
push edx
call dword [sym.imp.MSVCRT.dll__strupr]
lea eax, [esp + 0xca8]
lea ecx, [esp + 0xa8]
push eax
push ecx
call fcn.10016850
mov ecx, 0x100
lea esi, [esp + 0xcb0]
lea edi, [esp + 0xb0]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov edi, 0x107ab9d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x8b0]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebp, dword [sym.imp.MSVCRT.dll_strstr]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xb0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4b0]
push ecx
push edx
call ebp
mov edx, eax
add esp, 0x14
test edx, edx
je 0x10016535
xor ebx, ebx
cmp dword [esp + 0x10b8], 1
jne 0x100163c3
lea eax, [esp + 0xa4]
cmp edx, eax
je 0x10016331
lea ecx, [esp + 0xa4]
cmp edx, ecx
jbe 0x1001630b
mov al, byte [edx - 1]
cmp al, 0x20
je 0x10016331
cmp al, 9
je 0x10016331
cmp al, 0x3b
je 0x10016331
cmp al, 0x22
je 0x10016331
lea edi, [esp + 0x4a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
lea edx, [esp + 0x4a4]
push edx
push ecx
call ebp
add esp, 8
jmp 0x100164be
lea edi, [esp + 0x4a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
mov al, byte [ecx]
cmp al, 0x20
je 0x1001636d
cmp al, 9
je 0x1001636d
cmp al, 0x3b
je 0x1001636d
cmp al, 0x22
je 0x1001636d
test al, al
je 0x1001636d
lea eax, [esp + 0x4a4]
push eax
push ecx
call ebp
add esp, 8
jmp 0x100164be
lea edi, [esp + 0x4a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0xa4]
mov ebx, ecx
or ecx, 0xffffffff
add ebx, edx
mov byte [edx], al
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x8a4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebx], 0x20
jne 0x1001644c
mov al, byte [ebx + 1]
inc ebx
cmp al, 0x20
je 0x100163b6
jmp 0x1001644c
lea edi, [esp + 0x4a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
mov al, byte [ecx]
cmp al, 0x20
je 0x100163ff
cmp al, 9
je 0x100163ff
cmp al, 0x3b
je 0x100163ff
cmp al, 0x22
je 0x100163ff
test al, al
je 0x100163ff
lea edx, [esp + 0x4a4]
push edx
push ecx
call ebp
add esp, 8
jmp 0x100164be
lea edi, [esp + 0x4a4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0xa4]
mov ebx, ecx
or ecx, 0xffffffff
add ebx, edx
mov byte [edx], al
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x8a4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebx], 0x20
jne 0x1001644c
mov al, byte [ebx + 1]
inc ebx
cmp al, 0x20
je 0x10016444
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x8a4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xca4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x8a8]
mov ebx, 1
push ecx
call fcn.10016850
lea edx, [esp + 0x4ac]
mov ecx, 0x100
lea esi, [esp + 0xcac]
lea edi, [esp + 0xac]
lea eax, [esp + 0xac]
push edx
rep movsd dword es:[edi], dword [esi]
push eax
call ebp
add esp, 0x10
mov edx, eax
test edx, edx
jne 0x100162d4
test ebx, ebx
je 0x10016535
lea ecx, [esp + 0xca4]
lea edx, [esp + 0x8a4]
push ecx
push edx
call fcn.10016850
lea edi, [esp + 0xcac]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x8a4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x8a4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10b4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10ac]
push ecx
mov ecx, dword [esp + 0x10b4]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1094
ret 0x18