Function at 0x40da12
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x433fef
call fcn.0042617c
mov eax, 0x6138
call fcn.00426210
push ebx
push esi
push edi
push 1
pop edi
xor ebx, ebx
push 0x4446dc
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], ebx
call fcn.0040315d
mov dword [ebp - 0x74], SysReAllocStringLen
push str.begin
push str.CreateDefaultScheduling
push str.method:__s__action:__s
lea eax, [ebp - 0x90]
push 2
push eax
mov dword [ebp - 4], ebx
call fcn.00404db2
or dword [ebp - 4], 0xffffffff
add esp, 0x14
lea ecx, [ebp - 0x84]
call fcn.004031de
or dword [ebp - 0x24], 0xffffffff
or dword [ebp - 0x5c], 0xffffffff
lea ecx, [ebp - 0x10c]
mov byte [ebp - 0x15], 1
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov dword [ebp - 0x20], 0xa
call fcn.0040e61d
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], edi
call fcn.0040e883
test al, al
je 0x40dad1
lea eax, [ebp - 0xfc]
lea ecx, [ebp - 0x10c]
push eax
call fcn.0040e7d2
mov esi, 0x4447b8
mov ecx, esi
call fcn.00403c8a
push dword [0x4447bc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push 0x4446dc
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x90], ebx
setne byte [ebp - 0xd]
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], ebx
call fcn.0040315d
mov dword [ebp - 0x74], SysReAllocStringLen
xor eax, eax
cmp byte [ebp - 0xd], bl
mov byte [ebp - 4], 2
setne al
push eax
push str.isuspm.ini_exists
push str.CreateDefaultScheduling
push str.method:__s__action:__s__value:__ld
lea eax, [ebp - 0x90]
push 2
push eax
call fcn.00404db2
add esp, 0x18
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.004031de
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], 0x436448
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
mov byte [ebp - 4], 3
call fcn.0040e4d8
cmp word [0x440074], bx
mov ecx, 0x440074
mov eax, ecx
je 0x40db8b
inc eax
inc eax
cmp word [eax], bx
jne 0x40db84
sub eax, ecx
push ebx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.00403d2f
cmp eax, dword [0x43648c]
jne 0x40df00
cmp byte [ebp - 0xd], bl
je 0x40de53
cmp dword [ebp - 0x4c], ebx
je 0x40de53
push dword [ebp - 0x4c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40de53
push 2
lea eax, [ebp - 0x38]
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.00405cb6
push 0x44006c
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004032ba
lea ecx, [ebp - 0x38]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 3
call fcn.004031de
cmp byte [ebp - 0xd], bl
je 0x40dc5c
cmp dword [ebp - 0x4c], ebx
mov byte [ebp - 0x15], 1
je 0x40dc50
push dword [ebp - 0x4c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, 2
jbe 0x40dc50
push 2
lea eax, [ebp - 0x38]
push 2
push eax
lea ecx, [ebp - 0x58]
call fcn.00405cb6
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
call fcn.00403c8a
mov eax, dword [ebp - 0x14]
push 0xa
mov eax, dword [eax + 4]
push eax
call fcn.00403220
pop ecx
mov dword [ebp - 0x20], eax
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
jmp 0x40dd62
mov dword [ebp - 0x20], 0xa
jmp 0x40de53
push 2
lea eax, [ebp - 0x38]
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.00405cb6
push 0x440064
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.004032ba
lea ecx, [ebp - 0x38]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 3
call fcn.004031de
cmp byte [ebp - 0xd], bl
je 0x40dd7e
cmp dword [ebp - 0x4c], ebx
mov byte [ebp - 0x17], 1
je 0x40dd6c
push dword [ebp - 0x4c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, 2
jbe 0x40dd6c
push 2
lea eax, [ebp - 0x38]
push 2
push eax
lea ecx, [ebp - 0x58]
call fcn.00405cb6
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
call fcn.00403c8a
mov eax, dword [ebp - 0x14]
push 0xa
mov eax, dword [eax + 4]
push eax
call fcn.00403220
pop ecx
mov dword [ebp - 0x20], eax
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.004031de
push edi
lea eax, [ebp - 0x38]
push 4
push eax
lea ecx, [ebp - 0x58]
call fcn.00405cb6
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 8
call fcn.00403c8a
mov eax, dword [ebp - 0x14]
push 0xa
mov eax, dword [eax + 4]
push eax
call fcn.00403220
pop ecx
mov dword [ebp - 0x24], eax
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.004031de
push edi
lea eax, [ebp - 0x38]
push 5
push eax
lea ecx, [ebp - 0x58]
call fcn.00405cb6
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 9
call fcn.00403c8a
mov eax, dword [ebp - 0x14]
push 0xa
mov eax, dword [eax + 4]
push eax
call fcn.00403220
pop ecx
mov dword [ebp - 0x5c], eax
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.004031de
jmp 0x40de53
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x5c], ebx
jmp 0x40de53
push 2
lea eax, [ebp - 0x38]
push ebx
push eax
lea ecx, [ebp - 0x58]
call fcn.00405cb6
push 0x44005c
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004032ba
lea ecx, [ebp - 0x38]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 3
call fcn.004031de
cmp byte [ebp - 0xd], bl
je 0x40de53
cmp dword [ebp - 0x4c], ebx
mov byte [ebp - 0x16], 1
je 0x40de49
push dword [ebp - 0x4c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, 2
jbe 0x40de49
push 2
lea eax, [ebp - 0x38]
push 2
push eax
lea ecx, [ebp - 0x58]
call fcn.00405cb6
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xb
call fcn.00403c8a
mov eax, dword [ebp - 0x14]
push 0xa
mov eax, dword [eax + 4]
push eax
call fcn.00403220
pop ecx
mov dword [ebp - 0x20], eax
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.004031de
push edi
lea eax, [ebp - 0x38]
push 4
push eax
lea ecx, [ebp - 0x58]
call fcn.00405cb6
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xc
call fcn.00403c8a
mov eax, dword [ebp - 0x14]
push 0xa
mov eax, dword [eax + 4]
push eax
call fcn.00403220
pop ecx
mov dword [ebp - 0x24], eax
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
jmp 0x40dd62
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x24], ebx
push 0x4446dc
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], ebx
call fcn.0040315d
mov dword [ebp - 0x74], SysReAllocStringLen
push dword [ebp - 0x5c]
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0xd
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push str.frequency
push str.CreateDefaultScheduling
push str.method:__s__action:__s__time:__ld__wkdy:__ld__mtwk:__ld
push 2
push eax
call fcn.00404db2
add esp, 0x20
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.004031de
push 0x440074
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xa0], 0x436448
lea eax, [ebp - 0xa0]
mov ecx, esi
push eax
mov byte [ebp - 4], 0xe
call fcn.0040e4a1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 3
call fcn.004031de
lea ecx, [ebp - 0x6144]
call fcn.0040239a
push 0x1000
lea eax, [ebp - 0x1110]
push ebx
push eax
mov dword [ebp - 0x110], ebx
call fcn.004261a0
push 0x1000
lea eax, [ebp - 0x2114]
push ebx
push eax
mov dword [ebp - 0x1114], ebx
call fcn.004261a0
add esp, 0x18
push str.blank
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x11
call fcn.004030c1
mov dword [ebp - 0x38], 0x436480
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x613c]
push eax
mov byte [ebp - 4], 0x12
call fcn.00403cf7
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x11
call fcn.0040311b
mov eax, dword [0x44473c]
cmp eax, ebx
je 0x40df99
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x40df99
push 0x444730
lea ecx, [ebp - 0x6144]
call fcn.00402e6e
lea eax, [ebp - 0x2114]
lea ecx, [ebp - 0x6144]
push eax
lea eax, [ebp - 0x1110]
push eax
call fcn.004024bc
push 0x4446dc
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], ebx
call fcn.0040315d
mov dword [ebp - 0x74], SysReAllocStringLen
push dword [ebp - 0x14]
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x13
push str.Agent::GetProducts
push str.method:__s__action:__ld
push 2
push eax
call fcn.00404db2
add esp, 0x14
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x11
call fcn.004031de
mov eax, dword [ebp - 0x110]
push 0x4446dc
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], ebx
call fcn.0040315d
mov dword [ebp - 0x74], SysReAllocStringLen
push dword [ebp - 0x14]
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x14
push str.products_detected
push str.CreateDefaultScheduling
push str.method:__s__action:__s__product:__ld
push 2
push eax
call fcn.00404db2
add esp, 0x18
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x11
call fcn.004031de
cmp dword [ebp - 0x110], ebx
mov dword [ebp - 0x28], ebx
jle 0x40e371
lea eax, [ebp - 0x1110]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov ecx, dword [eax]
mov eax, 0x436448
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x6c], eax
add ecx, 0x200c
mov byte [ebp - 4], 0x16
push ecx
lea ecx, [ebp - 0x48]
call fcn.00403cf7
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
add eax, 0x201c
push eax
call fcn.00403cf7
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xa0], 0x436448
lea eax, [ebp - 0xa0]
mov ecx, esi
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0x17
call fcn.0040e53d
cmp dword [ebp - 0x94], ebx
je 0x40e126
push dword [ebp - 0x94]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x40e334
lea ecx, [ebp - 0x48]
call fcn.00403c8a
mov eax, dword [ebp - 0x44]
push 0x4446dc
lea ecx, [ebp - 0x84]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x88], ebx
call fcn.0040315d
mov dword [ebp - 0x74], SysReAllocStringLen
push dword [ebp - 0xa8]
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 0x18
push 0x43ffc0
push str.CreateDefaultScheduling
push str.method:__s__action:__s__product:__s
push 2
push eax
call fcn.00404db2
add esp, 0x18
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x17
call fcn.004031de
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0xd]
push eax
mov byte [ebp - 0xd], 1
call fcn.00402249
cmp byte [ebp - 0xd], bl
jne 0x40e1c0
mov ecx, dword [ebp - 0x1c]
push edi
call fcn.00402296
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], bl
jne 0x40e20b
cmp byte [ebp - 0x16], bl
jne 0x40e247
cmp byte [ebp - 0x17], bl
jne 0x40e282
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x6c]
push edi
push eax
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0040715c
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x6c]
push 2
push eax
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0040715c
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
jmp 0x40e2c3
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
imul eax, eax, 0x64
push 0xffffffffffffffff
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x6c]
push edi
push eax
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0040715c
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x1c]
lea eax, [ebp - 0x6c]
mov ecx, esi
push 2
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040715c
push 0xffffffffffffffff
push 0xffffffffffffffff
jmp 0x40e2c0
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
imul eax, eax, 0x64
push 0xffffffffffffffff
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x6c]
push edi
push eax
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0040715c
push 0xffffffffffffffff
lea eax, [ebp - 0x6c]
push dword [ebp - 0x24]
mov ecx, esi
push dword [ebp - 0x1c]
push 2
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040715c
push 0xffffffffffffffff
jmp 0x40e2bd
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
imul eax, eax, 0x64
push 0xffffffffffffffff
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x6c]
push edi
push eax
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.0040715c
push dword [ebp - 0x5c]
lea eax, [ebp - 0x6c]
mov ecx, esi
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push 2
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040715c
push dword [ebp - 0x5c]
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x6c]
push 3
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.0040715c
lea eax, [ebp - 0xa4]
push eax
call fcn.00427a27
push dword [ebp - 0xa4]
lea eax, [ebp - 0x38]
push eax
call fcn.00418e2d
add esp, 0xc
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
lea eax, [ebp - 0x48]
push edi
push eax
mov byte [ebp - 4], 0x19
call fcn.0040e5b1
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
lea eax, [ebp - 0x48]
push 2
push eax
call fcn.0040e5b1
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
lea eax, [ebp - 0x48]
push 3
push eax
call fcn.0040e5b1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x17
call fcn.004031de
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x16
call fcn.004031de
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x15
call fcn.004031de
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x11
call fcn.004031de
inc dword [ebp - 0x28]
add dword [ebp - 0x14], 4
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x110]
jl 0x40e08f
cmp dword [ebp - 0x110], ebx
mov dword [ebp - 0x28], ebx
jle 0x40e3ae
lea eax, [ebp - 0x1110]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
cmp esi, ebx
je 0x40e39c
mov ecx, esi
call fcn.00401f60
push esi
call fcn.004196d9
pop ecx
inc dword [ebp - 0x28]
add dword [ebp - 0x14], 4
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x110]
jl 0x40e385
mov esi, 0x1000
lea eax, [ebp - 0x1110]
push esi
push ebx
push eax
call fcn.004261a0
push esi
lea eax, [ebp - 0x2114]
push ebx
push eax
mov dword [ebp - 0x110], ebx
call fcn.004261a0
add esp, 0x18
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x1114], ebx
mov dword [ebp - 0xcc], ebx
push 0x4446dc
mov dword [ebp - 0xc8], edi
mov dword [ebp - 0xc4], ebx
call fcn.0040315d
mov dword [ebp - 0xb0], SysReAllocStringLen
push 0x43ff98
push str.CreateDefaultScheduling
push str.method:__s__action:__s
lea eax, [ebp - 0xcc]
push 2
push eax
mov byte [ebp - 4], 0x1a
call fcn.00404db2
add esp, 0x14
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0x11
call fcn.004031de
push esi
lea eax, [ebp - 0x2114]
push ebx
push eax
call fcn.004261a0
push esi
lea eax, [ebp - 0x1110]
push ebx
push eax
mov dword [ebp - 0x1114], ebx
call fcn.004261a0
add esp, 0x18
lea ecx, [ebp - 0x6144]
mov dword [ebp - 0x110], ebx
mov byte [ebp - 4], 3
call fcn.0040d153
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.004031de
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10c]
call fcn.0040ecbd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret