Function at 0x42d520
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x51e800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push edi
call fcn.00410e90
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
xor edi, edi
push edi
push str.Count
push str.AreaName
call ebx
mov ebp, eax
cmp ebp, edi
mov dword [esp + 0x18], ebp
jle 0x42d76e
lea eax, [ebp*8 + 4]
push esi
push eax
call fcn.004fa771
add esp, 4
cmp eax, edi
je 0x42d599
push fcn.004142f0
push 0x42d790
push ebp
lea esi, [eax + 4]
push 8
push esi
mov dword [eax], ebp
call fcn.004b3970
mov dword [esp + 0x10], esi
jmp 0x42d59f
mov dword [esp + 0x10], edi
mov esi, edi
call fcn.004fa853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edi
call fcn.004fa853
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
test ebp, ebp
mov byte [esp + 0x28], 1
jle 0x42d6bf
add esi, 4
lea esp, [esp]
push edi
lea eax, [esp + 0x1c]
push str.ID_d
push eax
call fcn.00405820
push edi
lea ecx, [esp + 0x24]
push str.Name_d
push ecx
call fcn.00405820
add esp, 0x18
call fcn.00410e90
mov eax, dword [eax]
mov edx, dword [esp + 0x18]
push eax
push 0
push edx
push str.AreaName
call ebx
mov dword [esi - 4], eax
call fcn.00410e90
mov ebp, dword [eax]
mov eax, dword [esi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov eax, dword [eax + 8]
mov ecx, 1
sub ecx, edx
sub eax, 0x104
or eax, ecx
jge 0x42d64a
push 0x104
mov ecx, esi
call fcn.00401d10
mov eax, dword [esi]
mov edx, dword [eax - 8]
mov ecx, 0x104
cmp edx, ecx
jl 0x42d6ec
push ebp
push ecx
push eax
mov dword [eax - 0xc], ecx
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
push 0x53a3bc
push eax
push str.AreaName
mov byte [edx + 0x104], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esi]
test ecx, ecx
jne 0x42d68a
xor eax, eax
jmp 0x42d69b
mov eax, ecx
lea ebp, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42d690
sub eax, ebp
js 0x42d6ec
cmp eax, dword [ecx - 8]
jg 0x42d6ec
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x1c]
inc edi
add esi, 8
cmp edi, eax
jl 0x42d5e0
mov esi, dword [esp + 0x10]
mov ebp, eax
mov ebx, dword [esp + 0x30]
mov edi, dword [ebx + 0x23c]
cmp edi, dword [ebx + 0x240]
je 0x42d724
xor eax, eax
test ebp, ebp
jle 0x42d717
mov ecx, dword [edi]
lea esp, [esp]
cmp ecx, dword [esi + eax*8]
je 0x42d6f6
inc eax
cmp eax, ebp
jl 0x42d6e0
jmp 0x42d717
push 0x80070057
call fcn.00401c90
mov edx, dword [esi + eax*8 + 4]
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d700
sub eax, esi
push eax
push edx
lea ecx, [edi + 4]
call fcn.00401b10
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x240]
add edi, 0x44
cmp edi, eax
jne 0x42d6d1
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42d747
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42d76d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 0x1c]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4