Function at 0x48def0
Capabilities:
Read .ini file

Disassembly:
sub esp, 8
mov eax, dword [0x546560]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x48df55
mov ecx, ebx
shr ecx, 0x10
jne 0x48df23
mov edx, ebx
lea ecx, [esp + 0x10]
and edx, 0xffff
push edx
call fcn.00413c90
jmp 0x48df55
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x48df55
push esi
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x48df55
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x546560]
test ebx, ebx
mov dword [esp + 0x28], ecx
je 0x48dfae
mov edx, ebx
shr edx, 0x10
jne 0x48df7c
and ebx, 0xffff
lea ecx, [esp + 0x28]
push ebx
call fcn.00413c90
jmp 0x48dfae
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x48dfae
push esi
lea ecx, [esp + 0x2c]
call fcn.00405530
test eax, eax
je 0x48dfae
mov edi, dword [esp + 0x28]
lea ecx, [esi + esi]
mov eax, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov eax, 0x1000
mov edx, dword [ecx - 0xc]
lea ebx, [ecx - 0xc]
cmp edx, 1
jg 0x48dfc7
cmp dword [ecx - 4], eax
jge 0x48e021
mov ebp, dword [ecx - 8]
cmp ebp, eax
jle 0x48dfd0
mov eax, ebp
push eax
lea ecx, [esp + 0x2c]
call fcn.00405530
test eax, eax
jne 0x48dfe4
mov dword [esp + 0x14], eax
jmp 0x48e029
mov edi, dword [esp + 0x28]
lea ecx, [ebp + ebp + 2]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov dword [eax - 8], ebp
mov eax, dword [0x546564]
cmp ebx, eax
je 0x48e021
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48e021
push ebx
call fcn.00531732
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
mov eax, 0x1000
mov edx, dword [ecx - 0xc]
lea ebp, [ecx - 0xc]
cmp edx, 1
jg 0x48e042
cmp dword [ecx - 4], eax
jge 0x48e07f
mov ebx, dword [ecx - 8]
cmp ebx, eax
jle 0x48e04b
mov eax, ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x48e083
mov edi, dword [esp + 0x10]
lea ecx, [ebx + ebx + 2]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [eax - 8], ebx
call fcn.00405590
mov eax, dword [esp + 0x10]
mov ecx, dword [0x55ced8]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
push 0x1000
push edx
push eax
mov eax, dword [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [esp + 0x28]
call fcn.004055c0
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x28]
mov word [edx + eax*2], 0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
test edx, edx
jl 0x48e0e7
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x48e0f6
mov eax, dword [0x546560]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.00405920
lea ecx, [esp + 0x28]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret