Function at 0x40cf32e1
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push 0x41c
push 0x40
call ebx
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x40cf3696
push 3
pop edx
lea ecx, [esi + 0xd0]
dec edx
sub ecx, 4
mov dword [ecx], eax
cmp dx, ax
jne 0x40cf330c
mov ecx, dword [ebp + 8]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0xc]
movzx edx, ax
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x48], edx
push edi
movsx edi, ax
movsx edx, cx
imul edx, edi
mov word [esi + 0x46], ax
add eax, 3
and eax, 0xfffffffc
movzx eax, ax
mov dword [esi + 0x54], edx
lea edx, [ecx + 3]
and edx, 0xfffffffc
mov dword [ebp + 8], eax
mov word [esi + 0x50], ax
mov word [esi + 0x44], cx
movsx ecx, ax
movsx eax, dx
imul eax, ecx
sar eax, 4
add eax, 0x4b0
mov word [esi + 0x4e], dx
mov dword [ebp + 0x10], ecx
cdq
mov ecx, 0x960
idiv ecx
lea edi, [esi + 0xd0]
cmp ax, 1
mov word [edi], ax
jge 0x40cf33a9
xor eax, eax
inc eax
jmp 0x40cf33b2
cmp ax, 3
jle 0x40cf33b5
push 3
pop eax
mov word [edi], ax
movsx ecx, word [edi]
mov eax, dword [ebp + 0x10]
lea eax, [ecx + eax - 1]
cdq
idiv ecx
push dword [ebp + 0x20]
push esi
add eax, 3
and eax, 0xfffffffc
movzx eax, ax
movsx ecx, ax
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
lea eax, [ecx + eax - 1]
cdq
idiv ecx
mov word [edi], ax
call fcn.40cf3104
mov ax, word [edi]
push dword [ebp + 0x1c]
shl ax, 4
push esi
mov word [esi + 0x41a], ax
call fcn.40cf3143
and dword [ebp + 0x10], 0
xor eax, eax
cmp ax, word [edi]
jge 0x40cf34fa
push 0x24
push 0x40
call ebx
mov ecx, dword [ebp + 0x10]
mov edi, eax
movsx eax, cx
xor edx, edx
mov dword [esi + eax*4 + 0xc4], edi
cmp edi, edx
je 0x40cf368f
cmp cx, dx
je 0x40cf343a
mov eax, dword [esi + eax*4 + 0xc0]
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
cmp ax, word [ebp + 8]
mov word [edi + 4], cx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], edx
mov dword [edi + 0x1c], edx
movsx ecx, ax
jl 0x40cf3457
movsx ecx, word [ebp + 8]
sub dword [ebp + 8], ecx
cmp ax, word [ebp + 0xc]
mov word [edi + 6], cx
cwde
jl 0x40cf3469
movsx eax, word [ebp + 0xc]
sub dword [ebp + 0xc], eax
mov word [edi + 8], ax
movsx eax, cx
movsx ecx, word [esi + 0x4e]
imul eax, ecx
sar eax, 4
cmp word [ebp + 0x10], 0
mov dword [edi + 0xc], eax
je 0x40cf348b
mov byte [edi + 0xa], 0x11
lea eax, [ebp + 0x20]
push eax
mov eax, dword [esi + 0xc4]
mov eax, dword [eax + 0xc]
push 0x20
pop ecx
mul ecx
push edx
push eax
call fcn.40cf2be9
test eax, eax
jl 0x40cf368f
push dword [ebp + 0x20]
push 0x40
call ebx
mov dword [edi + 0x10], eax
test eax, eax
je 0x40cf368f
push 0x800
push 0x40
call ebx
mov dword [edi + 0x14], eax
test eax, eax
je 0x40cf368f
push 0x800
push 0x40
call ebx
mov dword [edi + 0x1c], eax
test eax, eax
je 0x40cf368f
inc dword [ebp + 0x10]
mov ax, word [ebp + 0x10]
cmp ax, word [esi + 0xd0]
jl 0x40cf340d
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x40cf368f
mov edi, dword [eax + 0xc]
lea ecx, [ebp + 8]
push ecx
xor eax, eax
push eax
push 0x20
push eax
push edi
call fcn.40d011a0
push edx
push eax
call fcn.40cf2be9
test eax, eax
jl 0x40cf368f
lea eax, [ebp + 0x10]
push eax
push 0
push 2
xor eax, eax
push eax
push edi
call fcn.40d011a0
push edx
push eax
call fcn.40cf2be9
test eax, eax
jl 0x40cf368f
lea eax, [ebp + 0xc]
push eax
push 0
push 8
xor eax, eax
push eax
push edi
call fcn.40d011a0
push edx
push eax
call fcn.40cf2be9
test eax, eax
jl 0x40cf368f
push dword [ebp + 0x10]
push 0x40
call ebx
mov dword [esi + 0x6c], eax
test eax, eax
je 0x40cf368f
push dword [ebp + 0x10]
push 0x40
call ebx
mov dword [esi + 0x70], eax
test eax, eax
je 0x40cf368f
mov edi, 0x1cc00
push edi
push 0x40
call ebx
mov dword [esi + 0x7c], eax
test eax, eax
je 0x40cf368f
push dword [ebp + 8]
push 0x40
call ebx
mov dword [esi + 0x80], eax
test eax, eax
je 0x40cf368f
push edi
push 0x40
call ebx
mov dword [esi + 0x94], eax
test eax, eax
je 0x40cf368f
push dword [ebp + 0xc]
push 0x40
call ebx
mov dword [esi + 0x98], eax
test eax, eax
je 0x40cf368f
push dword [ebp + 0x18]
push esi
call fcn.40cf5595
test eax, eax
je 0x40cf368f
or dword [esi + 0x5c], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x8c], 0xc8
mov dword [esi + 0xa4], 0x7d0
mov ax, word [ebp + 0x24]
lea ecx, [esi + 0xbc]
mov word [esi + 0x6a], ax
mov dword [ebp + 0x10], 8
mov eax, 0x40d0208c
mov dword [ebp + 8], ecx
mov ebx, str.ICCVID.drv
jmp 0x40cf3636
mov eax, dword [ebp + 0xc]
dec dword [ebp + 0x10]
sub dword [ebp + 8], 2
sub eax, 0x10
push str.system.ini
push dword [eax - 4]
mov dword [ebp + 0xc], eax
push dword [eax]
push ebx
call edi
cmp word [ebp + 0x10], 0
mov ecx, dword [ebp + 8]
mov word [ecx], ax
jne 0x40cf3633
push str.system.ini
push 1
push dword [0x40d02080]
push ebx
call edi
push str.system.ini
push 0xe
mov word [esi + 0xbc], ax
push dword [0x40d02084]
push ebx
call edi
mov word [esi + 0xbe], ax
mov eax, esi
jmp 0x40cf3695
push esi
call fcn.40cf2c1b
pop edi
pop esi
pop ebx
pop ebp
ret 0x20