Function at 0x48eb80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x14
mov eax, dword [0x546560]
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 0x48eba5
cmp dword [eax - 4], ecx
jge 0x48ebec
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x48ebae
mov ecx, ebp
push ecx
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
jne 0x48ebc2
mov dword [esp + 0x1c], eax
jmp 0x48ebf0
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 [0x546560]
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 [0x546560]
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
lea ecx, [ebp + ebp + 4]
jg 0x48ec33
cmp ecx, dword [eax - 4]
jle 0x48ec93
mov esi, dword [eax - 8]
cmp ecx, esi
mov dword [esp + 0x20], esi
jge 0x48ec40
mov ecx, esi
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x48ec93
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 [0x546564]
cmp ebx, eax
je 0x48ec8f
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48ec8f
push ebx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test ebp, ebp
jle 0x48ecf5
mov ebx, dword [esp + 0x1c]
mov cx, word [ebx]
test cx, cx
je 0x48ecb3
mov word [eax], cx
add eax, 2
jmp 0x48ecef
test esi, esi
mov word [eax], 0
jne 0x48ecc0
xor eax, eax
jmp 0x48ecc3
push esi
call edi
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00405a90
mov eax, 0x546cdc
test eax, eax
je 0x48ecde
push 0x546cdc
call edi
push 0x546cdc
push eax
lea ecx, [esp + 0x20]
call fcn.00405a90
mov eax, esi
add ebx, 2
dec ebp
jne 0x48eca3
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x48ed12
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x48ed2c
mov ecx, dword [0x546560]
mov esi, eax
test eax, eax
mov dword [ebx], ecx
je 0x48ed23
push eax
call edi
push esi
push eax
mov ecx, ebx
call fcn.00405870
mov eax, dword [esp + 0x10]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x48ed5f
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x48ed65
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
jmp 0x48ed65
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48ed90
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x48ed90
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48edbb
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x48edbb
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov esi, dword [esp + 0x2c]
mov ecx, dword [0x546564]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x48eddf
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x48eddf
push esi
call fcn.00531732
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