Function at 0x48fad0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x14
mov eax, dword [0x547570]
push ebx
mov dword [esp + 8], eax
push ebp
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
push esi
cmp edx, 1
push edi
mov ecx, 0x20004
jg 0x48faf5
cmp dword [eax - 4], ecx
jge 0x48fb3c
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x48fafe
mov ecx, ebp
push ecx
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
jne 0x48fb12
mov dword [esp + 0x1c], eax
jmp 0x48fb40
mov edi, dword [esp + 0x14]
lea ecx, [ebp + ebp + 2]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [ecx - 8], ebp
call fcn.00405590
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov edx, dword [0x547570]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x2c]
push eax
push 0x10000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov ebp, eax
mov eax, dword [0x547570]
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
lea ecx, [ebp + ebp + 4]
jg 0x48fb83
cmp ecx, dword [eax - 4]
jle 0x48fbe3
mov esi, dword [eax - 8]
cmp ecx, esi
mov dword [esp + 0x20], esi
jge 0x48fb90
mov ecx, esi
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x48fbe3
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi + 2]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x20]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], edx
mov eax, dword [0x547574]
cmp ebx, eax
je 0x48fbdf
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48fbdf
push ebx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test ebp, ebp
jle 0x48fc45
mov ebx, dword [esp + 0x1c]
mov cx, word [ebx]
test cx, cx
je 0x48fc03
mov word [eax], cx
add eax, 2
jmp 0x48fc3f
test esi, esi
mov word [eax], 0
jne 0x48fc10
xor eax, eax
jmp 0x48fc13
push esi
call edi
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00405a90
mov eax, 0x547cec
test eax, eax
je 0x48fc2e
push 0x547cec
call edi
push 0x547cec
push eax
lea ecx, [esp + 0x20]
call fcn.00405a90
mov eax, esi
add ebx, 2
dec ebp
jne 0x48fbf3
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x48fc62
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x48fc7c
mov ecx, dword [0x547570]
mov esi, eax
test eax, eax
mov dword [ebx], ecx
je 0x48fc73
push eax
call edi
push esi
push eax
mov ecx, ebx
call fcn.00405870
mov eax, dword [esp + 0x10]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x48fcaf
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x48fcb5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
jmp 0x48fcb5
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x18]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48fce0
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x48fce0
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48fd0b
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x48fd0b
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov esi, dword [esp + 0x2c]
mov ecx, dword [0x547574]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x48fd2f
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x48fd2f
push esi
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00405700
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret