Function at 0x1402a9a40
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov byte [rax + 0x18], r8b
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rcx
or r15, 0xffffffffffffffff
mov qword [rbp - 0x49], r15
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 0x40000000
lea rcx, [rbp - 0x49]
call fcn.140021fb8
test eax, eax
je 0x1402aa015
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x31], rax
lea rcx, [rsi + 0xf0]
lea rdx, [rbp - 0x31]
call fcn.14000f728
mov r11, qword [0x14048abe8]
mov rax, qword [r11 + 0x20]
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
lea rdx, [rbp + 7]
call qword [rax + 0x2f8]
mov rcx, qword [rax]
call fcn.1400beacc
cmp eax, 1
sete r15b
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402a9b09
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r13d, 0x5a
test r15b, r15b
je 0x1402a9b9d
mov rbx, qword [rbp - 0x31]
mov eax, dword [rbx - 0x10]
test eax, eax
je 0x1402a9b9d
js 0x1402a9b9d
lea rdx, [0x140351ef0]
mov rcx, rbx
call fcn.1400bee84
mov r11, rax
test rax, rax
je 0x1402a9b9d
sub r11, rbx
sar r11, 1
cmp r11d, 0xffffffff
jle 0x1402a9b9d
xor r13d, r13d
mov r10d, r11d
movsxd rdx, r11d
xor ecx, ecx
movsxd rdi, dword [rbx - 0x10]
test r11d, r11d
js 0x1402a9b92
lea r9, [rdx + rdx]
lea r8, [rdx + rdx]
cmp r10d, dword [rbx - 0x10]
jg 0x1402a9b92
cmp word [r9 + rbx], 0x2d
jne 0x1402a9b9d
inc r13d
inc rcx
add r8, 2
cmp rcx, rdi
jge 0x1402a9b9d
lea r10d, [r13 + r11]
mov r9, r8
lea rax, [rdx + rcx]
test rax, rax
jns 0x1402a9b64
mov ecx, 0x80070057
call fcn.14000cbb8
int3
mov bl, 1
call fcn.1400046d0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rax + 0x10], 1
jbe 0x1402a9be9
call fcn.14023ddcc
test al, al
jne 0x1402a9be9
xor bl, bl
mov eax, 0xfeff
mov word [rbp + 0x7f], ax
and dword [rbp - 0x29], 0
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x29]
mov r8d, 2
lea rdx, [rbp + 0x7f]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8b, bl
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x49]
call fcn.14001fbc0
mov r8b, bl
lea rdx, [0x14034fb84]
lea rcx, [rbp - 0x49]
call fcn.14001fc74
mov rdi, qword [rsi + 0x398]
sub rdi, qword [rsi + 0x390]
sar rdi, 4
xor r12d, r12d
test edi, edi
jle 0x1402a9e40
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov r8d, r12d
lea rdx, [rbp - 0x41]
lea rcx, [rsi + 0x290]
call fcn.1402ac8b0
nop
mov r8b, bl
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x49]
call fcn.14001fbc0
mov r8b, bl
lea rdx, [0x140351efc]
lea rcx, [rbp - 0x49]
call fcn.14001fc74
mov byte [rsp + 0x20], 0
mov r9d, 1
mov r8d, r12d
lea rdx, [rbp - 9]
lea rcx, [rsi + 0x290]
call fcn.1402ac8b0
nop
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.14000c244
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402a9cb3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, bl
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x49]
call fcn.14001fbc0
mov r8b, bl
lea rdx, [0x140351efc]
lea rcx, [rbp - 0x49]
call fcn.14001fc74
mov byte [rsp + 0x20], 0
mov r9d, 2
mov r8d, r12d
lea rdx, [rbp + 0x17]
lea rcx, [rsi + 0x290]
call fcn.1402ac8b0
nop
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.14000c244
nop
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402a9d21
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, bl
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x49]
call fcn.14001fbc0
mov r8b, bl
lea rdx, [0x140351efc]
lea rcx, [rbp - 0x49]
call fcn.14001fc74
test r15b, r15b
je 0x1402a9da4
mov byte [rsp + 0x20], 0
mov r9d, 3
mov r8d, r12d
lea rdx, [rbp - 1]
lea rcx, [rsi + 0x290]
call fcn.1402ac8b0
nop
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.14000c244
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402a9d94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, bl
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x49]
call fcn.14001fbc0
mov r8b, bl
lea rdx, [0x14034fb84]
lea rcx, [rbp - 0x49]
call fcn.14001fc74
nop
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402a9dd7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc r12d
cmp r12d, edi
jl 0x1402a9c29
test edi, edi
jle 0x1402a9e40
mov r8d, r13d
mov dl, 0x2d
lea rcx, [rbp - 0x19]
call fcn.140014628
nop
mov r8b, bl
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x49]
call fcn.14001fbc0
mov r8b, bl
lea rdx, [0x14034fb84]
lea rcx, [rbp - 0x49]
call fcn.14001fc74
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
or r15, 0xffffffffffffffff
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402a9e44
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1402a9e44
or r15, 0xffffffffffffffff
lea rcx, [rsi + 0x3d8]
lea rdx, [rbp - 0x11]
call fcn.14029dca4
nop
cmp byte [rbp + 0x77], 0
jne 0x1402a9eab
mov rax, qword [rbp - 0x11]
cmp dword [rax - 0x10], 0
je 0x1402a9eab
mov r13b, 1
lea rdx, [0x140330de8]
lea rcx, [rbp - 0x21]
call fcn.14000cb18
nop
xor r8d, r8d
lea rdx, [rbp - 0x21]
mov rcx, rsi
call fcn.1402a7df0
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402a9eae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1402a9eae
xor r13b, r13b
mov rdi, qword [rsi + 0x250]
sub rdi, qword [rsi + 0x248]
sar rdi, 4
xor r12d, r12d
test edi, edi
jle 0x1402a9fa6
mov byte [rsp + 0x20], 0
xor r9d, r9d
mov r8d, r12d
lea rdx, [rbp - 0x39]
lea rcx, [rsi + 0x148]
call fcn.1402ac8b0
nop
mov r8b, bl
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x49]
call fcn.14001fbc0
mov r8b, bl
lea rdx, [0x140351efc]
lea rcx, [rbp - 0x49]
call fcn.14001fc74
mov byte [rsp + 0x20], 0
mov r9d, 1
mov r8d, r12d
lea rdx, [rbp + 0xf]
lea rcx, [rsi + 0x148]
call fcn.1402ac8b0
nop
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.14000c244
nop
mov rdx, qword [rbp + 0xf]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402a9f56
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, bl
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x49]
call fcn.14001fbc0
mov r8b, bl
lea rdx, [0x14034fb84]
lea rcx, [rbp - 0x49]
call fcn.14001fc74
nop
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402a9f9a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc r12d
cmp r12d, edi
jl 0x1402a9ecb
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp rbx, r15
je 0x1402a9fc5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x49], r15
test r13b, r13b
je 0x1402a9fd3
mov rcx, rsi
call fcn.1402a8350
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402a9ff4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x1402aa015
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x49]
cmp rcx, r15
je 0x1402aa024
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret