Function at 0x6c1c40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x221c
call fcn.006c7bc0
mov eax, dword [0x6ded78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
push eax
mov dword [ebp - 0x2218], edi
mov dword [ebp - 0x221c], ebx
mov dword [ebp - 0x220c], esi
call fcn.006c0fe0
cmp eax, esi
je 0x6c1caa
lea esi, [ebp - 0x2204]
mov ecx, eax
sub esi, eax
lea ebx, [ebx]
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x6c1c90
push eax
call fcn.006c809e
add esp, 4
xor esi, esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x204]
push eax
push ecx
mov ecx, edi
call fcn.006c12a0
cmp dword [ebx], esi
jne 0x6c1cc4
xor eax, eax
jmp 0x6c1cc7
lea eax, [ebx + 4]
cmp eax, esi
je 0x6c1e89
jmp 0x6c1cd9
mov eax, dword [ebp - 0x2208]
xor esi, esi
cmp eax, esi
je 0x6c1d1d
sub eax, ebx
sub eax, 3
lea ecx, [eax - 1]
cmp ecx, 0x1f3
ja 0x6c1d1d
mov edx, dword [ebx]
cmp eax, edx
jae 0x6c1cff
lea eax, [ebx + eax + 4]
mov dword [ebp - 0x2208], eax
jmp 0x6c1d05
mov dword [ebp - 0x2208], esi
cmp ecx, edx
jae 0x6c1d23
cmp ecx, 0xffffffff
je 0x6c1d23
mov ecx, dword [ebx + ecx*4 + 0x1f8]
mov dword [ebp - 0x2210], ecx
jmp 0x6c1d29
mov dword [ebp - 0x2208], esi
mov dword [ebp - 0x2210], esi
mov edx, dword [ebp - 0x2210]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x2214], ecx
cmp ecx, esi
je 0x6c1dd6
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6c1d45
push 0
push 0
sub eax, esi
mov ebx, eax
push ebx
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006c8117
mov esi, eax
add esp, 4
test esi, esi
je 0x6c1dca
lea eax, [edi + edi + 4]
push eax
push 0
push esi
call fcn.006c8130
mov ecx, dword [ebp - 0x2214]
add esp, 0xc
push ebx
push esi
push ebx
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [ebp - 0xa04]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x6c1db2
push esi
call fcn.006c809e
add esp, 4
mov ebx, dword [ebp - 0x221c]
mov edi, dword [ebp - 0x2218]
mov esi, dword [ebp - 0x2210]
mov edx, dword [esi]
push str.0x00000000
push edx
call fcn.006c889d
add esp, 8
test eax, eax
jne 0x6c1ea2
lea eax, [ebp - 0x1204]
push eax
lea ecx, [ebp - 0xa04]
push ecx
mov ecx, edi
call fcn.006c1bb0
test eax, eax
je 0x6c1e7c
lea edx, [ebp - 0x2204]
push edx
push 0x400
lea eax, [ebp - 0x1a04]
push eax
push 0x6d7e6c
lea ecx, [ebp - 0x1204]
push ecx
lea edx, [ebp - 0x204]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x6c1e7c
lea eax, [ebp - 0x1a04]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x6c1e50
sub eax, edx
sar eax, 1
je 0x6c1e7c
lea eax, [ebp - 0x1a04]
push eax
lea ecx, [ebp - 0xa04]
push ecx
mov ecx, edi
call fcn.006c1060
mov dword [ebp - 0x220c], eax
cmp dword [ebp - 0x2208], 0
jne 0x6c1cd1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006c7820
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
push eax
mov ecx, edi
call fcn.006c0fe0
test eax, eax
je 0x6c1e0d
lea esi, [ebp - 0x1204]
mov ecx, eax
sub esi, eax
mov edi, edi
movzx edx, word [ecx]
mov word [esi + ecx], dx
add ecx, 2
test dx, dx
jne 0x6c1ec0
push eax
call fcn.006c809e
add esp, 4
jmp 0x6c1e0d