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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10157348
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x101a5034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x144]
call fcn.1000cbb0
mov dword [ebp - 4], 0
jmp 0x1010cae7
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
cmp dword [ebp + 8], 0
je 0x1010ce9a
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 4
jne 0x1010ce95
mov dword [ebp - 0x1b0], 0x1017b158
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x1b4], ecx
mov edx, dword [ebp - 0x1b4]
mov al, byte [edx]
mov byte [ebp - 0x1a5], al
mov ecx, dword [ebp - 0x1b0]
cmp al, byte [ecx]
jne 0x1010cb72
cmp byte [ebp - 0x1a5], 0
je 0x1010cb66
mov edx, dword [ebp - 0x1b4]
mov al, byte [edx + 1]
mov byte [ebp - 0x1aa], al
mov ecx, dword [ebp - 0x1b0]
cmp al, byte [ecx + 1]
jne 0x1010cb72
add dword [ebp - 0x1b4], 2
add dword [ebp - 0x1b0], 2
cmp byte [ebp - 0x1aa], 0
jne 0x1010cb14
mov dword [ebp - 0x1c0], 0
jmp 0x1010cb7d
sbb edx, edx
or edx, 1
mov dword [ebp - 0x1c0], edx
mov eax, dword [ebp - 0x1c0]
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 0
jne 0x1010ce95
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
lea ecx, [ebp - 0x144]
call fcn.10009f70
lea ecx, [ebp - 0x144]
call fcn.10002460
cmp eax, 0xa
jae 0x1010cbf7
push str.page_info_size_too_small.
push 1
push 0x45
push 0x1017b184
push 0x1017b1ec
call fcn.101426f0
add esp, 0x14
mov byte [ebp - 0x1a9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.1000cd00
mov al, byte [ebp - 0x1a9]
jmp 0x1010ceb9
lea ecx, [ebp - 0x12c]
call fcn.1000cbb0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.10009f70
lea edx, [ebp - 0x18c]
push edx
call fcn.1010c7f0
add esp, 4
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x1c8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c8]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.10036500
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18c]
call fcn.1000cd00
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x12c]
call fcn.1000c9b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0xffffffff
je 0x1010cce5
mov dword [ebp - 0x1d0], 0
push 0
lea edx, [ebp - 0x1d0]
push edx
lea ecx, [ebp - 0x144]
call fcn.10002460
push eax
lea ecx, [ebp - 0x144]
call fcn.10009f90
push eax
mov eax, dword [ebp - 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x1b8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x174]
push edx
call fcn.1010c7f0
add esp, 4
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1e0]
call fcn.1000c9b0
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push ecx
call fcn.100fa860
add esp, 4
mov dword [ebp - 0x204], eax
lea ecx, [ebp - 0x1a4]
call fcn.1007baa0
add esp, 0x18
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1cc], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1cc]
call fcn.1000c9b0
push eax
push str._s_UserWebPage__s
lea eax, [ebp - 0x15c]
push eax
call fcn.1007b6f0
add esp, 0x10
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1a4]
call fcn.1000cd00
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x174]
call fcn.1000cd00
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1f8], esp
lea edx, [ebp - 0x15c]
push edx
call fcn.1000c9d0
mov dword [ebp - 0x1d4], eax
mov eax, dword [ebp - 0x1d4]
mov dword [ebp - 0x1f0], eax
mov byte [ebp - 4], 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1ec], esp
lea edx, [ebp - 0x12c]
push edx
call fcn.1000c9d0
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x1fc], eax
mov byte [ebp - 4], 9
call dword [sym.imp.NetCommHelper.dll_public:_static_class_CNetManager____cdecl_CNetManager::GetInstance_void_]
mov byte [ebp - 4], 7
mov ecx, eax
call dword [sym.imp.NetCommHelper.dll_public:_bool___thiscall_CNetManager::UploadFile_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___]
mov byte [ebp - 0x1a6], al
mov cl, byte [ebp - 0x1a6]
mov byte [ebp - 0x1a8], cl
movzx edx, byte [ebp - 0x1a8]
test edx, edx
je 0x1010ce2d
mov dword [ebp - 0x1bc], 0x1017b218
jmp 0x1010ce37
mov dword [ebp - 0x1bc], 0x1017b210
mov eax, dword [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x15c]
call fcn.1000c9b0
push eax
push 0x1017b258
push 1
push 0x5e
push 0x1017b220
push str.CLightWebsocket::HandleUserWebPage
call fcn.101426f0
add esp, 0x1c
lea ecx, [ebp - 0x12c]
call fcn.1000c9b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15c]
call fcn.1000cd00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.1000cd00
jmp 0x1010cadf
mov byte [ebp - 0x1a7], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.1000cd00
mov al, byte [ebp - 0x1a7]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014c66b
mov esp, ebp
pop ebp
ret