Function at 0x100167d0
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009e867
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x100cc314]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x94], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10016db9
mov ecx, dword [ebp - 0x8c]
push esi
push edi
call fcn.10016e10
test eax, eax
jne 0x1001683f
mov eax, 1
jmp 0x10016dbb
call fcn.1001b1e0
mov ecx, eax
test ecx, ecx
je 0x10016dd8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x90], eax
push edi
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0
call fcn.1001ae90
test al, al
jne 0x1001689e
test edi, edi
jne 0x1001687d
xor ecx, ecx
jmp 0x10016891
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016882
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x90]
call fcn.1001bda0
mov esi, dword [ebp - 0x90]
push esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x8c], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100168e1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
test cl, 0x10
je 0x100168e1
xor eax, eax
mov edx, 1
cmp ecx, 0xffffffff
cmovne eax, edx
mov dword [ebp - 0x8c], eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100168f9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
cmp dword [ebp - 0x8c], eax
jne 0x10016dbb
mov esi, dword [ebp + 0x10]
test esi, esi
sete al
push eax
push dword [ebp - 0x94]
mov dword [ebp - 0xa0], eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x90], eax
test eax, eax
jne 0x10016dbb
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x50
jne 0x10016946
test esi, esi
je 0x10016835
call fcn.1004a880
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10016ad8
call edi
push 0x4f
push str.e:codeclean_master1webwrapwebwrapwebwrapjsexternalcpp_interface_misc.cc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.10005050
push 3
push 0x100a78cc
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10005050
mov byte [ebp - 4], 2
call fcn.1004a880
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x138]
push 0x6bb
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10002400
mov edi, eax
push str.copy_file_fail:
push edi
mov byte [ebp - 4], 3
call fcn.100172d0
mov eax, dword [ebp - 0x9c]
mov esi, str._null_
test eax, eax
mov ecx, esi
cmovne ecx, eax
push ecx
push edi
call fcn.100172d0
push str._to
push edi
call fcn.100172d0
mov eax, dword [ebp - 0x94]
test eax, eax
cmovne esi, eax
push esi
push edi
call fcn.100172d0
push str.__err:
push edi
call fcn.100172d0
add esp, 0x28
mov ecx, edi
push dword [ebp - 0x8c]
call fcn.10018f60
mov ecx, dword [ebp - 0x98]
push edi
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x138]
call fcn.10003610
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x10016a8b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016a81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016de2
push edx
push ecx
call fcn.10061f44
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x10016ad8
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016ace
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016de7
push edx
push ecx
call fcn.10061f44
add esp, 8
mov edi, dword [ebp - 0x94]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10016db1
mov ecx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016b06
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10005140
push 4
push str..tmp
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 4
call fcn.1001c490
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x10016ba5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016b9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016dec
push edx
push ecx
call fcn.10061f44
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x14], 7
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x98], eax
call fcn.1004a880
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x10016d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4f
push str.e:codeclean_master1webwrapwebwrapwebwrapjsexternalcpp_interface_misc.cc
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
call fcn.10005050
push 3
push 0x100a78cc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.10005050
mov byte [ebp - 4], 8
call fcn.1004a880
mov edi, eax
lea ecx, [ebp - 0x1d0]
push 0x6c3
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10002400
mov esi, eax
push str.move_ret:
push esi
mov byte [ebp - 4], 9
call fcn.100172d0
add esp, 8
mov ecx, esi
push dword [ebp - 0x98]
call fcn.10003250
push str.__code:
push esi
call fcn.100172d0
add esp, 8
mov ecx, esi
push dword [ebp - 0x8c]
call fcn.10018f60
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x1d0]
call fcn.10003610
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x10016d01
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016cf7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016df1
push edx
push ecx
call fcn.10061f44
add esp, 8
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x10016d4a
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10016d40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016df6
push edx
push ecx
call fcn.10061f44
add esp, 8
mov edi, dword [ebp - 0x94]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0xa0]
push edi
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x90], eax
cmp edx, 8
jb 0x10016dbb
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10016da7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016dfb
push edx
push ecx
call fcn.10061f44
add esp, 8
mov eax, dword [ebp - 0x90]
jmp 0x10016dbb
xor eax, eax
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.10061f52
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.1001ae50
call fcn.1006f15a
call fcn.1006f15a
call fcn.1006f15a
call fcn.1006f15a
call fcn.1006f15a
call fcn.1006f15a
int3