Function at 0x1400c97d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rbp - 8], rax
mov esi, r9d
mov dword [rsp + 0x40], r9d
mov r15, r8
mov qword [rsp + 0x48], r8
mov rbx, rdx
mov rdi, rcx
call fcn.1400c9130
test al, al
jne 0x1400c984c
mov qword [rsp + 0x28], rdi
lea rax, str.CreateDir_failed_for__s
mov qword [rsp + 0x20], rax
mov r9d, 0x86
lea r8, str.XMLUpdater::v2::NUtils::StoreBufferInFile
lea rdx, str.E:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterFileUtils.cpp
mov ecx, 1
call fcn.1400bfe30
xor al, al
jmp 0x1400c9e36
lea rax, [0x1402f713c]
test rbx, rbx
cmove rbx, rax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x38], rax
mov r14d, 7
mov qword [rbp - 0x30], r14
mov word [rbp - 0x48], ax
mov r12, 0xffffffffffffffff
mov r8, r12
nop dword [rax]
inc r8
cmp word [rbx + r8*2], ax
jne 0x1400c9880
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.140025e70
nop
test rdi, rdi
jne 0x1400c98b3
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rbp - 0x60], xmm1
xor ebx, ebx
jmp 0x1400c9ad4
xor ebx, ebx
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], r14
mov word [rbp - 0x28], bx
mov r8, r12
nop dword [rax + rax]
inc r8
cmp word [rdi + r8*2], bx
jne 0x1400c98d0
mov rdx, rdi
lea rcx, [rbp - 0x28]
call fcn.140025e70
nop
mov rdx, qword [rbp - 0x18]
test rdx, rdx
jne 0x1400c9946
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rbp - 0x60], xmm1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400c9941
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c993b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9e62
call fcn.140269844
nop
jmp 0x1400c9ad4
lea rax, [rbp - 0x28]
mov rsi, qword [rbp - 0x28]
mov r12, qword [rbp - 0x10]
cmp r12, 8
cmovae rax, rsi
lea r13, [rdx + rdx]
mov qword [rbp - 0x80], r13
movabs rcx, 0x7ffffffffffffffe
cmp word [rax + r13 - 2], 0x5c
jne 0x1400c9b62
mov rax, rcx
sub rax, rdx
mov r15, qword [rbp - 0x38]
cmp rax, r15
jb 0x1400c9e5c
lea rax, [rbp - 0x28]
cmp r12, 8
cmovae rax, rsi
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x48]
mov rbx, qword [rbp - 0x48]
mov r13, qword [rbp - 0x30]
cmp r13, 8
cmovae rax, rbx
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
lea rax, [rdx + r15]
mov qword [rsp + 0x78], rax
lea rdi, [rbp - 0x70]
cmp rax, 7
jbe 0x1400c9a1a
mov r14, rax
or r14, 7
cmp r14, rcx
jbe 0x1400c99e7
mov r14, rcx
jmp 0x1400c99f3
mov eax, 0xa
cmp r14, rax
cmovb r14, rax
mov rdx, r14
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140026230
mov rdi, rax
mov qword [rbp - 0x70], rax
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], r14
mov r14, qword [rbp - 0x80]
mov r8, r14
mov rdx, qword [rbp - 0x78]
mov rcx, rdi
call fcn.14026bb50
lea rcx, [rdi + r14]
lea r8, [r15 + r15]
mov rdx, qword [rsp + 0x50]
call fcn.14026bb50
mov rax, qword [rsp + 0x78]
xor ecx, ecx
mov word [rdi + rax*2], cx
cmp r12, 8
jb 0x1400c9a8e
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400c9a85
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9e62
mov rcx, rsi
call fcn.140269844
nop
cmp r13, 8
jb 0x1400c9ac9
lea rdx, [r13*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400c9ac1
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9e56
mov rcx, rbx
call fcn.140269844
xor ebx, ebx
mov r15, qword [rsp + 0x48]
mov esi, dword [rsp + 0x40]
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400c9d80
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
lea rax, str.CreateFile_failed_for__s:__d
mov qword [rsp + 0x20], rax
mov r9d, 0x8e
lea r8, str.XMLUpdater::v2::NUtils::StoreBufferInFile
lea rdx, str.E:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterFileUtils.cpp
lea ecx, [rbx + 2]
call fcn.1400bfe30
xor dil, dil
jmp 0x1400c9df6
cmp rdx, rcx
je 0x1400c9e68
lea rax, [rbp - 0x28]
cmp r12, 8
cmovae rax, rsi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
lea r15, [rdx + 1]
mov rbx, r14
lea rdi, [rsp + 0x58]
cmp r15, rbx
jbe 0x1400c9be2
mov rbx, r15
or rbx, 7
cmp rbx, rcx
jbe 0x1400c9bad
mov rbx, rcx
jmp 0x1400c9bb9
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
mov rdx, rbx
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140026230
mov rdi, rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], rbx
mov r8, r13
mov rdx, rax
mov rcx, rdi
call fcn.14026bb50
mov eax, 0x5c
mov word [rdi + r13], ax
xor ebx, ebx
mov word [rdi + r15*2], bx
lea r9, [rbp - 0x48]
mov r15, qword [rbp - 0x48]
mov r13, qword [rbp - 0x30]
cmp r13, 8
cmovae r9, r15
mov rcx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rax, r8
sub rax, rcx
mov rdx, qword [rbp - 0x38]
cmp rdx, rax
ja 0x1400c9c6f
lea rdi, [rcx + rdx]
mov qword [rsp + 0x68], rdi
lea rbx, [rsp + 0x58]
cmp r8, 8
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
mov rdx, r9
call fcn.14026bb50
xor ecx, ecx
mov word [rbx + rdi*2], cx
lea rax, [rsp + 0x58]
xor ebx, ebx
jmp 0x1400c9c89
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rsp + 0x58]
call fcn.1400325d0
mov r13, qword [rbp - 0x30]
mov r15, qword [rbp - 0x48]
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r14
mov word [rax], bx
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400c9cf1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c9cec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9e6e
call fcn.140269844
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], r14
mov word [rsp + 0x58], bx
cmp r12, 8
jb 0x1400c9d3c
lea rdx, [r12*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400c9d33
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9e74
mov rcx, rsi
call fcn.140269844
nop
cmp r13, 8
jb 0x1400c9acb
lea rdx, [r13*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x1400c9d73
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9e7a
mov rcx, r15
call fcn.140269844
jmp 0x1400c9acb
mov qword [rsp + 0x50], rbx
xor ecx, ecx
mov dword [rbp - 0x50], ecx
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x50]
mov r8d, esi
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400c9db0
cmp dword [rbp - 0x50], esi
jne 0x1400c9db0
mov dil, 1
jmp 0x1400c9de7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, str.WriteFile_failed:__d
mov qword [rsp + 0x20], rax
mov r9d, 0x96
lea r8, str.XMLUpdater::v2::NUtils::StoreBufferInFile
lea rdx, str.E:BT42dac55d_4355_4669_9ab8_31cc00ddc957WebAdvisor_XmlUpdater_srcXmlUpdaterFileUtils.cpp
mov ecx, 1
call fcn.1400bfe30
xor dil, dil
test rbx, rbx
je 0x1400c9df6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x1400c9e32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c9e2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c9e56
call fcn.140269844
movzx eax, dil
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140269300
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140277ff8
nop
call fcn.1400255b0
nop
call fcn.140277ff8
nop
call fcn.1400255b0
int3
call fcn.140277ff8
nop
call fcn.140277ff8
nop
call fcn.140277ff8
int3