Function at 0x40bfa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438af9
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x449af0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x44e610]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x30], ebx
call fcn.00401f40
add eax, 0x10
add esp, 4
mov dword [ebp - 0x3c], eax
push eax
push ebx
push str.Count
push str.FilesCount
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
push ebx
mov esi, eax
mov eax, dword [edi + 0x144]
push 0x402
push eax
mov dword [ebp - 0x4c], esi
call dword [sym.imp.USER32.dll_SendMessageA]
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
cmp ecx, esi
jge 0x40c594
cmp esi, 0x64
jge 0x40c041
mov eax, 0x64
cdq
idiv esi
mov dword [edi + 0x1f4], eax
jmp 0x40c04b
mov dword [edi + 0x1f4], 1
cmp esi, 0x64
jle 0x40c06f
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
lea ebx, [edx + eax + 1]
mov eax, ecx
cdq
idiv ebx
test edx, edx
je 0x40c078
cmp esi, 0x64
jge 0x40c163
mov edi, dword [ebp + 8]
call fcn.0041259b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c092
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
push 0
push 0
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x144]
push 0x408
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
lea edx, [ebp - 0x24]
push 0x440690
push edx
call fcn.00405d50
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov esi, dword [ebx + 0x190]
add ebx, 0x190
lea edi, [eax - 0x10]
sub esi, 0x10
add esp, 0xc
cmp edi, esi
je 0x40c130
cmp dword [esi + 0xc], 0
jl 0x40c124
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x40c124
push edi
call fcn.00401f40
mov dword [ebp - 0x38], eax
add esp, 4
lea eax, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40c11a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x38]
add eax, 0x10
mov dword [ebx], eax
jmp 0x40c130
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, ebx
call fcn.00402080
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
push 0
push 0
push 0xc04
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 1
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c163
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
push 0x43f1c0
lea ecx, [ebp - 0x28]
call fcn.00403ce0
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push str.FileName_d
push edx
mov byte [ebp - 4], 3
call fcn.00405d50
add esp, 0xc
push 0x43f1c0
lea ecx, [ebp - 0x1c]
call fcn.00403ce0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x40c1c1
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.004021f0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
push eax
push 0x104
push edx
push 0x43f1c0
push ecx
push str.FilesName
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40c53c
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x178]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
sub esi, 0x10
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x40c217
cmp eax, dword [esi]
jne 0x40c217
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40c24e
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x40c230
call fcn.00401fb0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00422203
add esp, 0x10
add edi, 0x10
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1c]
push edx
lea edi, [ebp - 0x24]
call fcn.0040ecc0
add esp, 4
push 0x43f1c0
lea ecx, [ebp - 0x18]
call fcn.00403ce0
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x24]
push 0x5c
push esi
call fcn.004235ac
add esp, 8
test eax, eax
jne 0x40c28f
or eax, 0xffffffff
jmp 0x40c291
sub eax, esi
lea ecx, [eax + 1]
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x24]
call fcn.0040e600
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.00402000
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c2d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x440668
lea ecx, [ebp - 0x48]
push 0x44e61c
push ecx
call fcn.004039e0
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 8
call fcn.0040e700
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.00402000
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c331
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c354
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x70]
call fcn.0041d7e2
push 0
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call fcn.0041d86e
test eax, eax
jne 0x40c3aa
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.0041d806
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c39e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
lea eax, [esi - 0x10]
jmp 0x40c523
push 4
call fcn.00412566
add esp, 4
test eax, eax
je 0x40c3ed
push 0x4406b4
lea ecx, [ebp - 0x34]
mov dword [eax], vtable.CFileProc.0
mov dword [ebp - 0x38], eax
call fcn.00403ce0
lea ecx, [ebp - 0x34]
push ecx
mov byte [ebp - 4], 0xb
or dword [ebp - 0x20], 1
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x24]
call fcn.0040f280
test eax, eax
je 0x40c3f4
mov bl, 1
jmp 0x40c3f6
mov dword [ebp - 0x38], 0
xor bl, bl
mov dword [ebp - 4], 0xa
test byte [ebp - 0x20], 1
je 0x40c426
mov eax, dword [ebp - 0x34]
and dword [ebp - 0x20], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c426
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40c436
mov dword [ebp - 0x30], 1
jmp 0x40c4db
call fcn.0041259b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c450
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x30]
push 0x4406c0
push edx
call fcn.00405d50
add esp, 0xc
call fcn.0040f8f0
push ecx
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0x43f1fc
call fcn.00403ce0
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x30]
push ecx
add esi, 0xfffffff0
mov dword [ebp - 0x54], esp
mov edi, esp
push esi
call fcn.00401f40
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 0xc
call fcn.0040fb30
add esp, 8
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 0xa
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c4db
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x40c4ea
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.0041d806
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c519
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c53c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c55f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c582
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [ebp - 0x2c], 1
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp + 8]
jmp 0x40c024
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
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