Function at 0x10023db0
Capabilities:
Copy file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e248
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 8]
mov edx, dword [edi + 0x43c]
mov ecx, edx
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x74], eax
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x7c], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023e20
sub ecx, dword [ebp - 0x7c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.10004470
push 1
push 0x101a3b4c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.1000b3c0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x2c]
call fcn.100098a0
lea ecx, [ebp - 0x2c]
call fcn.100215e0
test al, al
jne 0x10023e71
mov byte [ebp - 0x69], al
jmp 0x100240c1
lea ecx, [ebp - 0x2c]
call fcn.10021a40
mov edx, dword [edi + 0x43c]
mov ecx, edx
mov byte [ebp - 0x69], al
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023ea0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.10004470
push 1
push 0x101a3b4c
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.1000b3c0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x74]
lea ecx, [ebp - 0x44]
call fcn.100098a0
lea ecx, [ebp - 0x44]
call fcn.100215e0
test al, al
je 0x1002408e
lea ecx, [ebp - 0x44]
call fcn.100219e0
test al, al
je 0x1002408e
cmp byte [ebp - 0x69], 0
je 0x10023fe3
cmp dword [ebp - 0x18], 8
lea esi, [ebp - 0x2c]
push 0
cmovae esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push esi
cmovae eax, dword [ebp - 0x44]
push eax
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
setne al
mov byte [ebp - 0x69], al
test al, al
jne 0x10023f64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
cmp eax, 0xb7
jne 0x10023f52
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
mov al, 1
mov byte [ebp - 0x69], al
jmp 0x10023f6a
push dword [ebp - 0x74]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
mov byte [ebp - 0x69], al
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
test al, al
je 0x10024093
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x68]
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x48], 0
cmovae eax, dword [ebp - 0x2c]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x78], xmm0
movups xmmword [ebp - 0x68], xmm0
movups xmmword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x10023fc9
push 0
call esi
test byte [ebp - 0x68], 0x10
jne 0x10023fc9
mov eax, dword [ebp - 0x48]
add dword [edi + 0x20618], eax
mov ecx, dword [ebp - 0x4c]
adc dword [edi + 0x2061c], ecx
mov al, byte [ebp - 0x69]
jmp 0x10024093
mov eax, dword [ebp - 0x78]
add dword [edi + 0x20618], eax
mov ecx, dword [ebp - 0x74]
adc dword [edi + 0x2061c], ecx
mov al, byte [ebp - 0x69]
jmp 0x10024093
push 0x20
call fcn.1010f668
mov esi, eax
add esp, 4
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x2c]
cmp esi, eax
je 0x10024015
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.100041a0
mov eax, dword [edi + 0x458]
lea ecx, [ebp - 0x60]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x45c]
mov dword [esi + 0x1c], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
call fcn.100041a0
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x20604]
call fcn.100264a0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x78]
push eax
lea ecx, [edi + 0x20604]
call fcn.10026500
mov eax, dword [ebp - 0x4c]
cmp eax, 8
jb 0x1002408a
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.10004630
mov al, 1
jmp 0x10024090
xor al, al
mov byte [ebp - 0x69], al
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x100240ad
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.10004630
mov al, byte [ebp - 0x69]
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], cx
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x100240d9
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.10004630
mov al, byte [ebp - 0x69]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc