Function at 0x10017c85
Capabilities:
Get file size
Read .ini file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc5c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0x108]
xor ebx, ebx
cmp eax, ebx
je 0x10017fcf
cmp dword [eax + 4], ebx
je 0x10017fcf
test byte [eax + 0x18], 0x40
je 0x10017fcf
mov eax, dword [edi + 0x14]
lea edx, [ebp - 8]
add eax, 0x6c
push edx
mov dword [ebp - 8], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
cmp eax, ebx
jge 0x10017cf2
add edi, 0xfffffff8
push edi
mov esi, eax
call fcn.10015b1b
mov esi, eax
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x10017ceb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x10017fe8
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push 5
mov dword [ebp - 0xc], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x70]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], esi
jge 0x10017d23
add edi, 0xfffffff8
push edi
call fcn.10015b1b
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10017cde
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x43a]
push ebx
push eax
call fcn.10131950
push dword [ebp - 0xc]
lea eax, [ebp - 0x43c]
push 0x1018b7e8
push eax
call fcn.10131892
lea eax, [ebp - 0x43c]
push 0x1018ede8
push eax
call fcn.10131845
xor eax, eax
push edi
mov word [ebp - 0x644], ax
lea eax, [ebp - 0x642]
push ebx
push eax
call fcn.10131950
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x644]
push str._s_attr.ini
push eax
call fcn.10131892
xor eax, eax
push edi
mov word [ebp - 0x84c], ax
lea eax, [ebp - 0x84a]
push ebx
push eax
call fcn.10131950
add esp, 0x44
xor eax, eax
push edi
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x232]
push ebx
push eax
call fcn.10131950
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea eax, [ebp - 0x644]
push eax
push 0x104
lea eax, [ebp - 0x234]
push eax
push 0x1018b558
push str.count
push str.Count
call esi
lea eax, [ebp - 0x234]
push eax
call fcn.101348bc
mov dword [ebp - 0x1c], eax
xor eax, eax
push edi
mov word [ebp - 0xa54], ax
lea eax, [ebp - 0xa52]
push ebx
push eax
call fcn.10131950
xor eax, eax
push edi
mov word [ebp - 0xc5c], ax
lea eax, [ebp - 0xc5a]
push ebx
push eax
call fcn.10131950
add esp, 0x1c
xor eax, eax
cmp dword [ebp - 0x1c], ebx
jle 0x10017f8a
inc eax
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x84c]
push str.data_d
push eax
call fcn.10131892
add esp, 0xc
lea eax, [ebp - 0x644]
push eax
mov edi, 0x104
push edi
lea eax, [ebp - 0xa54]
push eax
push 0x1018a0dc
push 0x1018ee44
lea eax, [ebp - 0x84c]
push eax
call esi
lea eax, [ebp - 0x644]
push eax
push edi
lea eax, [ebp - 0x234]
push eax
push 0x1018b558
push str.private
lea eax, [ebp - 0x84c]
push eax
call esi
lea eax, [ebp - 0x234]
push eax
call fcn.101348bc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0xc5c]
push str._s_s_s
push eax
call fcn.10131892
add esp, 0x18
push ebx
push 0x80
push 3
push ebx
push ebx
push closesocket
lea eax, [ebp - 0xc5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x10017f99
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], ebx
jne 0x10017fb4
push eax
call fcn.101317de
pop ecx
mov dword [ebp - 0x10], eax
xor edi, edi
push ebx
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
sub eax, edi
push eax
mov eax, dword [ebp - 0x10]
add eax, edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
add edi, dword [ebp - 0x28]
cmp edi, dword [ebp - 4]
jb 0x10017f26
push dword [ebp - 0x20]
mov edi, dword [ebp + 8]
push dword [ebp - 4]
mov eax, dword [edi]
push dword [ebp - 0x10]
lea ecx, [ebp - 0xa54]
push ecx
push edi
call dword [eax + 0x90]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.101317e9
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], ebx
jl 0x10017fc7
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jl 0x10017e3c
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x2c]
add eax, 0xfffffff8
push eax
jmp 0x10017d11
push 0xe00b100f
mov eax, 0x1018a974
push 0x1018af0c
push 0x1018af9c
call fcn.10004ead
jmp 0x10017f8a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xe00b1010
mov eax, 0x1018a968
jmp 0x10017fa3
mov esi, dword [ebp - 4]
jmp 0x10017d0d
push 0xe00b101b
push 0x1018af5c
push 0x1018af9c
mov eax, 0x1018a898
call fcn.10004ead
pop edi
pop esi
pop ebx
leave
ret 4