Function at 0x40ca80
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x58b814
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.004c3410
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x1020], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x103c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x104c]
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x40cda1
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.TaskInfo
call fcn.00402fe0
mov dword [esp + 0x1044], ebx
lea edx, [esp + 0x18]
push edx
call fcn.004030f0
mov byte [esp + 0x1044], 1
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.0040c720
test eax, eax
je 0x40cbbb
mov eax, dword [esi]
mov edx, dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00403150
push str..dat
lea ecx, [esp + 0x1c]
push ecx
lea edx, [ebx + 4]
call fcn.00403150
push 0xfff
lea edx, [esp + 0x39]
push ebx
push edx
mov byte [esp + 0x40], bl
call fcn.004add60
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call fcn.004030f0
mov byte [esp + 0x1044], 2
lea ecx, [esp + 0x1c]
push ecx
call fcn.004030f0
mov byte [esp + 0x1044], 3
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push edx
push 0x1000
lea eax, [esp + 0x3c]
push eax
push 0x5d2b98
push str.TaskID
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40cbe1
mov byte [esp + 0x1044], 2
lea edx, [esp + 0x1c]
push edx
call fcn.00403090
mov byte [esp + 0x1044], 1
lea eax, [esp + 0x28]
push eax
call fcn.00403090
mov byte [esp + 0x1044], bl
lea ecx, [esp + 0x18]
push ecx
call fcn.00403090
mov dword [esp + 0x1044], 0xffffffff
lea edx, [esp + 0x20]
push edx
jmp 0x40cd9c
mov eax, dword [esi]
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.004a4b4f
add esp, 8
cmp eax, ebx
jne 0x40cb97
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0x58
push 0x5d2ca4
push ecx
call edi
cmp eax, 2
ja 0x40cd57
mov dword [ebp], eax
lea ebx, [ebp + 4]
mov eax, esi
call fcn.00406760
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
push 0
push str.Count
mov edx, 0x3b
push ecx
mov word [esp + 0x34], dx
call edi
mov ebx, eax
xor esi, esi
mov dword [esp + 0x2c], ebx
test ebx, ebx
jle 0x40cd05
push esi
push str.List_d
lea edi, [esp + 0x24]
call fcn.00402e20
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 8
push edx
mov edx, dword [esp + 0x24]
push 0x1000
lea eax, [esp + 0x3c]
push eax
push 0x5d2b98
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x40ccfc
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cc92
sub eax, edx
je 0x40ccfc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.004a4487
add esp, 8
test eax, eax
je 0x40ccfc
mov edx, eax
lea ebx, [esp + 0x1c]
call fcn.00403440
call fcn.00406560
mov edi, eax
call fcn.00406480
mov edx, dword [esp + 0x1c]
cmp dword [edx - 0xc], 0
je 0x40cce5
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00405320
mov dword [eax], 1
lea ecx, [esp + 0x24]
push ecx
push 0
call fcn.004a4487
add esp, 8
test eax, eax
jne 0x40ccb3
mov ebx, dword [esp + 0x2c]
inc esi
cmp esi, ebx
jl 0x40cc51
mov byte [esp + 0x1044], 2
lea edx, [esp + 0x1c]
push edx
call fcn.00403090
mov byte [esp + 0x1044], 1
lea eax, [esp + 0x28]
push eax
call fcn.00403090
mov byte [esp + 0x1044], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.00403090
mov dword [esp + 0x1044], 0xffffffff
lea edx, [esp + 0x20]
push edx
call fcn.00403090
mov eax, 1
jmp 0x40cda3
mov byte [esp + 0x1044], 2
lea eax, [esp + 0x1c]
push eax
call fcn.00403090
mov byte [esp + 0x1044], 1
lea ecx, [esp + 0x28]
push ecx
call fcn.00403090
mov byte [esp + 0x1044], bl
lea edx, [esp + 0x18]
push edx
call fcn.00403090
mov dword [esp + 0x1044], 0xffffffff
lea eax, [esp + 0x20]
push eax
call fcn.00403090
xor eax, eax
mov ecx, dword [esp + 0x103c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1020]
xor ecx, esp
call fcn.004a314d
add esp, 0x1034
ret 4