Function at 0x102c7b6
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10350f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x102ca25
cmp dword [esi + 0x14], 0
je 0x102ca25
cmp dword [esi + 0xc], 0xffffffff
je 0x102c7f0
xor eax, eax
jmp 0x102ca2a
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x102c811
push 1
push 0x927c0
call fcn.0102cd16
test eax, eax
jne 0x102c811
mov eax, 0x800705b4
jmp 0x102ca2a
mov ecx, esi
call fcn.0102c594
mov eax, dword [esi + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102c81e
sub eax, edx
sar eax, 1
push edi
lea edi, [eax + 1]
xor ecx, ecx
push 2
lea ebx, [edi + 2]
pop edx
mov eax, ebx
mul edx
seto cl
mov dword [ebp - 0x220], edi
neg ecx
or ecx, eax
push ecx
call fcn.0102a64e
mov dword [ebp - 0x214], eax
xor ecx, ecx
push 2
pop edx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0102a64e
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x214], ebx
je 0x102c9ac
cmp eax, ebx
je 0x102c9a0
mov eax, dword [esi + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102c88f
sub eax, edx
sar eax, 1
sub edi, eax
sub edi, 6
push edi
push dword [esi + 8]
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0102be78
test eax, eax
jl 0x102c9a0
mov dword [ebp - 0x21c], 9
mov ebx, 0x10107f8
mov edi, 0x800
mov eax, dword [ebp - 0x21c]
cmp eax, 1
jne 0x102c8f4
push dword [esi + 8]
push dword [ebp - 0x220]
push dword [ebp - 0x214]
call fcn.0102be3e
jmp 0x102c91e
dec eax
push eax
push dword [esi + 0x14]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x220]
push ebx
push edi
push 0
push 0
add eax, 2
push eax
push dword [ebp - 0x214]
call fcn.0102bec7
add esp, 0x24
test eax, eax
jl 0x102c99e
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push dword [esi + 0x14]
push eax
mov eax, dword [ebp - 0x220]
push ebx
push edi
push 0
push 0
add eax, 2
push eax
push dword [ebp - 0x218]
call fcn.0102bec7
add esp, 0x24
test eax, eax
jl 0x102c99e
push 1
push dword [ebp - 0x218]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x102c98b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x102c98b
push 0
push dword [ebp - 0x218]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
dec dword [ebp - 0x21c]
cmp dword [ebp - 0x21c], 1
jge 0x102c8d3
xor ebx, ebx
push dword [ebp - 0x214]
call fcn.0102a5ce
pop ecx
pop edi
cmp dword [ebp - 0x218], ebx
je 0x102c9c1
push dword [ebp - 0x218]
call fcn.0102a5ce
pop ecx
push ebx
push ebx
push 4
push ebx
push 3
push 2
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
jne 0x102c9f0
mov esi, dword [esi + 0x1c]
cmp esi, ebx
je 0x102c9e9
mov ecx, esi
call fcn.0102ccf2
mov eax, 0x80004005
jmp 0x102ca2a
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x102ca10
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x102c7e9
mov ecx, dword [esi + 0x1c]
cmp ecx, ebx
je 0x102ca1c
call fcn.0102ccf2
mov ecx, esi
call fcn.0102bccb
jmp 0x102c9e9
mov eax, 0x80004003
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0102b1ee
leave
ret