Function at 0x1066592
Capabilities:
Copy file
Delete file

Disassembly:
push 0x4c
mov eax, 0x1106b03
call fcn.0106f6be
mov ebx, ecx
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10665ca
test byte [eax + 0x1c], 1
je 0x10665ca
cmp byte [eax + 0x19], 4
jb 0x10665ca
push 0x1006370
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
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.010219c8
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, 0x100cbcc
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 0x106666e
mov dword [ebp - 0x30], ecx
mov esi, dword [ebx + 0x9c]
add esi, dword [ebp - 0x30]
push dword [esi + 0x4c]
call fcn.0107db82
test al, al
je 0x1066637
cmp dword [esi + 0x14], 9
je 0x1066649
add dword [ebp - 0x30], 0x98
inc edi
cmp edi, dword [ebx + 0xd0]
jb 0x106661c
jmp 0x106666e
cmp dword [esi + 0x68], 0
jne 0x1066663
push 0x10064d4
push 0x384
push 0x10063ec
call fcn.0107b4be
push dword [esi + 0x68]
lea ecx, [ebp - 0x24]
call fcn.01057980
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 0x1066a4b
push 0x3f
pop eax
mov word [esi + 2], ax
cmp edi, dword [ebx + 0xd0]
jne 0x10666e1
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10666c3
test byte [eax + 0x1c], 1
je 0x10666c3
cmp byte [eax + 0x19], 2
jb 0x10666c3
push 0x1006370
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
push 0x1002394
push 0x399
push 0x10063ec
call fcn.0107b4be
mov ebx, 0x8000ffff
jmp 0x10668c0
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.0107d073
mov ebx, eax
test ebx, ebx
jl 0x10668c0
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
test eax, eax
ja 0x1066718
push 0x10064bc
push 0x3a5
push 0x10063ec
call fcn.0107b4be
jmp 0x1066736
mov edx, dword [ebp - 0x24]
push 0x5c
pop ecx
cmp word [edx + eax*2 - 2], cx
je 0x1066736
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ecx
push eax
lea ecx, [ebp - 0x24]
call fcn.010571c2
push dword [0x1111364]
lea ecx, [ebp - 0x24]
call fcn.01057980
mov edi, dword [ebp - 0x24]
push edi
lea ecx, [ebp - 0x28]
call fcn.01065bc8
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 0x10666d7
push dword [ebp - 0x38]
lea ecx, [ebp - 0x28]
call fcn.01057980
push 1
push dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10667e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x106679f
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10668c5
test byte [eax + 0x1c], 1
je 0x10668c5
cmp byte [eax + 0x19], 2
jb 0x10668c5
push ebx
push dword [ebp - 0x28]
push edi
push 0x1006370
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019a40
jmp 0x10668c0
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and dword [ebp - 0x2c], 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.01065bc8
push dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
call fcn.01057980
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.010709f2
test eax, eax
je 0x1066982
mov ecx, 0x80390003
cmp eax, ecx
jne 0x1066881
mov eax, dword [0x111124c]
mov esi, 0x111124c
cmp eax, esi
je 0x1066987
test byte [eax + 0x1c], 1
je 0x1066987
cmp byte [eax + 0x19], 3
jb 0x1066987
push ecx
mov edi, 0x1006370
push edi
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
jmp 0x106698c
push eax
call fcn.010d4177
mov ebx, eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10668b7
test byte [eax + 0x1c], 1
je 0x10668b7
cmp byte [eax + 0x19], 2
jb 0x10668b7
push ebx
push dword [ebp - 0x44]
push 0x1006370
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x111124c]
xor edi, edi
cmp dword [ebp - 0x38], edi
je 0x10668db
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov eax, dword [0x111124c]
cmp dword [ebp - 0x34], edi
je 0x10668f1
push dword [ebp - 0x34]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x58], edi
je 0x1066940
lea eax, [ebp - 0x58]
push eax
call fcn.01084f1d
mov esi, eax
cmp esi, edi
jge 0x106693b
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1066930
test byte [eax + 0x1c], 1
je 0x1066930
cmp byte [eax + 0x19], 2
jb 0x1066930
push esi
push 0x1006370
push 0x46
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189f6
push edi
push edi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1066965
test byte [eax + 0x1c], 1
je 0x1066965
cmp byte [eax + 0x19], 4
jb 0x1066965
push 0x1006370
push 0x47
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
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.0106f750
ret
mov esi, 0x111124c
mov edi, 0x1006370
lea eax, [ebp - 0x58]
push eax
push 1
push 0x1006480
call fcn.01084e83
mov ebx, eax
test ebx, ebx
jge 0x10669d6
mov eax, dword [0x111124c]
cmp eax, esi
je 0x10668b7
test byte [eax + 0x1c], 1
je 0x10668b7
cmp byte [eax + 0x19], 2
jb 0x10668b7
push edi
push 0x43
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
jmp 0x10668b7
push 1
lea eax, [ebp - 0x40]
push eax
call fcn.01071552
test eax, eax
je 0x10668b7
cmp eax, 0x80390001
jne 0x1066a16
mov eax, dword [0x111124c]
cmp eax, esi
je 0x10668b7
test byte [eax + 0x1c], 1
je 0x10668b7
cmp byte [eax + 0x19], 3
jb 0x10668b7
push edi
push 0x44
jmp 0x10669c6
push eax
call fcn.010d4177
mov ebx, eax
mov eax, dword [0x111124c]
cmp eax, esi
je 0x10668b7
test byte [eax + 0x1c], 1
je 0x10668b7
cmp byte [eax + 0x19], 2
jb 0x10668b7
push ebx
push dword [ebp - 0x3c]
push edi
push 0x45
jmp 0x10668ac
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x1066a7b
test byte [eax + 0x1c], 1
je 0x1066a7b
cmp byte [eax + 0x19], 2
jb 0x1066a7b
push esi
push 0x1006370
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
mov ebx, 0x80070057
jmp 0x10668c5