Function at 0x1066702
Capabilities:
Copy file
Delete file

Disassembly:
push 0x4c
mov eax, 0x1106885
call fcn.0106f85e
mov ebx, ecx
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x106673a
test byte [eax + 0x1c], 1
je 0x106673a
cmp byte [eax + 0x19], 4
jb 0x106673a
push 0x1006370
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
xor eax, eax
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10027a8
lea ecx, [ebp - 0x24]
stosd dword es:[edi], eax
call fcn.01021a99
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, 0x1007124
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor edi, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
cmp dword [ebx + 0xd0], ecx
jbe 0x10667de
mov dword [ebp - 0x30], ecx
mov esi, dword [ebx + 0x9c]
add esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
call fcn.0107dd0d
test al, al
je 0x10667a7
cmp dword [esi + 0x14], 9
je 0x10667b9
add dword [ebp - 0x30], 0x98
inc edi
cmp edi, dword [ebx + 0xd0]
jb 0x106678c
jmp 0x10667de
cmp dword [esi + 0x68], 0
jne 0x10667d3
push 0x10064d4
push 0x384
push 0x10063ec
call fcn.0107b644
push dword [esi + 0x68]
lea ecx, [ebp - 0x24]
call fcn.01057adf
mov esi, dword [ebp - 0x24]
push 4
push esi
push 0x10064c8
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1066bbb
push 0x3f
pop eax
mov word [esi + 2], ax
cmp edi, dword [ebx + 0xd0]
jne 0x1066851
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1066833
test byte [eax + 0x1c], 1
je 0x1066833
cmp byte [eax + 0x19], 2
jb 0x1066833
push 0x1006370
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push 0x1002394
push 0x399
push 0x10063ec
call fcn.0107b644
mov ebx, 0x8000ffff
jmp 0x1066a30
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.0107d1fe
mov ebx, eax
test ebx, ebx
jl 0x1066a30
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
test eax, eax
ja 0x1066888
push 0x10064bc
push 0x3a5
push 0x10063ec
call fcn.0107b644
jmp 0x10668a6
mov edx, dword [ebp - 0x24]
push 0x5c
pop ecx
cmp word [edx + eax*2 - 2], cx
je 0x10668a6
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.010572eb
push dword [0x1110364]
lea ecx, [ebp - 0x24]
call fcn.01057adf
mov edi, dword [ebp - 0x24]
push edi
lea ecx, [ebp - 0x28]
call fcn.01065d38
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x1066847
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.01057adf
push 1
push dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1066951
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x106690f
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1066a35
test byte [eax + 0x1c], 1
je 0x1066a35
cmp byte [eax + 0x19], 2
jb 0x1066a35
push ebx
push dword [ebp - 0x28]
push edi
push 0x1006370
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010198ad
jmp 0x1066a30
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [ebp - 0x2c], 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.01065d38
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
call fcn.01057adf
mov eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x3c], eax
call esi
push dword [ebp - 0x34]
add eax, eax
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x40]
lea eax, [eax + eax + 2]
mov word [ebp - 0x3e], ax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x48]
push eax
call fcn.01070b9c
test eax, eax
je 0x1066af2
mov ecx, 0x80390003
cmp eax, ecx
jne 0x10669f1
mov eax, dword [0x111024c]
mov esi, 0x111024c
cmp eax, esi
je 0x1066af7
test byte [eax + 0x1c], 1
je 0x1066af7
cmp byte [eax + 0x19], 3
jb 0x1066af7
push ecx
mov edi, 0x1006370
push edi
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
jmp 0x1066afc
push eax
call fcn.010d40c5
mov ebx, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1066a27
test byte [eax + 0x1c], 1
je 0x1066a27
cmp byte [eax + 0x19], 2
jb 0x1066a27
push ebx
push dword [ebp - 0x44]
push 0x1006370
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x111024c]
xor edi, edi
cmp dword [ebp - 0x38], edi
je 0x1066a4b
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov eax, dword [0x111024c]
cmp dword [ebp - 0x34], edi
je 0x1066a61
push dword [ebp - 0x34]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x58], edi
je 0x1066ab0
lea eax, [ebp - 0x58]
push eax
call fcn.01084ee0
mov esi, eax
cmp esi, edi
jge 0x1066aab
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1066aa0
test byte [eax + 0x1c], 1
je 0x1066aa0
cmp byte [eax + 0x19], 2
jb 0x1066aa0
push esi
push 0x1006370
push 0x46
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
push edi
push edi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1066ad5
test byte [eax + 0x1c], 1
je 0x1066ad5
cmp byte [eax + 0x19], 4
jb 0x1066ad5
push 0x1006370
push 0x47
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
mov eax, ebx
call fcn.0106f8f0
ret
mov esi, 0x111024c
mov edi, 0x1006370
lea eax, [ebp - 0x58]
push eax
push 1
push 0x1006480
call fcn.01084e46
mov ebx, eax
test ebx, ebx
jge 0x1066b46
mov eax, dword [0x111024c]
cmp eax, esi
je 0x1066a27
test byte [eax + 0x1c], 1
je 0x1066a27
cmp byte [eax + 0x19], 2
jb 0x1066a27
push edi
push 0x43
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
jmp 0x1066a27
push 1
lea eax, [ebp - 0x40]
push eax
call fcn.010716fc
test eax, eax
je 0x1066a27
cmp eax, 0x80390001
jne 0x1066b86
mov eax, dword [0x111024c]
cmp eax, esi
je 0x1066a27
test byte [eax + 0x1c], 1
je 0x1066a27
cmp byte [eax + 0x19], 3
jb 0x1066a27
push edi
push 0x44
jmp 0x1066b36
push eax
call fcn.010d40c5
mov ebx, eax
mov eax, dword [0x111024c]
cmp eax, esi
je 0x1066a27
test byte [eax + 0x1c], 1
je 0x1066a27
cmp byte [eax + 0x19], 2
jb 0x1066a27
push ebx
push dword [ebp - 0x3c]
push edi
push 0x45
jmp 0x1066a1c
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x1066beb
test byte [eax + 0x1c], 1
je 0x1066beb
cmp byte [eax + 0x19], 2
jb 0x1066beb
push esi
push 0x1006370
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
mov ebx, 0x80070057
jmp 0x1066a35