Function at 0x4119c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d7ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x5e0bd0], 0
je 0x411c74
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411a0f
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411a3f
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0x1cc]
test esi, esi
je 0x411ad8
mov eax, esi
test esi, esi
je 0x411b4d
mov ecx, dword [eax + 8]
mov edi, dword [ebp - 0x10]
mov esi, dword [esi]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x411ac4
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x411ab7
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x411ab7
push eax
call fcn.00407af0
mov dword [ebp - 0x18], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x411aac
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
jmp 0x411ac4
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.00407870
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.004138d0
test esi, esi
jne 0x411a5f
mov edx, dword [ebp + 8]
cmp dword [edx + 0x71c], 0
je 0x411af3
push 7
push 0x5ac994
lea ecx, [ebp - 0x14]
call fcn.004138d0
mov eax, dword [0x5e0bd8]
push eax
push 0
push str.Count
push str.UpdateConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ebx, 1
mov dword [ebp - 0x18], esi
cmp esi, ebx
jb 0x411bac
mov edi, dword [ebp - 0x14]
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x1c], esp
call eax
cmp dword [edi - 4], 0
jl 0x411b52
cmp eax, dword [edi - 0x10]
jne 0x411b52
lea esi, [edi - 0x10]
lea eax, [edi - 4]
mov ecx, 1
lock xadd dword [eax], ecx
jmp 0x411b86
call fcn.0044d2d7
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x411bc6
mov eax, dword [edi - 0xc]
mov dword [esi + 4], eax
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
push edi
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.0054de82
add esp, 0x10
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add esi, 0x10
mov dword [edx], esi
mov ecx, dword [eax + 0x71c]
push ecx
mov ecx, ebx
call fcn.00411c90
inc ebx
cmp ebx, dword [ebp - 0x18]
jbe 0x411b20
mov esi, dword [ebp - 0x18]
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411bcb
push 0x80004005
call fcn.00407ad0
call fcn.0043d450
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 8], eax
push esi
lea ecx, [ebp + 8]
push 0x5abc34
push ecx
mov byte [ebp - 4], 2
call fcn.00409220
mov edx, dword [0x5e0bd8]
mov esi, dword [ebp + 8]
add esp, 0xc
push edx
push esi
push str.RstCount
push str.UpdateConfig
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411c2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411c4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411c74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
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 4