Function at 0x481c40
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x14
mov eax, dword [0x4d9540]
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 0x481c65
cmp dword [eax - 4], ecx
jge 0x481cac
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x481c6e
mov ecx, ebp
push ecx
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
jne 0x481c82
mov dword [esp + 0x1c], eax
jmp 0x481cb0
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.00401350
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov edx, dword [0x4d9540]
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 [0x4d9540]
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
lea ecx, [ebp + ebp + 4]
jg 0x481cf3
cmp ecx, dword [eax - 4]
jle 0x481d53
mov esi, dword [eax - 8]
cmp ecx, esi
mov dword [esp + 0x20], esi
jge 0x481d00
mov ecx, esi
push ecx
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x481d53
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 [0x4d9544]
cmp ebx, eax
je 0x481d4f
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x481d4f
push ebx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test ebp, ebp
jle 0x481db5
mov ebx, dword [esp + 0x1c]
mov cx, word [ebx]
test cx, cx
je 0x481d73
mov word [eax], cx
add eax, 2
jmp 0x481daf
test esi, esi
mov word [eax], 0
jne 0x481d80
xor eax, eax
jmp 0x481d83
push esi
call edi
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00401850
mov eax, 0x4d9a34
test eax, eax
je 0x481d9e
push 0x4d9a34
call edi
push 0x4d9a34
push eax
lea ecx, [esp + 0x20]
call fcn.00401850
mov eax, esi
add ebx, 2
dec ebp
jne 0x481d63
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
test edx, edx
jl 0x481dd2
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x481dec
mov ecx, dword [0x4d9540]
mov esi, eax
test eax, eax
mov dword [ebx], ecx
je 0x481de3
push eax
call edi
push esi
push eax
mov ecx, ebx
call fcn.00401630
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x481e1f
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x481e25
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
jmp 0x481e25
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x18]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x481e50
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x481e50
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x481e7b
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x481e7b
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov esi, dword [esp + 0x2c]
mov ecx, dword [0x4d9544]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x481e9f
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x481e9f
push esi
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x30]
call fcn.004014c0
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x14
ret