Function at 0x1001cf90
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x10050da7
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x100638a4]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100638a4]
xor eax, esp
push eax
lea eax, [esp + 0x4c0]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x4d0]
push ebx
mov esi, ecx
call fcn.1001bed0
mov ecx, eax
add esp, 4
or ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jne 0x1001d027
mov eax, ebx
mov dword [esi + 0xa3c], 0xfffffc14
mov dword [esi + 0xa38], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001d004
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esi + 0xc8]
call fcn.10009330
xor al, al
jmp 0x1001d27a
mov ecx, dword [esp + 0x4d4]
cmp ecx, eax
jne 0x1001d041
mov eax, dword [esp + 0x4d8]
cmp eax, edx
je 0x1001d15b
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x78]
push edx
mov dword [esi + 0xa3c], 0xfffffc16
mov dword [esi + 0xa38], 2
call fcn.1001cee0
mov edi, eax
lea eax, [esp + 0x4dc]
push eax
lea ecx, [esp + 0x2c]
xor ebp, ebp
push ecx
mov dword [esp + 0x4d8], ebp
call fcn.1001cee0
push 0x100553fc
push eax
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x4e4], 1
call fcn.1000b8a0
push edi
push eax
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x4f0], 2
call fcn.10019aa0
add esp, 0x28
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esi + 0xc8]
mov byte [esp + 0x4d4], 3
call fcn.10009230
mov edi, 8
cmp dword [esp + 0x70], edi
jb 0x1001d0df
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.100386ec
add esp, 4
xor edx, edx
mov esi, 7
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebp
mov word [esp + 0x5c], dx
cmp dword [esp + 0x54], edi
jb 0x1001d106
mov eax, dword [esp + 0x40]
push eax
call fcn.100386ec
add esp, 4
xor ecx, ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebp
mov word [esp + 0x40], cx
cmp dword [esp + 0x38], edi
jb 0x1001d128
mov edx, dword [esp + 0x24]
push edx
call fcn.100386ec
add esp, 4
xor eax, eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebp
mov word [esp + 0x24], ax
cmp dword [esp + 0x8c], edi
jb 0x1001d14d
mov ecx, dword [esp + 0x78]
push ecx
call fcn.100386ec
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
jmp 0x1001d27a
push 0x104
lea edx, [esp + 0x2b8]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x1001d1aa
mov dword [esi + 0xa3c], 0xfffffc13
mov dword [esi + 0xa38], 3
add esi, 0xc8
push ebx
mov ecx, esi
call fcn.1000b7a0
push 0x11
push str.:_File_check_fail
mov ecx, esi
call fcn.1000b310
xor al, al
jmp 0x1001d27a
lea ebp, [esi + 0x3c]
mov edi, 8
cmp dword [ebp + 0x18], edi
jb 0x1001d1bc
mov eax, dword [ebp + 4]
jmp 0x1001d1bf
lea eax, [ebp + 4]
push 0x104
lea ecx, [esp + 0xb0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x1001d1fa
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x2b8]
push eax
call fcn.100393f1
add esp, 8
test eax, eax
jne 0x1001d1fa
mov al, 1
jmp 0x1001d27a
cmp dword [ebp + 0x18], edi
jb 0x1001d204
mov eax, dword [ebp + 4]
jmp 0x1001d207
lea eax, [ebp + 4]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
mov byte [esp + 0x17], al
test al, al
jne 0x1001d27a
lea edi, [esi + 0xc8]
push ebx
mov ecx, edi
mov dword [esi + 0xa3c], 0xfffffc17
call fcn.1000b7a0
push ebp
lea ecx, [esp + 0x94]
push 0x100553d4
push ecx
call fcn.1001cd00
add esp, 0xc
push 0xffffffffffffffff
push 0
mov ebx, 4
push eax
mov ecx, edi
mov dword [esp + 0x4d4], ebx
call fcn.10009230
lea ecx, [esp + 0x90]
call fcn.10010e30
mov al, byte [esp + 0x17]
mov dword [esi + 0xa38], ebx
mov ecx, dword [esp + 0x4c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a8]
xor ecx, esp
call fcn.10038723
add esp, 0x4b8
ret 0xc