Function at 0x4064f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 8], ebx
call fcn.00405d20
test eax, eax
je 0x40681b
mov edx, dword [eax]
mov ecx, eax
push edi
call dword [edx + 0xc]
mov edi, dword [ebx]
mov ebx, 1
mov ecx, ebx
sub ecx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [esi - 8]
add eax, 0xffffff80
mov dword [ebp - 4], esi
or ecx, eax
jge 0x40653e
push 0x80
lea ecx, [ebp - 4]
call fcn.00406440
mov esi, dword [ebp - 4]
cmp dword [esi - 8], 0x80
jl 0x40682a
push edi
push 0x80
push esi
xor eax, eax
mov dword [esi - 0xc], 0x80
push eax
push dword [ebp + 0xc]
mov word [esi + 0x100], ax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
js 0x40682a
mov ecx, dword [esi - 8]
sub ebx, dword [esi - 4]
sub ecx, edi
or ebx, ecx
jge 0x406591
push edi
lea ecx, [ebp - 4]
call fcn.00406440
mov esi, dword [ebp - 4]
cmp edi, dword [esi - 8]
jg 0x40682a
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
or edi, 0xffffffff
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x4065b5
mov ebx, dword [ebp + 0x10]
jmp 0x4067fb
cmp eax, 2
jg 0x4065cb
lea eax, [esi - 0x10]
push eax
call fcn.00405a20
add esp, 4
lea edi, [eax + 0x10]
jmp 0x406637
mov ecx, dword [esi - 0x10]
test ecx, ecx
je 0x4065dd
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4065f3
call fcn.00405d20
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x40681b
mov eax, dword [ecx]
push 2
push 2
call dword [eax]
test eax, eax
je 0x406825
cmp dword [eax + 8], 2
lea edi, [eax + 0x10]
jl 0x40682a
xor eax, eax
mov dword [edi - 0xc], 2
mov word [edi + 4], ax
test edi, edi
jne 0x406633
call fcn.00483801
mov dword [eax], 0x16
call fcn.004836da
jmp 0x406637
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, 0x4bbe60
mov eax, edi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406666
test dx, dx
je 0x406662
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406666
add eax, 4
add ecx, 4
test dx, dx
jne 0x406640
xor ebx, ebx
jmp 0x40666b
sbb ebx, ebx
or ebx, 1
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406685
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi - 0xc]
test ebx, ebx
jne 0x4066b7
add eax, 0xfffffffe
lea ecx, [ebp - 4]
push eax
push 2
lea eax, [ebp + 0xc]
push eax
call fcn.00406000
mov ecx, dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
call fcn.00406260
mov edx, dword [ebp + 0xc]
mov ebx, eax
add edx, 0xfffffff0
jmp 0x4067e7
test eax, eax
jle 0x4066e3
push 0x2c
push esi
call fcn.004651f6
add esp, 8
test eax, eax
je 0x4066e3
sub eax, esi
sar eax, 1
jne 0x4066e3
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.00406260
mov ebx, eax
jmp 0x4067fb
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x4bbed8
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
call fcn.004070d0
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x406727
lea edx, [eax - 0x10]
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40671f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ebx, 0xffffffff
jmp 0x4067fb
push eax
call fcn.00485250
add esp, 4
lea ecx, [ebp - 4]
mov ebx, eax
lea eax, [ebp + 8]
push eax
push 0x4bbed8
lea eax, [ebp + 0x10]
push eax
call fcn.004070d0
push eax
lea ecx, [ebp + 0xc]
call fcn.00404ff0
mov edx, dword [ebp + 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40676a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x406708
push eax
call fcn.00485250
add esp, 4
shl eax, 8
or ebx, eax
lea ecx, [ebp - 4]
lea eax, [ebp + 8]
mov dword [ebp - 8], ebx
push eax
push 0x4bbed8
lea eax, [ebp + 0x10]
push eax
call fcn.004070d0
push eax
lea ecx, [ebp + 0xc]
call fcn.00404ff0
mov edx, dword [ebp + 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4067bc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0xc]
cmp dword [edi - 0xc], 0
jne 0x4067d0
lea edx, [edi - 0x10]
or edi, 0xffffffff
jmp 0x40670b
push edi
call fcn.00485250
mov ebx, eax
lea edx, [edi - 0x10]
shl ebx, 0x10
add esp, 4
or ebx, dword [ebp - 8]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4067fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
pop edi
jg 0x406811
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004059f0
call fcn.004070c0
push 0x80070057
call fcn.004059f0
int3