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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015b948
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x101ac034]
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.1000d8b0
mov dword [ebp - 4], 0
jmp 0x1010fb07
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
cmp dword [ebp + 8], 0
je 0x1010feba
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 4
jne 0x1010feb5
mov dword [ebp - 0x1b0], 0x1018100c
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 0x1010fb92
cmp byte [ebp - 0x1a5], 0
je 0x1010fb86
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 0x1010fb92
add dword [ebp - 0x1b4], 2
add dword [ebp - 0x1b0], 2
cmp byte [ebp - 0x1aa], 0
jne 0x1010fb34
mov dword [ebp - 0x1c0], 0
jmp 0x1010fb9d
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 0x1010feb5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
lea ecx, [ebp - 0x144]
call fcn.1000ad50
lea ecx, [ebp - 0x144]
call fcn.10002000
cmp eax, 0xa
jae 0x1010fc17
push str.page_info_size_too_small.
push 1
push 0x4c
push 0x10181038
push 0x10181014
call fcn.10145f00
add esp, 0x14
mov byte [ebp - 0x1a9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.10001f50
mov al, byte [ebp - 0x1a9]
jmp 0x1010fed9
lea ecx, [ebp - 0x12c]
call fcn.1000d8b0
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.1000ad50
lea edx, [ebp - 0x18c]
push edx
call fcn.1010f7a0
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.10035620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18c]
call fcn.10001f50
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x12c]
call fcn.10001f00
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0xffffffff
je 0x1010fd05
mov dword [ebp - 0x1d0], 0
push 0
lea edx, [ebp - 0x1d0]
push edx
lea ecx, [ebp - 0x144]
call fcn.10002000
push eax
lea ecx, [ebp - 0x144]
call fcn.1000ad70
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.1010f7a0
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.10001f00
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1f4], esp
push ecx
call fcn.100fd8b0
add esp, 4
mov dword [ebp - 0x204], eax
lea ecx, [ebp - 0x1a4]
call fcn.1007d260
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.10001f00
push eax
push str._s_UserWebPage__s
lea eax, [ebp - 0x15c]
push eax
call fcn.1007ceb0
add esp, 0x10
mov dword [ebp - 0x200], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1a4]
call fcn.10001f50
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x174]
call fcn.10001f50
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1f8], esp
lea edx, [ebp - 0x15c]
push edx
call fcn.1000d6d0
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.1000d6d0
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 0x1010fe4d
mov dword [ebp - 0x1bc], 0x10181070
jmp 0x1010fe57
mov dword [ebp - 0x1bc], 0x101810ac
mov eax, dword [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x15c]
call fcn.10001f00
push eax
push 0x1018108c
push 1
push 0x65
push 0x101810d8
push str.CLightWebsocket::HandleUserWebPage
call fcn.10145f00
add esp, 0x1c
lea ecx, [ebp - 0x12c]
call fcn.10001f00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x15c]
call fcn.10001f50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.10001f50
jmp 0x1010faff
mov byte [ebp - 0x1a7], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.10001f50
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.101506bb
mov esp, ebp
pop ebp
ret