Function at 0x10022980
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e1b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x38], edi
call fcn.10023b80
mov esi, dword [edi + 0x20604]
lea ecx, [edi + 0x20604]
mov dword [ebp - 0x3c], ecx
mov esi, dword [esi]
cmp esi, dword [ecx]
je 0x10022b22
nop dword [eax]
mov edi, dword [esi + 0x28]
test edi, edi
je 0x10022ad0
cmp dword [edi + 0x14], 8
jb 0x100229e8
mov ecx, dword [edi]
mov dword [ebp - 0x44], ecx
jmp 0x100229ed
mov ecx, edi
mov dword [ebp - 0x44], edi
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x40], eax
jb 0x100229fe
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
setne al
test al, al
jne 0x10022a3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
cmp eax, 0xb7
jne 0x10022a28
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10022a3d
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
test al, al
je 0x10022a9c
cmp dword [edi + 0x14], 8
jb 0x10022a47
mov eax, dword [edi]
jmp 0x10022a49
mov eax, edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x14], 0
push ecx
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10022a87
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test byte [ebp - 0x34], 0x10
jne 0x10022a87
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
jmp 0x10022a8d
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x38]
add dword [edx + 0x20618], eax
adc dword [edx + 0x2061c], ecx
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x10022aaf
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.10004630
xor eax, eax
mov dword [edi + 0x10], 0
push 0x20
mov dword [edi + 0x14], 7
push edi
mov word [edi], ax
call fcn.1010f560
mov ecx, dword [ebp - 0x3c]
add esp, 8
cmp byte [esi + 0xd], 0
jne 0x10022b17
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10022afc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10022b17
nop dword [eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10022af0
jmp 0x10022b17
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10022b15
cmp esi, dword [eax + 8]
jne 0x10022b15
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10022b05
mov esi, eax
cmp esi, dword [ecx]
jne 0x100229d0
mov edi, dword [ebp - 0x38]
mov dword [ebp - 4], 0
mov eax, dword [ecx]
push dword [eax + 4]
call fcn.10025180
mov eax, dword [edi + 0x20604]
lea ecx, [edi + 0x2060c]
mov dword [ebp - 0x3c], ecx
mov dword [eax + 4], eax
mov eax, dword [edi + 0x20604]
mov dword [eax], eax
mov eax, dword [edi + 0x20604]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 8], eax
mov dword [edi + 0x20608], 0
mov esi, dword [ecx]
mov esi, dword [esi]
cmp esi, dword [ecx]
je 0x10022c3d
mov edi, dword [esi + 0x28]
test edi, edi
je 0x10022bed
cmp dword [edi + 0x14], 8
jb 0x10022b84
mov ecx, dword [edi]
jmp 0x10022b86
mov ecx, edi
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x10022b91
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [0x101c6d24]
test eax, eax
setne al
test al, al
jne 0x10022bb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10022bb9
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x10022bcc
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.10004630
xor eax, eax
mov dword [edi + 0x10], 0
push 0x20
mov dword [edi + 0x14], 7
push edi
mov word [edi], ax
call fcn.1010f560
mov ecx, dword [ebp - 0x3c]
add esp, 8
cmp byte [esi + 0xd], 0
jne 0x10022c32
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10022c12
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10022c32
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10022c06
jmp 0x10022c32
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10022c30
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x10022c30
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10022c20
mov esi, eax
cmp esi, dword [ecx]
jne 0x10022b73
mov edi, dword [ebp - 0x38]
mov dword [ebp - 4], 1
mov eax, dword [ecx]
push dword [eax + 4]
call fcn.10025180
mov eax, dword [edi + 0x2060c]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x2060c]
mov dword [eax], eax
mov eax, dword [edi + 0x2060c]
mov dword [eax + 8], eax
mov dword [edi + 0x20610], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret