Function at 0x40c3f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439009
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x44aaf0]
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 [0x44f610]
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 0x40c9e4
cmp esi, 0x64
jge 0x40c491
mov eax, 0x64
cdq
idiv esi
mov dword [edi + 0x1f4], eax
jmp 0x40c49b
mov dword [edi + 0x1f4], 1
cmp esi, 0x64
jle 0x40c4bf
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 0x40c4c8
cmp esi, 0x64
jge 0x40c5b3
mov edi, dword [ebp + 8]
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c4e2
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 0x4420d8
push edx
call fcn.00405da0
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 0x40c580
cmp dword [esi + 0xc], 0
jl 0x40c574
mov ecx, dword [edi]
cmp ecx, dword [esi]
jne 0x40c574
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 0x40c56a
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 0x40c580
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 0x40c5b3
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.00405da0
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 0x40c611
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 0x40c98c
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 0x40c667
cmp eax, dword [esi]
jne 0x40c667
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x40c69e
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 0x40c680
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.004226d8
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.0040f110
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.00423a8c
add esp, 8
test eax, eax
jne 0x40c6df
or eax, 0xffffffff
jmp 0x40c6e1
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.0040ea50
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 0x40c726
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4420b0
lea ecx, [ebp - 0x48]
push 0x44f61c
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.0040eb50
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 0x40c781
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 0x40c7a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x70]
call fcn.0041dcb7
push 0
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
call fcn.0041dd43
test eax, eax
jne 0x40c7fa
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.0041dcdb
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 0x40c7ee
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 0x40c973
push 4
call fcn.004129f6
add esp, 4
test eax, eax
je 0x40c83d
push 0x4420fc
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.0040f6d0
test eax, eax
je 0x40c844
mov bl, 1
jmp 0x40c846
mov dword [ebp - 0x38], 0
xor bl, bl
mov dword [ebp - 4], 0xa
test byte [ebp - 0x20], 1
je 0x40c876
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 0x40c876
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40c886
mov dword [ebp - 0x30], 1
jmp 0x40c92b
call fcn.00412a2b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c8a0
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 0x442108
push edx
call fcn.00405da0
add esp, 0xc
call fcn.0040fd40
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.0040ff80
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 0x40c92b
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 0x40c93a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.0041dcdb
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 0x40c969
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 0x40c98c
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 0x40c9af
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 0x40c9d2
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 0x40c474
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 0x40ca07
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