Function at 0x10014d30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1009d258]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x104
push esi
push dword [0x1009fa18]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call edi
push esi
call edi
push esi
lea ecx, [ebp - 0x10]
call fcn.10008e80
mov eax, dword [ebp - 0x10]
mov ebx, 0x100824a8
sub ebx, eax
mov dword [ebp - 4], 0
push 6
push 0x100824a8
mov edi, dword [eax - 0xc]
sar ebx, 1
mov dword [ebp - 0x1c], edi
call fcn.10064683
mov ecx, 0x7fffffff
mov dword [ebp - 0x20], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x10014f70
add edi, eax
js 0x10014f7a
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x10014de4
push edi
lea ecx, [ebp - 0x10]
call fcn.10007de0
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
cmp ebx, edx
lea ebx, [eax + ebx*2]
jbe 0x10014df3
mov ebx, 0x100824a8
mov ecx, dword [ebp - 0x20]
lea eax, [eax + edx*2]
add ecx, ecx
push ecx
push ebx
push ecx
push eax
call fcn.10014410
mov eax, dword [ebp - 0x10]
add esp, 0x10
cmp edi, dword [eax - 8]
jg 0x10014f70
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x10]
push str.utilsClsTool.exe
push esi
mov word [eax + edi*2], cx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.10007a00
mov ecx, eax
test ecx, ecx
je 0x10014f84
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push 1
push eax
mov dword [ebp - 0x18], 0
call fcn.10034ff0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push str.rd_sc
push dword [eax]
call fcn.1000aea0
mov edx, dword [ebp - 0x20]
or ebx, 0xffffffff
add esp, 0x1c
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10014e9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov eax, dword [ebp - 0x14]
je 0x10014ee0
mov edi, eax
mov edx, 0x104
sub edi, esi
nop word [eax + eax]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x10014f0e
movzx ecx, word [edi + esi]
test cx, cx
je 0x10014f0e
mov word [esi], cx
add esi, 2
sub edx, 1
jne 0x10014ec0
jmp 0x10014f0e
cmp dword [ebp - 0x18], 0
je 0x10014f20
mov edi, eax
mov edx, 0x104
sub edi, esi
nop
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x10014f0e
movzx ecx, word [edi + esi]
test cx, cx
je 0x10014f0e
mov word [esi], cx
add esi, 2
sub edx, 1
jne 0x10014ef0
test edx, edx
lea ecx, [esi - 2]
cmovne ecx, esi
xor edx, edx
mov word [ecx], dx
lea esi, [edx + 1]
jmp 0x10014f22
xor esi, esi
lea edx, [eax - 0x10]
mov byte [ebp - 4], 0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10014f3d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10014f5c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10007bc0
push 0x80070057
call fcn.10007bc0
push 0x80004005
call fcn.10007bc0
int3