Function at 0x140114540
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xb8
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rbp + 7], rax
mov rdi, r9
mov rbx, r8
mov r14, rcx
mov rsi, qword [rbp + 0x7f]
test r9, r9
jne 0x1401146bb
mov dword [rbp - 0x49], 1
mov ecx, 0xe8
call fcn.1403982c8
mov qword [rbp - 0x51], rax
mov rcx, rax
call fcn.1401166d0
mov rbx, rax
lea rcx, [rbp - 0x19]
call fcn.140126190
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x1401145b1
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.14010fc80
lea rdx, [0x14051417c]
mov rcx, rax
call fcn.14010ea90
mov rcx, rax
lea rdx, str.C:codeWeChatPinYinwxkb01_mozcipcwin32_ipc.cc
call fcn.14010ea90
mov rcx, rax
lea rdx, [0x14051917c]
call fcn.14010ea90
mov edx, 0x153
mov rcx, rax
call fcn.14010b3a0
mov rcx, rax
lea rdx, [0x140528ca4]
call fcn.14010ea90
mov rbx, rax
call fcn.140126a50
lea r14, [0x1404d34b0]
mov rdx, r14
cmp byte [rax + 0xc], 0
cmovne rdx, qword [str.e_33m]
mov rcx, rbx
call fcn.14010ea90
mov rcx, rax
lea rdx, str.LOG_
call fcn.14010ea90
mov rdx, qword [str.WARNING]
mov rcx, rax
call fcn.14010ea90
mov rcx, rax
lea rdx, [0x140519184]
call fcn.14010ea90
mov rbx, rax
call fcn.140126a50
lea rdx, str.e_0m
cmp byte [rax + 0xc], 0
cmove rdx, r14
mov rcx, rbx
call fcn.14010ea90
mov rcx, rax
lea rdx, [0x14051417c]
call fcn.14010ea90
mov rcx, rax
lea rdx, str.buf_length_is_0
call fcn.14010ea90
mov rbx, rax
mov qword [rbp - 0x41], rax
lea rcx, [rbp - 0x19]
call fcn.14007cfc0
nop
mov rdx, rbx
call fcn.140126770
mov dword [rsi], 6
xor al, al
jmp 0x1401149e7
mov dword [rbp - 0x59], 0
lea rcx, [rbp - 0x39]
call fcn.1401128c0
test al, al
je 0x14011484d
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x59]
mov r8d, edi
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
test ebx, ebx
jne 0x140114882
cmp eax, 0x3e5
je 0x14011485a
mov dword [rbp - 0x49], 2
mov ecx, 0xe8
call fcn.1403982c8
mov qword [rbp - 0x51], rax
mov rcx, rax
call fcn.1401166d0
mov rbx, rax
lea rcx, [rbp - 0x19]
call fcn.140126190
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140114745
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.14010fc80
lea rdx, [0x14051417c]
mov rcx, rax
call fcn.14010ea90
mov rcx, rax
lea rdx, str.C:codeWeChatPinYinwxkb01_mozcipcwin32_ipc.cc
call fcn.14010ea90
mov rcx, rax
lea rdx, [0x14051917c]
call fcn.14010ea90
mov edx, 0x167
mov rcx, rax
call fcn.14010b3a0
mov rcx, rax
lea rdx, [0x140528ca4]
call fcn.14010ea90
mov rbx, rax
call fcn.140126a50
lea r14, [0x1404d34b0]
mov rdx, r14
cmp byte [rax + 0xc], 0
cmovne rdx, qword [str.e_31m]
mov rcx, rbx
call fcn.14010ea90
mov rcx, rax
lea rdx, str.LOG_
call fcn.14010ea90
mov rdx, qword [str.ERROR]
mov rcx, rax
call fcn.14010ea90
mov rcx, rax
lea rdx, [0x140519184]
call fcn.14010ea90
mov rbx, rax
call fcn.140126a50
lea rdx, str.e_0m
cmp byte [rax + 0xc], 0
cmove rdx, r14
mov rcx, rbx
call fcn.14010ea90
mov rcx, rax
lea rdx, [0x14051417c]
call fcn.14010ea90
mov rcx, rax
lea rdx, str.WriteFile___failed:
call fcn.14010ea90
mov edx, r15d
mov rcx, rax
call fcn.14010b1e0
mov rbx, rax
mov qword [rbp - 0x41], rax
lea rcx, [rbp - 0x19]
call fcn.14007cfc0
nop
mov rdx, rbx
call fcn.140126770
mov dword [rsi], 4
xor al, al
jmp 0x1401149e7
mov qword [rsp + 0x28], rsi
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x39]
mov r8d, dword [rbp + 0x77]
xor edx, edx
mov rcx, r14
call fcn.140114210
test al, al
je 0x1401146b4
mov eax, dword [rbp - 0x59]
cmp rax, rdi
je 0x1401149e5
mov dword [rbp - 0x49], 2
mov ecx, 0xe8
call fcn.1403982c8
mov qword [rbp - 0x51], rax
mov rcx, rax
call fcn.1401166d0
mov rbx, rax
lea rcx, [rbp - 0x19]
call fcn.140126190
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x1401148c6
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.14010fc80
lea rdx, [0x14051417c]
mov rcx, rax
call fcn.14010ea90
mov rcx, rax
lea rdx, str.C:codeWeChatPinYinwxkb01_mozcipcwin32_ipc.cc
call fcn.14010ea90
mov rcx, rax
lea rdx, [0x14051917c]
call fcn.14010ea90
mov edx, 0x175
mov rcx, rax
call fcn.14010b3a0
mov rcx, rax
lea rdx, [0x140528ca4]
call fcn.14010ea90
mov rbx, rax
call fcn.140126a50
lea r14, [0x1404d34b0]
mov rdx, r14
cmp byte [rax + 0xc], 0
cmovne rdx, qword [str.e_31m]
mov rcx, rbx
call fcn.14010ea90
mov rcx, rax
lea rdx, str.LOG_
call fcn.14010ea90
mov rdx, qword [str.ERROR]
mov rcx, rax
call fcn.14010ea90
mov rcx, rax
lea rdx, [0x140519184]
call fcn.14010ea90
mov rbx, rax
call fcn.140126a50
lea rdx, str.e_0m
cmp byte [rax + 0xc], 0
cmove rdx, r14
mov rcx, rbx
call fcn.14010ea90
mov rcx, rax
lea rdx, [0x14051417c]
call fcn.14010ea90
mov rcx, rax
lea rdx, str.Data_truncated._buf_length:
call fcn.14010ea90
mov rdx, rdi
mov rcx, rax
call fcn.14010b020
mov rcx, rax
lea rdx, str.__num_bytes_written:
call fcn.14010ea90
mov edx, dword [rbp - 0x59]
mov rcx, rax
call fcn.14010b1e0
mov rbx, rax
mov qword [rbp - 0x41], rax
lea rcx, [rbp - 0x19]
call fcn.14007cfc0
nop
jmp 0x1401146a6
mov al, 1
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140398000
add rsp, 0xb8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret