Function at 0x41caa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
lea ecx, [ebx + 0x18]
call fcn.0041b0a0
mov eax, dword [esi - 8]
mov edi, dword [ebx + 0x34]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x7d0
or eax, ecx
jge 0x41cb18
push 0x7d0
lea ecx, [ebp - 0x18]
call fcn.00406d20
mov esi, dword [ebp - 0x18]
mov eax, 0x7d0
cmp dword [esi - 8], eax
jge 0x41cb2c
push 0x80070057
call fcn.00406170
push edi
push eax
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + 0xfa0], cx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov dword [ebx + 0x30], eax
test eax, eax
js 0x41cb22
cmp eax, dword [esi - 8]
jg 0x41cb22
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
mov eax, dword [0x587944]
mov edx, dword [eax + 0xc]
mov ecx, 0x587944
call edx
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 3
xor edx, edx
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0x30], edx
jle 0x41cc3f
test edx, edx
js 0x41cb22
cmp edx, dword [esi - 0xc]
jg 0x41cb22
movzx eax, word [esi + edx*2]
test ax, ax
je 0x41cc94
cmp edx, dword [esi - 0xc]
jg 0x41cb22
movzx eax, word [esi + edx*2]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0041b3e0
add esp, 0xc
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [edi - 0x10]
cmp eax, ebx
je 0x41cc09
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x41cbf9
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x41cbf9
push eax
call fcn.00406d80
mov dword [ebp - 0x20], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41cbee
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov edi, dword [ebp - 0x20]
add edi, 0x10
mov dword [ebp - 0x10], edi
jmp 0x41cc09
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00407100
mov edi, dword [ebp - 0x10]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cc2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
inc edx
mov dword [ebp - 0x14], edx
cmp edx, dword [ebx + 0x30]
jl 0x41cb7d
mov byte [ebp - 4], 1
add edi, 0xfffffff0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cc5f
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41cc82
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi - 0xc], 0
je 0x41ccaa
mov eax, dword [ebx + 0x1c]
push edi
push eax
lea ecx, [ebx + 0x18]
call fcn.0041c9d0
mov edx, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
mov ecx, dword [edi - 0x10]
lea eax, [edi - 0x10]
mov dword [ebp - 0x20], ecx
je 0x41cc32
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x41cce1
cmp dword [edi - 8], 0
jl 0x41cb22
xor eax, eax
mov dword [edi - 0xc], 0
mov word [edi], ax
jmp 0x41cc32
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ccf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
jmp 0x41cc2f