Function at 0x108e3f4
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x518
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x518]
push eax
push dword [0x11105b8]
push edi
call fcn.0108de71
mov esi, eax
cmp esi, 0x80070002
je 0x108e6a7
push dword [ebp - 0x518]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jge 0x108e446
mov eax, esi
jmp 0x108e6a9
mov esi, 0x143
test edi, edi
je 0x108e4bc
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108e454
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x108e47d
push 0x1009178
push 0xaa0
push 0x1008c24
call fcn.0107b644
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108e482
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 - 2], 0x5c
jne 0x108e4ac
push 0x100913c
push 0xaa1
push 0x1008c24
call fcn.0107b644
push edi
push esi
lea eax, [ebp - 0x28c]
push eax
call fcn.010257dc
jmp 0x108e4d9
push 0
push 0
push 0x105
lea eax, [ebp - 0x28c]
push eax
call fcn.0108ca89
test eax, eax
jl 0x108e6a9
push 0x10019e4
push esi
lea eax, [ebp - 0x28c]
push eax
call fcn.01040cf0
lea eax, [ebp - 0x28c]
push eax
push esi
lea eax, [ebp - 0x514]
push eax
call fcn.010257dc
lea eax, [ebp - 0x28c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x108e508
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
mov eax, dword [0x11105b8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x108e521
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, dword [0x11105c4]
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x108e539
sub eax, edx
sar eax, 1
add eax, ecx
lea eax, [eax + ebx + 1]
cmp eax, esi
jb 0x108e565
push 0x1009310
push 0xab8
push 0x1008c24
call fcn.0107b644
push dword [0x11105c4]
lea eax, [ebp - 0x28c]
push esi
push eax
call fcn.01040cf0
push 0x10019e4
push esi
lea eax, [ebp - 0x28c]
push eax
call fcn.01040cf0
push dword [0x11105b8]
lea eax, [ebp - 0x28c]
push esi
push eax
call fcn.01040cf0
lea eax, [ebp - 0x514]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x108e5a6
sub eax, ecx
mov ecx, dword [0x11105bc]
sar eax, 1
mov ebx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
inc ecx
inc ecx
test ax, ax
jne 0x108e5bf
sub ecx, edx
sar ecx, 1
mov edx, ecx
mov ecx, dword [0x11105c4]
lea edi, [ecx + 2]
mov ax, word [ecx]
inc ecx
inc ecx
test ax, ax
jne 0x108e5d8
sub ecx, edi
sar ecx, 1
add ecx, edx
lea eax, [ecx + ebx + 1]
pop ebx
cmp eax, esi
jb 0x108e605
push 0x1009290
push 0xac1
push 0x1008c24
call fcn.0107b644
push dword [0x11105c4]
lea eax, [ebp - 0x514]
push esi
push eax
call fcn.01040cf0
push 0x10019e4
push esi
lea eax, [ebp - 0x514]
push eax
call fcn.01040cf0
push dword [0x11105bc]
lea eax, [ebp - 0x514]
push esi
push eax
call fcn.01040cf0
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x108e6a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108e68e
test byte [eax + 0x1c], 2
je 0x108e68e
cmp byte [eax + 0x19], 4
jb 0x108e68e
push esi
push 0x1008bf8
push 0x58
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
cmp esi, edi
jle 0x108e43f
and esi, 0xffff
or esi, 0x80070000
jmp 0x108e43f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0106f798
leave
ret 4