Function at 0x1006f639
Capabilities:
Copy file

Disassembly:
push 0x3c
mov eax, 0x1007aa2d
call fcn.100756f9
mov ebx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], eax
call fcn.1006f8e9
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], edx
lea ecx, [ebp - 0x30]
mov eax, dword [ebx]
push ecx
push 1
push SysReAllocString
mov esi, dword [eax]
push edx
push dword [ebp - 0x34]
mov ecx, dword [esi + 0xc]
push eax
call dword [0x10089918]
call dword [esi + 0xc]
test eax, eax
jns 0x1006f691
push eax
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x10089918]
call esi
test eax, eax
js 0x1006f68a
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x1006f6e9
inc ecx
cmp ecx, 4
jne 0x1006f6b1
push 0
push edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1006f6d9
push 0x80004005
jmp 0x1006f68b
lea ecx, [ebp - 0x30]
call fcn.1000af40
call fcn.1007564b
ret 0x10
and dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
mov eax, dword [ebx]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x38]
mov ecx, esi
call dword [0x10089918]
call esi
test eax, eax
js 0x1006f68a
mov eax, dword [ebp - 0x28]
push 0xc0000000
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x3c]
mov ecx, esi
call dword [0x10089918]
call esi
test eax, eax
js 0x1006f68a
and dword [ebp - 0x2c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx]
push ecx
push 0x10005058
push dword [ebp - 0x38]
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x20]
call dword [0x10089918]
call dword [esi + 0x20]
test eax, eax
js 0x1006f68a
mov eax, dword [ebp - 0x2c]
push 2
push dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x10089918]
call esi
test eax, eax
js 0x1006f68a
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.1006ff21
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x2c]
mov ecx, esi
call dword [0x10089918]
call esi
test eax, eax
js 0x1006f68a
lea ecx, [ebp - 0x2c]
call fcn.10049582
mov eax, dword [ebp - 0x28]
xor ebx, ebx
push ebx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x10089918]
call esi
test eax, eax
jns 0x1006f7d5
cmp eax, 0x80004001
jne 0x1006f68a
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1006f7ef
mov dword [ebp - 0x28], ebx
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10089918]
call esi
lea ecx, [ebp - 0x30]
call fcn.10049582
push edi
push dword [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.10070173
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1006f822
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10089918]
call esi
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1006f6d9
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10089918]
call esi
jmp 0x1006f6d9