Function at 0x1031bec
Capabilities:
Copy file
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x218], eax
mov eax, dword [0x1075004]
mov ebx, 0x1075004
cmp eax, ebx
je 0x1031c45
test byte [eax + 0x1c], 4
je 0x1031c45
cmp byte [eax + 0x19], 5
jb 0x1031c45
push 0x10022b4
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
xor eax, eax
push 0x206
xor esi, esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x21c], esi
and dword [ebp - 0x210], esi
add esp, 0xc
cmp dword [edi + 0x1c], 2
jne 0x1031c89
mov esi, dword [edi + 0x15c]
test esi, esi
je 0x1031c89
mov eax, dword [esi + 0x80]
jmp 0x1031c8b
xor eax, eax
test esi, esi
je 0x1031c94
mov ecx, dword [esi + 0x34]
jmp 0x1031c97
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x220], ecx
test eax, eax
jne 0x1031def
mov eax, dword [ebp - 0x214]
test eax, eax
jne 0x1031cb4
mov eax, 0x10019cc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov eax, dword [0x1078100]
push dword [eax + 0x5c]
call fcn.0105e9f3
or eax, edx
jne 0x1031d2e
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1031d05
test byte [eax + 0x1c], 4
je 0x1031d05
cmp byte [eax + 0x19], 2
jb 0x1031d05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10022b4
push 0x30
mov eax, dword [0x1075004]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1031d17
push 0x1f
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 0x10
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1031d8c
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1031d7a
test byte [eax + 0x1c], 4
je 0x1031d7a
cmp byte [eax + 0x19], 2
jb 0x1031d7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x10022b4
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1031d05
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x218]
call fcn.010676d2
mov esi, eax
test esi, esi
jge 0x1031fc4
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1031dd3
test byte [eax + 0x1c], 4
je 0x1031dd3
cmp byte [eax + 0x19], 2
jb 0x1031dd3
push esi
push 0x10022b4
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1031d05
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1031e3b
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0102d5d9
test eax, eax
jne 0x1031e3b
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1031d05
test byte [eax + 0x1c], 4
je 0x1031d05
cmp byte [eax + 0x19], 2
jb 0x1031d05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10022b4
push 0x33
jmp 0x1031cf5
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x114]
lea eax, [esi + 0x9c]
push dword [ebp - 0x214]
push eax
lea eax, [edi + 0x118]
push eax
lea eax, [esi + 0x78]
push eax
push dword [edi + 0x30]
push dword [ebp - 0x21c]
call fcn.01031a13
test eax, eax
jne 0x1031eb8
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1031d05
test byte [eax + 0x1c], 4
je 0x1031d05
cmp byte [eax + 0x19], 2
jb 0x1031d05
push dword [esi + 0x80]
push dword [edi + 0x18]
push 0x10022b4
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090eb
jmp 0x1031d05
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1031f7b
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.FXSTIFF.dll_MergeTiffFiles
test eax, eax
jne 0x1031f7b
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1031f18
test byte [eax + 0x1c], 4
je 0x1031f18
cmp byte [eax + 0x19], 2
jb 0x1031f18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 0x34]
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x18]
mov eax, dword [0x1075004]
push 0x10022b4
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102cee2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1031d05
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1031d05
test byte [eax + 0x1c], 4
je 0x1031d05
cmp byte [eax + 0x19], 2
jb 0x1031d05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x18]
mov eax, dword [0x1075004]
push 0x10022b4
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01043dbf
jmp 0x1031d05
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x218]
call fcn.010676d2
mov esi, eax
test esi, esi
jge 0x1031fc4
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1031dd3
test byte [eax + 0x1c], 4
je 0x1031dd3
cmp byte [eax + 0x19], 2
jb 0x1031dd3
push esi
push 0x10022b4
push 0x37
jmp 0x1031dc8
mov dword [ebp - 0x210], 1
jmp 0x1031d17