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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov eax, dword [0x10093a40]
push esi
xor ebx, ebx
push edi
push ebx
lea edi, [ecx + 0x40]
push ebx
push 3
push ebx
mov dword [esp + 0x28], ecx
mov ecx, dword [0x10093a44]
lea esi, [edi + 0x2c]
push 3
push connect
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10019b49
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea ebp, [edi + 0x154]
lea edx, [esp + 0x24]
push ebp
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x10019d74
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov ecx, dword [edi + 0x20]
cmp ecx, ebx
je 0x10019b8f
mov edx, dword [ecx]
push 3
call dword [edx + 4]
mov eax, dword [edi + 0x28]
cmp eax, ebx
je 0x10019b9f
push eax
call fcn.10088e50
add esp, 4
mov eax, dword [edi + 8]
lea ebp, [edi + 4]
cmp eax, ebx
je 0x10019bb2
push eax
call fcn.10088e50
add esp, 4
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x10019bc2
push eax
call fcn.10088e50
add esp, 4
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov ecx, ebp
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
call fcn.1001a0a0
push ebx
push ebx
push 3
push ebx
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10019d3d
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, ebx
je 0x10019d3d
cmp esi, 0x2000000
jae 0x10019d3d
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
push eax
push esi
push ebx
push str.Configs
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea esi, [eax + 1]
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, esi
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
mov dword [ebp + 4], eax
push ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10088e50
mov esi, dword [ebp + 4]
add esp, 8
xor ebx, ebx
cmp byte [esi], 0
je 0x10019cb4
push 0x3d
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
je 0x10019c9c
inc ebx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x10019c8b
lea eax, [ebx + ebx*2 + 3]
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, dword [ebp + 4]
mov dword [ebp + 8], eax
add esp, 4
xor eax, eax
mov cl, byte [esi]
mov dword [esp + 0x10], eax
test cl, cl
je 0x10019d36
mov dword [esp + 0x14], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebx, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x3d
push ebx
lea esi, [esi + ecx + 1]
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
je 0x10019d31
mov edi, dword [esp + 0x14]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
inc eax
push ebx
mov dword [ecx + edi], ebx
mov edx, dword [ebp + 8]
mov dword [edx + edi + 4], eax
call fcn.100083e0
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx + edi + 8], eax
mov ecx, dword [esp + 0x10]
inc ecx
add edi, 0xc
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
cmp byte [esi], 0
jne 0x10019cda
mov edx, dword [esp + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [esp + 0x18]
push ebp
push 0x100aba18
mov edx, dword [eax + 0x40]
lea esi, [eax + 0x40]
mov ecx, esi
call dword [edx]
mov ecx, esi
call fcn.1001ab80
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x150], eax
call fcn.10019db0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
mov ecx, edi
call fcn.1001ab80
cmp eax, dword [edi + 0x150]
je 0x10019d9f
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x150], eax
call fcn.10019db0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret