Function at 0x1800926f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14d, r9d
mov r15, r8
mov rdi, rdx
mov rsi, qword [rbp + 0x60]
mov dword [rsi], 0
test r8, r8
je 0x180092859
test r9d, r9d
je 0x180092859
cmp qword [rdx + 0x10], 0
jne 0x180092882
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
call fcn.1802a90c0
mov r15d, dword [rax]
call fcn.180174410
test al, al
je 0x180092859
lea rdx, [0x180488a90]
mov ecx, 0x2000
call fcn.180299938
mov rsi, rax
lea rdx, [0x180488a90]
mov ecx, 0x2000
call fcn.180299938
mov rbx, rax
test rsi, rsi
je 0x18009284c
test rax, rax
je 0x180092844
xor edx, edx
mov r8d, 0x2000
mov rcx, rsi
call fcn.18029c350
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r14d
lea rax, [0x180377a00]
mov qword [rsp + 0x30], rax
lea rax, str.RC::RCWordLibFileUtil::SaveToFile
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x15d
lea r9, str.e:zhanlue2345inputprojectlibpinyindata_src_rcwordlibfileutil.cpp
lea r8, str._s__d___s:__s_LastError_d_errno_d
mov edx, 0x1000
mov rcx, rsi
call fcn.180034d20
xor edx, edx
mov r8d, 0x2000
mov rcx, rbx
call fcn.18029c350
cmp qword [rdi + 0x18], 8
jb 0x18009281b
mov rdi, qword [rdi]
mov r9, rdi
mov r8, rsi
mov edx, 0x1000
mov rcx, rbx
call fcn.180034d20
mov r8, rbx
lea rdx, [0x180377970]
lea rcx, str.ResErr
call fcn.180174430
mov rcx, rsi
call fcn.180299904
test rbx, rbx
je 0x180092859
mov rcx, rbx
call fcn.180299904
xor al, al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1802994c0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x30], 0
mov ecx, 8
call fcn.1802994e4
mov qword [rbp - 0x28], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rbp - 0x30], rax
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 0x40000000
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.18016bb70
test al, al
jne 0x1800929de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
call fcn.1802a90c0
mov r15d, dword [rax]
call fcn.180174410
test al, al
je 0x1800929d5
lea rdx, [0x180488a90]
mov ecx, 0x2000
call fcn.180299938
mov rsi, rax
lea rdx, [0x180488a90]
mov ecx, 0x2000
call fcn.180299938
mov rbx, rax
test rsi, rsi
je 0x1800929c8
test rax, rax
je 0x1800929c0
xor edx, edx
mov r8d, 0x2000
mov rcx, rsi
call fcn.18029c350
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r14d
lea rax, [0x180377b58]
mov qword [rsp + 0x30], rax
lea rax, str.RC::RCWordLibFileUtil::SaveToFile
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x166
lea r9, str.e:zhanlue2345inputprojectlibpinyindata_src_rcwordlibfileutil.cpp
lea r8, str._s__d___s:__s_LastError_d_errno_d
mov edx, 0x1000
mov rcx, rsi
call fcn.180034d20
xor edx, edx
mov r8d, 0x2000
mov rcx, rbx
call fcn.18029c350
cmp qword [rdi + 0x18], 8
jb 0x180092997
mov rdi, qword [rdi]
mov r9, rdi
mov r8, rsi
mov edx, 0x1000
mov rcx, rbx
call fcn.180034d20
mov r8, rbx
lea rdx, [0x180377970]
lea rcx, str.ResErr
call fcn.180174430
mov rcx, rsi
call fcn.180299904
test rbx, rbx
je 0x1800929d5
mov rcx, rbx
call fcn.180299904
mov rbx, qword [rbp - 0x30]
jmp 0x180092ec4
lea rcx, [rbp - 0x30]
call fcn.1801e1cb0
test al, al
jne 0x180092b05
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
call fcn.1802a90c0
mov r15d, dword [rax]
call fcn.180174410
test al, al
je 0x180092afc
lea rdx, [0x180488a90]
mov ecx, 0x2000
call fcn.180299938
mov rsi, rax
lea rdx, [0x180488a90]
mov ecx, 0x2000
call fcn.180299938
mov rbx, rax
test rsi, rsi
je 0x180092aef
test rax, rax
je 0x180092ae7
xor edx, edx
mov r8d, 0x2000
mov rcx, rsi
call fcn.18029c350
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r14d
lea rax, [0x180377a98]
mov qword [rsp + 0x30], rax
lea rax, str.RC::RCWordLibFileUtil::SaveToFile
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x16e
lea r9, str.e:zhanlue2345inputprojectlibpinyindata_src_rcwordlibfileutil.cpp
lea r8, str._s__d___s:__s_LastError_d_errno_d
mov edx, 0x1000
mov rcx, rsi
call fcn.180034d20
xor edx, edx
mov r8d, 0x2000
mov rcx, rbx
call fcn.18029c350
cmp qword [rdi + 0x18], 8
jb 0x180092abe
mov rdi, qword [rdi]
mov r9, rdi
mov r8, rsi
mov edx, 0x1000
mov rcx, rbx
call fcn.180034d20
mov r8, rbx
lea rdx, [0x180377970]
lea rcx, str.ResErr
call fcn.180174430
mov rcx, rsi
call fcn.180299904
test rbx, rbx
je 0x180092afc
mov rcx, rbx
call fcn.180299904
mov rbx, qword [rbp - 0x30]
jmp 0x180092ea5
mov dword [rbp - 0x18], 0
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x180092d8c
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180092d8c
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x18]
mov r8d, r14d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180092d8c
cmp r14d, dword [rbp - 0x18]
jne 0x180092d8c
mov qword [rbp - 0x28], 0
lea r9, [rbp - 0x28]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [rbp - 0x30]
call fcn.1801e1c20
test al, al
jne 0x180092c70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
call fcn.1802a90c0
mov r12d, dword [rax]
call fcn.180174410
test al, al
je 0x180092afc
lea rdx, [0x180488a90]
mov ecx, 0x2000
call fcn.180299938
mov rsi, rax
lea rdx, [0x180488a90]
mov ecx, 0x2000
call fcn.180299938
mov rbx, rax
test rsi, rsi
je 0x180092aef
test rax, rax
je 0x180092ae7
xor edx, edx
mov r8d, 0x2000
mov rcx, rsi
call fcn.18029c350
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r15d
lea rax, [0x180377c00]
mov qword [rsp + 0x30], rax
lea rax, str.RC::RCWordLibFileUtil::SaveToFile
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x189
lea r9, str.e:zhanlue2345inputprojectlibpinyindata_src_rcwordlibfileutil.cpp
lea r8, str._s__d___s:__s_LastError_d_errno_d
mov edx, 0x1000
mov rcx, rsi
call fcn.180034d20
xor edx, edx
mov r8d, 0x2000
mov rcx, rbx
call fcn.18029c350
cmp qword [rdi + 0x18], 8
jb 0x180092c43
mov rdi, qword [rdi]
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x18]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
mov r9, rdi
mov r8, rsi
mov edx, 0x1000
mov rcx, rbx
call fcn.180034d20
jmp 0x180092ad1
mov r15, qword [rbp - 0x28]
mov rdx, r15
lea rcx, [rbp - 0x30]
call fcn.1801e1d60
test al, al
jne 0x180092d61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
call fcn.1802a90c0
mov r13d, dword [rax]
call fcn.180174410
test al, al
je 0x180092afc
lea rdx, [0x180488a90]
mov ecx, 0x2000
call fcn.180299938
mov rsi, rax
lea rdx, [0x180488a90]
mov ecx, 0x2000
call fcn.180299938
mov rbx, rax
test rsi, rsi
je 0x180092aef
test rax, rax
je 0x180092ae7
xor edx, edx
mov r8d, 0x2000
mov rcx, rsi
call fcn.18029c350
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r12d
lea rax, [0x180377c70]
mov qword [rsp + 0x30], rax
lea rax, str.RC::RCWordLibFileUtil::SaveToFile
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x198
lea r9, str.e:zhanlue2345inputprojectlibpinyindata_src_rcwordlibfileutil.cpp
lea r8, str._s__d___s:__s_LastError_d_errno_d
mov edx, 0x1000
mov rcx, rsi
call fcn.180034d20
xor edx, edx
mov r8d, 0x2000
mov rcx, rbx
call fcn.18029c350
cmp qword [rdi + 0x18], 8
jb 0x180092d57
mov rdi, qword [rdi]
mov qword [rsp + 0x30], r15
jmp 0x180092c4c
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x180092d84
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180092d84
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180092d84
mov qword [rbx], 0xffffffffffffffff
mov dil, 1
jmp 0x180092ec7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
call fcn.1802a90c0
mov r13d, dword [rax]
call fcn.180174410
test al, al
je 0x180092ea5
lea rdx, [0x180488a90]
mov ecx, 0x2000
call fcn.180299938
mov r15, rax
lea rdx, [0x180488a90]
mov ecx, 0x2000
call fcn.180299938
mov rsi, rax
test r15, r15
je 0x180092e98
test rax, rax
je 0x180092e90
xor edx, edx
mov r8d, 0x2000
mov rcx, r15
call fcn.18029c350
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r12d
lea rax, [0x180377ac0]
mov qword [rsp + 0x30], rax
lea rax, str.RC::RCWordLibFileUtil::SaveToFile
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x179
lea r9, str.e:zhanlue2345inputprojectlibpinyindata_src_rcwordlibfileutil.cpp
lea r8, str._s__d___s:__s_LastError_d_errno_d
mov edx, 0x1000
mov rcx, r15
call fcn.180034d20
xor edx, edx
mov r8d, 0x2000
mov rcx, rsi
call fcn.18029c350
cmp qword [rdi + 0x18], 8
jb 0x180092e5b
mov rdi, qword [rdi]
mov eax, dword [rbp - 0x18]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r14d
mov r9, rdi
mov r8, r15
mov edx, 0x1000
mov rcx, rsi
call fcn.180034d20
mov r8, rsi
lea rdx, [0x180377970]
lea rcx, str.ResErr
call fcn.180174430
mov rcx, r15
call fcn.180299904
test rsi, rsi
je 0x180092ea5
mov rcx, rsi
call fcn.180299904
test rbx, rbx
je 0x180092ec4
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180092ec4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180092ec4
mov qword [rbx], 0xffffffffffffffff
xor dil, dil
test rbx, rbx
je 0x180092efb
mov rcx, qword [rbx]
lea r8, [rcx - 1]
cmp r8, 0xfffffffffffffffd
ja 0x180092ee6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
mov edx, 8
mov rcx, rbx
call fcn.180299904
mov qword [rbp - 0x30], 0
movzx eax, dil
jmp 0x18009285b