Function at 0x100237a
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 0x10023e7
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 0x10023e7
push 0xe88
call fcn.0100e6e4
push eax
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call fcn.0100d36f
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.0100cbb3
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1002413
push 0x20001
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.0100e6fc
jmp 0x10023de
push edi
call fcn.0100cbb3
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x100243f
push 0x20001
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.0100e6fc
lea eax, [ebp - 4]
push eax
call fcn.0100cf4f
jmp 0x10023de
push dword [ebp - 4]
call fcn.0100cc5c
mov ecx, dword [ebp - 4]
cmp eax, ebx
je 0x1002454
mov byte [ecx], bl
inc ecx
dec eax
jne 0x100244e
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]
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x14]
jne 0x10024f5
add dword [ebp - 0x14], edi
add dword [ebp - 0xc], 0x800
add esi, edi
cmp dword [ebp - 4], ebx
je 0x1002497
lea eax, [ebp - 4]
push eax
call fcn.0100cf4f
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x10024a8
lea eax, [ebp - 8]
push eax
call fcn.0100cf4f
mov dword [ebp - 8], ebx
push dword [ebp - 0xc]
call fcn.0100cbb3
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.0100cbb3
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
je 0x10024d0
cmp eax, ebx
je 0x10024d0
cmp dword [ebp - 0xc], 0x1fffe
jne 0x1002462
push 0x20001
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.0100e6fc
lea eax, [ebp - 4]
push eax
call fcn.0100cf4f
lea eax, [ebp - 8]
jmp 0x1002437
push ebx
push dword [ebp - 4]
call fcn.0100c9b2
mov edx, dword [ebp - 4]
xor ecx, ecx
mov word [edx + eax*2], cx
call fcn.0100e7b7
mov esi, eax
cmp esi, ebx
je 0x10024d0
mov edi, dword [ebp - 0x1c]
cmp edi, ebx
jbe 0x100256e
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
mov dword [ebp - 0x18], eax
cmp word [edx + ecx], bx
jne 0x1002566
mov edx, dword [ebp - 8]
xor ecx, ecx
push ebx
mov word [edx + eax*2 + 2], cx
push dword [ebp - 8]
mov dword [ebp - 0x18], ebx
push esi
call fcn.0100eb79
push ebx
push dword [ebp - 8]
call fcn.0100c9b2
test eax, eax
je 0x1002572
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jb 0x1002519
mov ebx, esi
jmp 0x100259e
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7c
call fcn.0100e6e4
mov esi, dword [sym.imp.msvcrt.dll___iob_func]
push eax
call esi
add eax, 0x40
push eax
call fcn.0100d36f
call esi
add eax, 0x40
push eax
call fcn.0100c80a
lea eax, [ebp - 4]
push eax
call fcn.0100cf4f
lea eax, [ebp - 8]
push eax
call fcn.0100cf4f
mov eax, ebx
jmp 0x10023e0