Function at 0x14000b110
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rcx
mov rdx, rcx
lea rcx, [0x1400cdd08]
call fcn.14000b790
mov rdi, 0xffffffffffffffff
xor ebx, ebx
cmp qword [0x140122d50], rdi
jne 0x14000b169
lea rcx, str._WUCSProxy__hFile_handle_is_invalid_n
call fcn.14000b790
jmp 0x14000b19f
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
add byte [rdi], cl
mov bh, 0x44
and al, 0x48
cmp dword [0x140122f68], eax
movzx edx, word [rsp + 0x4a]
movzx ecx, word [rsp + 0x4e]
jne 0x14000b19f
cmp dword [0x140122f6c], edx
jne 0x14000b19f
cmp dword [0x140122f74], ecx
je 0x14000b2ac
lea rcx, str._WUCSProxy__LogFile_is_invalid_n
call fcn.14000b790
call fcn.14000b420
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r15d, word [rsp + 0x4e]
lea r9, str.C:Program_FilesHuaweiwucswucsLogsproxyucs_proxy_service__04lu__02lu__02lu.log
movzx r14d, word [rsp + 0x4a]
lea rcx, [0x140122d60]
movzx ebp, word [rsp + 0x48]
mov r8, rdi
mov dword [rsp + 0x30], r15d
mov edx, 0x104
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebp
call fcn.14000b720
test eax, eax
js 0x14000b3d6
lea rcx, str._WUCSProxy__close_handle_n
mov dword [0x140122f68], ebp
mov dword [0x140122f6c], r14d
mov dword [0x140122f74], r15d
call fcn.14000b790
cmp qword [0x140122d50], rdi
je 0x14000b246
lea rcx, str._WUCSProxy__close_handle_execute_n
call fcn.14000b790
mov rcx, qword [0x140122d50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140122d50], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], pe_nt_image_headers64
lea rcx, [0x140122d60]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140122d50], rax
cmp rax, rdi
jne 0x14000b2a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._WUCSProxy__open_log_file_failed__ErrorCode:_lu_n
call fcn.14000b790
lea rcx, str._WUCSProxy__create_log_file_failed__ErrorCode:_lx_n
jmp 0x14000b3dd
lea rcx, str._WUCSProxy__create_log_file_OK_n
call fcn.14000b790
mov rcx, qword [0x140122d50]
lea rdx, [0x140122d58]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
invalid
test eax, eax
jne 0x14000b2e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._WUCSProxy__get_log_file_size_failed__ErrorCode:_lu_n
call fcn.14000b790
lea rcx, str._WUCSProxy__get_log_file_size_failed__ErrorCode:_lx_n
jmp 0x14000b370
mov eax, dword [0x140120128]
xor r8d, r8d
cmp qword [0x140122d58], rax
mov rdx, rbx
mov rcx, qword [0x140122d50]
jg 0x14000b32b
lea r9d, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14000b38a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._WUCSProxy__set_file_pointer_to_end_failed__ErrorCode:_lu_n
call fcn.14000b790
lea rcx, str._WUCSProxy__set_file_pointer_to_end_failed__ErrorCode:_lx_n
jmp 0x14000b370
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14000b341
lea rbx, str._WUCSProxy__set_file_pointer_to_begin_failed__ErrorCode:_lu_n
jmp 0x14000b359
mov rcx, qword [0x140122d50]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14000b383
lea rbx, str._WUCSProxy__set_end_of_file_failed__ErrorCode:_lu_n
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14000b790
lea rcx, str._WUCSProxy__clear_log_file_failed___lx_n
mov edx, 0x2330000a
call fcn.14000b790
lea rcx, str._WUCSProxy__check_and_init_file_failed__ErrorCode:_lx_n
jmp 0x14000b3ee
mov qword [0x140122d58], rbx
mov dword [rsp + 0x40], ebx
nop
inc rdi
cmp byte [rsi + rdi], bl
jne 0x14000b390
mov rcx, qword [0x140122d50]
lea r9, [rsp + 0x40]
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000b3f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._WUCSProxy__write_log_to_file_failed__ErrorCode:_lu_n
call fcn.14000b790
lea rcx, str._WUCSProxy__write_log_buffer_failed__ErrorCode:_lx_n
jmp 0x14000b3ee
lea rcx, str._WUCSProxy__get_log_file_name_failed__ErrorCode:_lx_n
mov edx, 0x2330000a
call fcn.14000b790
lea rcx, str._WUCSProxy__open_log_file_failed__ErrorCode:_lx_n
mov edx, 0x2330000a
call fcn.14000b790
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a0360
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret