Function at 0x40bd00
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x482f28
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
cmp dword [0x4a9954], 0
je 0x40bf60
call fcn.004440b8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bd4e
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], 0
call fcn.004440b8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40bd80
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x28], 1
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx + 0x16c]
test esi, esi
je 0x40be1a
mov eax, esi
test esi, esi
je 0x40bead
mov ecx, dword [eax + 8]
mov esi, dword [esi]
lea eax, [ecx - 0x10]
lea edi, [ebx - 0x10]
cmp eax, edi
je 0x40be08
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x40bdf6
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40bdf6
push eax
call fcn.00401fe0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x40bded
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x40be04
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401da0
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.0040e2c0
test esi, esi
jne 0x40bda3
mov ecx, dword [esp + 0x30]
cmp dword [ecx + 0x564], 0
je 0x40be37
push 7
push 0x48fa8c
lea ecx, [esp + 0x20]
call fcn.0040e2c0
mov edx, dword [0x4a995c]
push edx
push 0
push str.Count
push str.UpdateConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov esi, 1
cmp edi, esi
jb 0x40be93
mov ebx, dword [esp + 0x18]
add ebx, 0xfffffff0
push ecx
mov dword [esp + 0x20], esp
mov ebp, esp
push ebx
call fcn.00401fe0
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x564]
add esp, 4
push ecx
mov ecx, esi
call fcn.0040bf80
inc esi
cmp esi, edi
jbe 0x40be62
mov ebx, dword [esp + 0x14]
call fcn.004440b8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40beb2
push 0x80004005
call fcn.00401fc0
call fcn.00443ffb
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
push edi
lea ecx, [esp + 0x34]
push 0x48ed98
push ecx
mov byte [esp + 0x34], 2
call fcn.00403800
mov edx, dword [0x4a995c]
mov esi, dword [esp + 0x3c]
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 [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28], 0
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 0x40bf3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bf60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4