Function at 0x46e7e0
Capabilities:
Check if file exists
Copy file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1225
mov eax, dword fs:[0]
push eax
mov eax, 0x2050
call fcn.0044e180
mov eax, dword [0x4e24e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
lea edi, [ebp - 0x2030]
mov dword [ebp - 0x2038], esi
mov dword [ebp - 0x2030], ebx
call fcn.0046e5f0
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x2030]
cmp dword [edi - 0xc], ebx
jne 0x46e879
mov eax, dword [0x4e768c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e768c
call edx
add eax, 0x10
mov dword [esi], eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46e872
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x46eaf1
mov edx, 0x4aedd0
lea ecx, [ebp - 0x205c]
call fcn.0048ccf0
push str.360SkinViewimagedemo.wmv
mov ecx, eax
lea esi, [ebp - 0x202c]
mov byte [ebp - 4], 1
call fcn.0040a3a0
add esp, 4
mov esi, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2044], esi
jb 0x46e8c2
mov ecx, dword [ebp - 0x2058]
push ecx
call fcn.0044556f
add esp, 4
mov eax, dword [ebp - 0x2028]
xor edx, edx
mov dword [ebp - 0x2044], 7
mov dword [ebp - 0x2048], ebx
mov word [ebp - 0x2058], dx
cmp dword [ebp - 0x2014], esi
jae 0x46e8ef
lea eax, [ebp - 0x2028]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46eb0d
cmp dword [0x4ea7d8], ebx
je 0x46e90e
cmp dword [0x4ea7dc], ebx
jne 0x46e913
call fcn.00475500
cmp dword [0x4ea7d8], ebx
je 0x46e923
cmp dword [0x4ea7dc], ebx
jne 0x46e94d
mov eax, dword [0x4e768c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e768c
call edx
mov esi, dword [ebp - 0x2038]
add eax, 0x10
lea ecx, [ebp - 0x202c]
mov dword [esi], eax
call fcn.00402f70
jmp 0x46e84f
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2028]
mov dword [ebp - 0x2034], ebx
cmp dword [ebp - 0x2014], esi
jae 0x46e96b
lea eax, [ebp - 0x2028]
lea ecx, [ebp - 0x2034]
push ecx
push eax
push 0x4ea7d8
call fcn.00475450
test al, al
jne 0x46e9cf
mov edx, dword [0x4e768c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e768c
call eax
mov esi, dword [ebp - 0x2038]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2034]
cmp eax, ebx
je 0x46e9b2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x202c]
call fcn.00402f70
lea ecx, [ebp - 0x2030]
call fcn.00402430
mov eax, esi
jmp 0x46eaf1
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46e9f9
mov esi, dword [ebp - 0x2038]
call fcn.00411660
jmp 0x46e99c
mov eax, dword [ebp - 0x2034]
mov dword [ebp - 0x203c], ebx
cmp eax, ebx
je 0x46ea5c
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov ecx, dword [eax]
lea edx, [ebp - 0x203c]
push edx
push 0x1fff
lea edx, [ebp - 0x2010]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x46ea66
mov eax, dword [ebp - 0x203c]
cmp eax, ebx
je 0x46ea66
push ebx
lea ecx, [ebp - 0x2040]
push ecx
push eax
lea edx, [ebp - 0x2010]
push edx
push esi
mov dword [ebp - 0x2040], ebx
call edi
mov eax, dword [ebp - 0x2034]
cmp eax, ebx
jne 0x46ea10
push 0x80004003
call fcn.00441d80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2034]
cmp eax, ebx
je 0x46ea83
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [ebp - 0x2030]
lea esi, [edi - 0x10]
mov eax, esi
call fcn.004115b0
mov edi, dword [ebp - 0x2038]
add eax, 0x10
cmp dword [ebp - 0x2014], 8
mov dword [edi], eax
jb 0x46eab6
mov eax, dword [ebp - 0x2028]
push eax
call fcn.0044556f
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x2014], 7
mov dword [ebp - 0x2018], ebx
mov word [ebp - 0x2028], cx
mov dword [ebp - 4], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x46eaef
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044557a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2028]
cmp dword [ebp - 0x2014], esi
jae 0x46eb21
lea eax, [ebp - 0x2028]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x46ea89