Function at 0x100238a
Capabilities:
Get file size
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 1
push 3
push ebx
push 1
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov esi, 0x1388
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10023f7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x200000
jb 0x10023f7
push 0xe88
call fcn.0100e8a3
push eax
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call fcn.0100e4e5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
lea edi, [esi + esi]
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
call fcn.0100cb82
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1002423
push 0x20001
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.0100e8bb
jmp 0x10023ee
push edi
call fcn.0100cb82
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x100244f
push 0x20001
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.0100e8bb
lea eax, [ebp - 4]
push eax
call fcn.0100cf75
jmp 0x10023ee
push dword [ebp - 4]
call fcn.0100cc2b
cmp eax, ebx
mov ecx, dword [ebp - 4]
je 0x1002464
mov byte [ecx], bl
inc ecx
dec eax
jne 0x100245e
lea eax, [esi - 2]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], eax
mov edi, 0x400
push dword [ebp + 8]
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
jne 0x1002505
add dword [ebp - 0x14], edi
add dword [ebp - 0xc], 0x800
add esi, edi
cmp dword [ebp - 4], ebx
je 0x10024a7
lea eax, [ebp - 4]
push eax
call fcn.0100cf75
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x10024b8
lea eax, [ebp - 8]
push eax
call fcn.0100cf75
mov dword [ebp - 8], ebx
push dword [ebp - 0xc]
call fcn.0100cb82
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.0100cb82
cmp dword [ebp - 4], ebx
mov dword [ebp - 8], eax
je 0x10024e0
cmp eax, ebx
je 0x10024e0
cmp dword [ebp - 0xc], 0x1fffe
jne 0x1002472
push 0x20001
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.0100e8bb
lea eax, [ebp - 4]
push eax
call fcn.0100cf75
lea eax, [ebp - 8]
jmp 0x1002447
push ebx
push dword [ebp - 4]
call fcn.0100c981
mov ecx, dword [ebp - 4]
mov word [ecx + eax*2], bx
call fcn.0100e976
mov esi, eax
cmp esi, ebx
je 0x10024e0
mov edi, dword [ebp - 0x1c]
cmp edi, ebx
jbe 0x100257a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
add eax, eax
mov cx, word [eax + ecx]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x18]
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
inc eax
cmp word [edx + ecx], bx
mov dword [ebp - 0x18], eax
jne 0x1002572
mov ecx, dword [ebp - 8]
push ebx
mov word [ecx + eax*2 + 2], bx
push dword [ebp - 8]
mov dword [ebp - 0x18], ebx
push esi
call fcn.0100ed38
push ebx
push dword [ebp - 8]
call fcn.0100c981
test eax, eax
je 0x100257e
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jb 0x1002527
mov ebx, esi
jmp 0x10025aa
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7c
call fcn.0100e8a3
mov esi, dword [sym.imp.msvcrt.dll___iob_func]
push eax
call esi
add eax, 0x40
push eax
call fcn.0100e4e5
call esi
add eax, 0x40
push eax
call fcn.0100c7d9
lea eax, [ebp - 4]
push eax
call fcn.0100cf75
lea eax, [ebp - 8]
push eax
call fcn.0100cf75
mov eax, ebx
jmp 0x10023f0