Function at 0x102c3c7
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 0x102c636
cmp dword [esi + 0x14], 0
je 0x102c636
cmp dword [esi + 0xc], 0xffffffff
je 0x102c401
xor eax, eax
jmp 0x102c63b
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x102c422
push 1
push 0x927c0
call fcn.0102c927
test eax, eax
jne 0x102c422
mov eax, 0x800705b4
jmp 0x102c63b
mov ecx, esi
call fcn.0102c1a5
mov eax, dword [esi + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x102c42f
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.0102a176
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.0102a176
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x214], ebx
je 0x102c5bd
cmp eax, ebx
je 0x102c5b1
mov eax, dword [esi + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x102c4a0
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.0102ba2f
test eax, eax
jl 0x102c5b1
mov dword [ebp - 0x21c], 9
mov ebx, 0x1010538
mov edi, 0x800
mov eax, dword [ebp - 0x21c]
cmp eax, 1
jne 0x102c505
push dword [esi + 8]
push dword [ebp - 0x220]
push dword [ebp - 0x214]
call fcn.0102b9f5
jmp 0x102c52f
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.0102bad8
add esp, 0x24
test eax, eax
jl 0x102c5af
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.0102bad8
add esp, 0x24
test eax, eax
jl 0x102c5af
push 1
push dword [ebp - 0x218]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x102c59c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x102c59c
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 0x102c4e4
xor ebx, ebx
push dword [ebp - 0x214]
call fcn.0102a0f6
pop ecx
pop edi
cmp dword [ebp - 0x218], ebx
je 0x102c5d2
push dword [ebp - 0x218]
call fcn.0102a0f6
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 0x102c601
mov esi, dword [esi + 0x1c]
cmp esi, ebx
je 0x102c5fa
mov ecx, esi
call fcn.0102c903
mov eax, 0x80004005
jmp 0x102c63b
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x102c621
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x102c3fa
mov ecx, dword [esi + 0x1c]
cmp ecx, ebx
je 0x102c62d
call fcn.0102c903
mov ecx, esi
call fcn.0102b882
jmp 0x102c5fa
mov eax, 0x80004003
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0102ad14
leave
ret