Function at 0x1001a0e0
Capabilities:
Encode data using xor
Get file size
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x1001a0f9
push eax
call fcn.10088e50
add esp, 4
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x1001a109
push eax
call fcn.10088e50
add esp, 4
mov eax, dword [esp + 0x18]
push ebx
push ebx
push 3
push ebx
push 1
push connect
push eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001a2b0
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 0x1001a2b0
cmp esi, 0x2000000
jae 0x1001a2b0
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 + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push esi
push ebx
push ecx
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 0x1001a1e6
push 0x3d
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
je 0x1001a1ce
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 0x1001a1bd
lea eax, [ebx + ebx*2 + 3]
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, dword [ebp + 4]
mov dword [ebp + 8], eax
add esp, 4
xor eax, eax
mov cl, byte [ebx]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x1001a29c
mov dword [esp + 0x18], eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x3d
push esi
lea ebx, [ebx + ecx + 1]
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
je 0x1001a293
mov edx, dword [esp + 0x18]
mov byte [eax], 0
mov ecx, dword [ebp + 8]
inc eax
mov edi, esi
mov dword [esp + 0x10], 0
mov dword [edx + ecx], esi
mov ecx, dword [ebp + 8]
mov dword [edx + ecx + 4], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
je 0x1001a278
mov cl, byte [eax + esi]
mov edx, eax
and edx, 3
xor byte [esp + edx + 0x10], cl
lea edx, [esp + edx + 0x10]
inc eax
cmp eax, edi
jb 0x1001a25f
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov dword [edx + eax + 8], ecx
mov ecx, dword [esp + 0x1c]
inc ecx
add edx, 0xc
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
cmp byte [ebx], 0
jne 0x1001a210
mov edx, dword [esp + 0x1c]
pop edi
mov dword [ebp + 0xc], edx
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8