Function at 0x1031ff8
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 0x1032051
test byte [eax + 0x1c], 4
je 0x1032051
cmp byte [eax + 0x19], 5
jb 0x1032051
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 0x1032095
mov esi, dword [edi + 0x15c]
test esi, esi
je 0x1032095
mov eax, dword [esi + 0x80]
jmp 0x1032097
xor eax, eax
test esi, esi
je 0x10320a0
mov ecx, dword [esi + 0x34]
jmp 0x10320a3
mov ecx, dword [edi + 0x34]
mov dword [ebp - 0x220], ecx
test eax, eax
jne 0x10321fb
mov eax, dword [ebp - 0x214]
test eax, eax
jne 0x10320c0
mov eax, 0x10019cc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov eax, dword [0x1078100]
push dword [eax + 0x5c]
call fcn.0105edb3
or eax, edx
jne 0x103213a
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1032111
test byte [eax + 0x1c], 4
je 0x1032111
cmp byte [eax + 0x19], 2
jb 0x1032111
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.0102ca9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1032123
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.0105bb63
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 0x1032198
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1032186
test byte [eax + 0x1c], 4
je 0x1032186
cmp byte [eax + 0x19], 2
jb 0x1032186
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.0102ca9d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1032111
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x218]
call fcn.01009a5d
mov esi, eax
test esi, esi
jge 0x10323d0
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10321df
test byte [eax + 0x1c], 4
je 0x10321df
cmp byte [eax + 0x19], 2
jb 0x10321df
push esi
push 0x10022b4
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
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 0x1032111
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1032247
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0102d9e5
test eax, eax
jne 0x1032247
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1032111
test byte [eax + 0x1c], 4
je 0x1032111
cmp byte [eax + 0x19], 2
jb 0x1032111
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10022b4
push 0x33
jmp 0x1032101
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.01031e1f
test eax, eax
jne 0x10322c4
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1032111
test byte [eax + 0x1c], 4
je 0x1032111
cmp byte [eax + 0x19], 2
jb 0x1032111
push dword [esi + 0x80]
push dword [edi + 0x18]
push 0x10022b4
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01044210
jmp 0x1032111
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1032387
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.FXSTIFF.dll_MergeTiffFiles
test eax, eax
jne 0x1032387
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1032324
test byte [eax + 0x1c], 4
je 0x1032324
cmp byte [eax + 0x19], 2
jb 0x1032324
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.0102d2ee
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1032111
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1032111
test byte [eax + 0x1c], 4
je 0x1032111
cmp byte [eax + 0x19], 2
jb 0x1032111
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.01044197
jmp 0x1032111
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x218]
call fcn.01009a5d
mov esi, eax
test esi, esi
jge 0x10323d0
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10321df
test byte [eax + 0x1c], 4
je 0x10321df
cmp byte [eax + 0x19], 2
jb 0x10321df
push esi
push 0x10022b4
push 0x37
jmp 0x10321d4
mov dword [ebp - 0x210], 1
jmp 0x1032123