Function at 0x40df10
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537b38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b8
mov eax, dword [0x5ab980]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x2c4]
push 0x104
push eax
push esi
mov byte [ebp - 4], 4
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x50], ebx
mov dword [ecx + 4], edi
call fcn.00421050
add esp, 0xc
test eax, eax
jl 0x40e84f
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0x2c4]
push ecx
push ebx
push ebx
push 0x20
push ebx
push edx
call dword [sym.imp.ole32.dll_StgOpenStorage]
cmp dword [ebp - 0x44], ebx
je 0x40e84f
cmp eax, ebx
jl 0x40e84f
mov eax, dword [0x5ab980]
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
lea ecx, [ebp + 0xc]
push eax
push ecx
push esi
mov byte [ebp - 4], 6
call fcn.004222e0
add esp, 8
lea edx, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x38], esp
push edx
call fcn.00512659
mov ecx, edi
call fcn.00408560
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.005128e4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 4
call fcn.005128e4
xor eax, eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], eax
push ecx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push ebx
mov byte [ebp - 4], 7
call dword [sym.imp.ole32.dll_CoInitialize]
push 8
mov dword [ebp - 0x5c], eax
call fcn.00516a15
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
cmp esi, ebx
mov byte [ebp - 4], 8
je 0x40e05e
mov ecx, esi
call fcn.005351b2
mov dword [ebp - 0x3c], esi
jmp 0x40e063
mov dword [ebp - 0x3c], ebx
mov esi, ebx
cmp esi, ebx
mov byte [ebp - 4], 7
mov dword [ebp - 0x54], esi
jne 0x40e083
lea edx, [ebp - 0x78]
push 0x56f900
push edx
mov dword [ebp - 0x78], 0xffffff9b
call fcn.004f9e66
mov ecx, dword [ebp - 0x3c]
push ebx
push str.Setup.LogServices
call fcn.00535270
cmp eax, ebx
jne 0x40e2ad
mov eax, dword [0x5ab980]
mov dword [ebp + 8], eax
mov dword [ebp - 0x48], eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x19c]
mov byte [ebp - 4], 0xc
mov esi, dword [eax]
cmp esi, ebx
je 0x40e0e6
push str.CommonFilesDirEx
lea ecx, [ebp - 0x18]
call fcn.00512952
lea ecx, [ebp + 8]
lea edx, [ebp - 0x18]
push ecx
push edx
mov ecx, esi
mov byte [ebp - 4], 0xd
call fcn.00495ca0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.005128e4
mov eax, dword [ebp + 8]
cmp dword [eax - 8], ebx
jne 0x40e0fb
push str.C:Program_FilesCommon_Files_
lea ecx, [ebp + 8]
call fcn.00512a6d
lea ecx, [ebp + 8]
push str.InstallShieldEngine6Intel_32_
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.00512b79
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call fcn.00512a1d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.005128e4
lea eax, [ebp - 0x48]
push str.IKernel.exe
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.00512b79
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xf
call fcn.00512a1d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.005128e4
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e1fc
mov eax, dword [0x5ab980]
mov dword [ebp - 0x18], eax
push 0xa
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x10
call fcn.00510deb
lea ecx, [ebp - 0xb8]
lea edx, [ebp - 0x9c]
push ecx
push edx
push ecx
lea eax, [ebp - 0x48]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
mov byte [ebp - 4], 0x11
call fcn.00512659
call fcn.004201f0
add esp, 0xc
lea ecx, [ebp - 0x38]
push str.IKernel.exe
push 0x5b89d8
push ecx
call fcn.00512b79
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x12
call fcn.00512a1d
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x11
call fcn.005128e4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x10
call fcn.00510e5f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.005128e4
lea ecx, [ebp + 0xc]
push str.__REGSERVER
lea edx, [ebp - 0x38]
push ecx
push edx
call fcn.00512b79
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x13
call fcn.00512a1d
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xc
call fcn.005128e4
push 1
lea eax, [ebp - 0x6c]
push 1
lea ecx, [ebp - 0x34]
push eax
push ecx
call fcn.00424500
add esp, 0x10
cmp eax, ebx
jge 0x40e254
lea edx, [ebp - 0x80]
push 0x56f900
push edx
mov dword [ebp - 0x80], 0xffffff9a
call fcn.004f9e66
mov ecx, dword [ebp - 0x3c]
push ebx
push str.Setup.LogServices
call fcn.00535270
lea ecx, [ebp - 0x34]
mov esi, eax
mov byte [ebp - 4], 0xb
call fcn.005128e4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0xa
call fcn.005128e4
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.005128e4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.005128e4
cmp esi, ebx
jne 0x40e2ad
lea eax, [ebp - 0x7c]
push 0x56f900
push eax
mov dword [ebp - 0x7c], 0xffffff99
call fcn.004f9e66
push 8
call fcn.00516a15
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
cmp esi, ebx
mov byte [ebp - 4], 0x14
je 0x40e2dc
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.00458a20
push 1
push eax
mov ecx, esi
call fcn.005351bf
jmp 0x40e2de
xor esi, esi
mov byte [ebp - 4], 7
mov dword [ebp - 0x58], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, ebx
mov dword [ebp - 0x6c], eax
jne 0x40e307
lea edx, [ebp - 0x70]
push 0x56f900
push edx
mov dword [ebp - 0x70], 0xffffff97
call fcn.004f9e66
mov ecx, esi
call fcn.004589f0
mov ebx, eax
test ebx, ebx
jne 0x40e329
lea eax, [ebp - 0x74]
push 0x56f900
push eax
mov dword [ebp - 0x74], 0xffffff97
call fcn.004f9e66
push 8
call fcn.00516a15
mov edi, eax
add esp, 4
mov dword [ebp + 0xc], edi
test edi, edi
mov byte [ebp - 4], 0x15
je 0x40e34c
push 1
push ebx
mov ecx, edi
call fcn.005351bf
jmp 0x40e34e
xor edi, edi
mov ecx, esi
mov byte [ebp - 4], 7
mov dword [ebp - 0x4c], edi
call fcn.004589c0
push 1
push eax
lea ecx, [ebp - 0x64]
call fcn.005351bf
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x40e6ce
cmp eax, 5
mov byte [ebp - 4], 0x17
ja case.default.0x40e387
jmp dword [eax*4 + 0x40e8a8]
push 8
call fcn.00516a15
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
mov byte [ebp - 4], 0x18
je 0x40e3af
push str.OPTYPE_FILE
jmp 0x40e505
xor esi, esi
mov dword [ebp - 0x20], esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0x16
call fcn.0051286f
lea ecx, [ebp - 0x28]
call fcn.0051286f
lea ecx, [ebp - 0x1c]
call fcn.0051286f
lea ecx, [ebp - 0x2c]
call fcn.0051286f
lea ecx, [ebp - 0x30]
call fcn.0051286f
mov eax, dword [ebp - 0x20]
xor esi, esi
xor ebx, ebx
xor edi, edi
cmp eax, esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], esi
je case.0x40e387.2
push 1
mov ecx, eax
call fcn.00458930
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffffff
jle 0x40e6a2
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.00458960
cmp word [eax], 0
je 0x40e436
mov eax, dword [eax + 8]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
test eax, eax
jl case.0x40e445.2
mov eax, dword [ebp + 0xc]
cmp eax, 5
ja case.0x40e445.2
jmp dword [eax*4 + 0x40e8c0]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40e462
mov ecx, dword [eax + 8]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00512a94
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x10]
test edx, edx
je 0x40e478
mov eax, dword [eax + 0x18]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00512a94
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x20]
test ecx, ecx
je 0x40e483
movsx esi, word [eax + 0x28]
lea edx, [eax + 0x30]
test edx, edx
je 0x40e48e
movsx ebx, word [eax + 0x38]
lea ecx, [eax + 0x40]
test ecx, ecx
je 0x40e49c
movsx edx, word [eax + 0x48]
mov dword [ebp + 8], edx
lea ecx, [eax + 0x50]
test ecx, ecx
je 0x40e4a7
movsx edi, word [eax + 0x58]
mov edx, dword [ebp + 8]
push edi
push edx
push ebx
lea eax, [ebp - 0x1c]
push esi
lea ecx, [ebp - 0x24]
push eax
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.0040dd30
jmp case.0x40e445.2
push 8
call fcn.00516a15
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
mov byte [ebp - 4], 0x19
je 0x40e3af
push str.OPTYPE_SHELL
jmp 0x40e505
push 8
call fcn.00516a15
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
mov byte [ebp - 4], 0x1a
je 0x40e3af
push str.OPTYPE_FILEREG
lea ecx, [ebp - 0x64]
call fcn.00458900
push 1
push eax
mov ecx, esi
call fcn.005351bf
jmp 0x40e3b1
push 8
call fcn.00516a15
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
test esi, esi
mov byte [ebp - 4], 0x1b
je 0x40e54c
push str.OPTYPE_REGISTRY
lea ecx, [ebp - 0x64]
call fcn.00458900
push 1
push eax
mov ecx, esi
call fcn.005351bf
jmp 0x40e54e
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
jmp 0x40e36f
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40e580
mov edx, dword [eax + 8]
lea ecx, [ebp - 0x24]
push edx
call fcn.00512a94
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x10]
test ecx, ecx
je 0x40e596
mov edx, dword [eax + 0x18]
lea ecx, [ebp - 0x1c]
push edx
call fcn.00512a94
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x20]
test ecx, ecx
je 0x40e5a1
movsx edi, word [eax + 0x28]
mov ecx, dword [ebp - 0x40]
push edi
push 0
push 0
lea edx, [ebp - 0x1c]
push 0
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.0040dd30
jmp case.0x40e445.2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40e5d3
mov ecx, dword [eax + 8]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00512a94
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x10]
test edx, edx
je 0x40e5e9
mov eax, dword [eax + 0x18]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00512a94
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x20]
test ecx, ecx
je 0x40e5f4
movsx esi, word [eax + 0x28]
mov edx, dword [ebp - 0x1c]
xor ebx, ebx
push 0
push 0
mov eax, dword [edx - 8]
test eax, eax
sete bl
jmp 0x40e4ac
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40e620
mov edx, dword [eax + 8]
lea ecx, [ebp - 0x2c]
push edx
call fcn.00512a94
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x10]
test ecx, ecx
je 0x40e636
mov edx, dword [eax + 0x18]
lea ecx, [ebp - 0x30]
push edx
call fcn.00512a94
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x20]
test ecx, ecx
je 0x40e64c
mov edx, dword [eax + 0x28]
lea ecx, [ebp - 0x28]
push edx
call fcn.00512a94
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x30]
test ecx, ecx
je 0x40e65b
xor edx, edx
mov dl, byte [eax + 0x38]
mov dword [ebp - 0x68], edx
lea ecx, [eax + 0x40]
test ecx, ecx
je 0x40e666
movsx edi, word [eax + 0x48]
lea edx, [eax + 0x50]
test edx, edx
je 0x40e674
movsx ecx, word [eax + 0x58]
mov dword [ebp - 0x34], ecx
lea edx, [eax + 0x60]
test edx, edx
je 0x40e67f
movsx esi, word [eax + 0x68]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x68]
push esi
push eax
push edi
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ebp - 0x40]
call fcn.0040dd70
jmp case.0x40e445.2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40e6bb
mov esi, eax
mov ecx, esi
call fcn.005352c3
push esi
call fcn.00516a3e
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
inc eax
mov dword [ebp + 0xc], eax
jmp 0x40e36f
lea ecx, [ebp - 0x64]
mov dword [ebp + 0xc], 1
mov byte [ebp - 4], 7
call fcn.005352c3
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x58]
jmp 0x40e781
mov edi, dword [ebp - 0x20]
mov dword [ebp - 4], 4
test edi, edi
je 0x40e79f
mov ecx, edi
call fcn.005352c3
push edi
call fcn.00516a3e
add esp, 4
test ebx, ebx
je 0x40e7b3
mov ecx, ebx
call fcn.005352c3
push ebx
call fcn.00516a3e
add esp, 4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x40e7cc
mov edi, eax
mov ecx, edi
call fcn.005352c3
push edi
call fcn.00516a3e
add esp, 4
test esi, esi
je 0x40e7ed
mov ecx, esi
call fcn.005352c3
mov ecx, esi
mov dword [esi], 0
call fcn.005352c3
push esi
call fcn.00516a3e
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x40e7fa
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.005128e4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.005128e4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.005128e4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.005128e4
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.005128e4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.005128e4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.005128e4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.005128e4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.005128e4
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.005128e4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 0xffffffc9
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8