Function at 0x480fb0
Capabilities:
Read .ini file

Disassembly:
sub esp, 8
mov eax, dword [0x4d9540]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x481015
mov ecx, ebx
shr ecx, 0x10
jne 0x480fe3
mov edx, ebx
lea ecx, [esp + 0x10]
and edx, 0xffff
push edx
call fcn.0040ff70
jmp 0x481015
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x481015
push esi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x481015
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 [0x4d9540]
test ebx, ebx
mov dword [esp + 0x28], ecx
je 0x48106e
mov edx, ebx
shr edx, 0x10
jne 0x48103c
and ebx, 0xffff
lea ecx, [esp + 0x28]
push ebx
call fcn.0040ff70
jmp 0x48106e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x48106e
push esi
lea ecx, [esp + 0x2c]
call fcn.004012f0
test eax, eax
je 0x48106e
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 0x481087
cmp dword [ecx - 4], eax
jge 0x4810e1
mov ebp, dword [ecx - 8]
cmp ebp, eax
jle 0x481090
mov eax, ebp
push eax
lea ecx, [esp + 0x2c]
call fcn.004012f0
test eax, eax
jne 0x4810a4
mov dword [esp + 0x14], eax
jmp 0x4810e9
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 [0x4d9544]
cmp ebx, eax
je 0x4810e1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4810e1
push ebx
call fcn.004c5432
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 0x481102
cmp dword [ecx - 4], eax
jge 0x48113f
mov ebx, dword [ecx - 8]
cmp ebx, eax
jle 0x48110b
mov eax, ebx
push eax
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x481143
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.00401350
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4ecbe8]
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.00401380
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 0x4811a7
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4811b6
mov eax, dword [0x4d9540]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.004016e0
lea ecx, [esp + 0x28]
call fcn.004014c0
lea ecx, [esp + 0x10]
call fcn.004014c0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret