Function at 0x10135d90
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fdb50
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10135f29
add eax, eax
cmp eax, 0x208
jae 0x10135f24
xor ecx, ecx
mov word [ebp + eax - 0x424], cx
lea eax, [ebp - 0x21c]
push eax
push ecx
push str.360_shortcut_
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10135f56
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x440], edi
cmp edi, 0xffffffff
je 0x10135f83
push 0
lea eax, [ebp - 0x444]
push eax
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10135fb0
mov dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x43c]
call fcn.10020470
push 0
lea eax, [ebp - 0x43c]
push eax
mov ecx, esi
call fcn.10138fc0
lea ecx, [ebp - 0x43c]
call fcn.10005250
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
call fcn.101c8260
mov dword [ebp - 0x440], str.GetTempPath_fail
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x454]
call sub.msvcrt.dll_public:_void___thiscall_exception::constructor_char_const__const_const__
push 0x102343c0
lea eax, [ebp - 0x454]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0x440], str.GetTempFileName_fail
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x460]
call sub.msvcrt.dll_public:_void___thiscall_exception::constructor_char_const__const_const__
push 0x102343c0
lea eax, [ebp - 0x460]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0x440], str.CreateFile_Icon_fail
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x46c]
call sub.msvcrt.dll_public:_void___thiscall_exception::constructor_char_const__const_const__
push 0x102343c0
lea eax, [ebp - 0x46c]
push eax
call sub.msvcrt.dll__CxxThrowException
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x440], str.WriteFile_Icon_fail
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x478]
call sub.msvcrt.dll_public:_void___thiscall_exception::constructor_char_const__const_const__
push 0x102343c0
lea eax, [ebp - 0x478]
push eax
call sub.msvcrt.dll__CxxThrowException
push dword [ebp - 0x440]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x448]
lea ecx, [ebp - 0x484]
call sub.msvcrt.dll_public:_void___thiscall_exception::constructor_class_exception_const__
push 0x102343c0
lea eax, [ebp - 0x484]
push eax
call sub.msvcrt.dll__CxxThrowException
mov dword [ebp - 0x440], str.Load_Icon_fail
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x490]
call sub.msvcrt.dll_public:_void___thiscall_exception::constructor_char_const__const_const__
push 0x102343c0
lea eax, [ebp - 0x490]
push eax
call sub.msvcrt.dll__CxxThrowException
int3