Function at 0x108e070
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x524
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x524], ecx
mov dword [ebp - 0x51c], edi
mov dword [ebp - 0x520], eax
mov dword [eax], ebx
cmp dword [ebp + 0xc], ebx
je 0x108e10c
lea eax, [ebp - 0x518]
push eax
push dword [0x11105b8]
push edi
call fcn.0108de71
mov esi, eax
cmp esi, 0x80070002
je 0x108e2fb
push dword [ebp - 0x518]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jge 0x108e10c
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108e105
test byte [eax + 0x1c], 1
je 0x108e105
cmp byte [eax + 0x19], 2
jb 0x108e105
push esi
push 0x1008bf8
push 0x55
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
mov eax, esi
jmp 0x108e2fd
mov esi, 0x143
cmp edi, ebx
je 0x108e153
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x108e11a
sub eax, edx
sar eax, 1
cmp eax, 0x104
jb 0x108e143
push 0x1009178
push 0xa0d
push 0x1008c24
call fcn.0107b644
push edi
push esi
lea eax, [ebp - 0x28c]
push eax
call fcn.010257dc
jmp 0x108e16e
push ebx
push ebx
push 0x105
lea eax, [ebp - 0x28c]
push eax
call fcn.0108ca89
cmp eax, ebx
jl 0x108e2fd
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
cmp cx, bx
jne 0x108e19d
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [0x11105b8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x108e1b5
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 0x108e1cd
sub eax, edx
sar eax, 1
add eax, ecx
lea eax, [eax + ebx + 1]
cmp eax, esi
jb 0x108e1f9
push 0x1009310
push 0xa24
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 0x108e23a
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 0x108e253
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 0x108e26c
sub ecx, edi
sar ecx, 1
add ecx, edx
lea eax, [ecx + ebx + 1]
cmp eax, esi
jb 0x108e298
push 0x1009290
push 0xa2d
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
mov edi, dword [0x11105bc]
push edi
push esi
lea eax, [ebp - 0x514]
push eax
call fcn.01040cf0
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x108e30e
lea eax, [ebp - 0x514]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.0108c045
cmp eax, ebx
jl 0x108e2fd
mov eax, dword [ebp - 0x520]
mov dword [eax], 1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106f798
leave
ret 0xc
mov ecx, dword [ebp - 0x524]
lea eax, [ebp - 0x518]
push eax
push edi
push dword [ebp - 0x51c]
call fcn.0108de71
mov esi, eax
cmp esi, ebx
jge 0x108e377
cmp esi, 0x80070002
je 0x108e2fb
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108e105
test byte [eax + 0x1c], 2
je 0x108e105
cmp byte [eax + 0x19], 2
jb 0x108e105
push esi
push dword [0x11105bc]
push 0x1008bf8
push 0x56
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x108e105
push dword [ebp - 0x518]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x108e2fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108e3d6
test byte [eax + 0x1c], 1
je 0x108e3d6
cmp byte [eax + 0x19], 2
jb 0x108e3d6
push esi
push 0x1008bf8
push 0x57
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019fa8
cmp esi, ebx
jle 0x108e105
and esi, 0xffff
or esi, 0x80070000
jmp 0x108e105