Function at 0x140067240
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf8
mov r14, r8
mov r12, rdx
mov rsi, rcx
mov rax, qword [r8]
cmp dword [rax - 0x10], 0
jne 0x140067281
mov rcx, r8
call fcn.1400333a0
call fcn.140008400
mov rcx, rax
mov rax, qword [r14]
mov rdi, 0xffffffffffffffff
cmp dword [rax - 0x10], 0
jg 0x1400672a1
mov rdx, qword [rcx]
call qword [rdx + 0x30]
jmp 0x1400672d6
mov eax, dword [rax - 8]
mov rdx, qword [r14]
cmp eax, edi
jne 0x1400672c9
mov rax, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, edi
mov r8d, dword [rdx - 0x10]
call qword [rax + 0x28]
jmp 0x1400672d6
cmp rcx, qword [rdx - 0x18]
jne 0x1400672ab
lock inc dword [rdx - 8]
mov rax, qword [r14]
mov qword [rbp + 0x67], rax
call fcn.140008400
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, edi
mov r8d, edi
lea rdx, str..tmp
mov rcx, rax
call qword [r10 + 0x28]
mov rbx, rax
mov qword [rbp - 0x19], rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x67]
call fcn.140033880
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140067346
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14006733c
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140067346
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, qword [r12]
call qword [rax + 0x28]
mov rsi, rax
mov dword [rbp + 0xf], 1
mov qword [rbp + 7], rax
test rax, rax
jne 0x1400673e3
mov rdx, qword [rbp + 0x67]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140067396
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14006738c
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140067396
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400673c6
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400673bc
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400673c6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14006764d
mov eax, dword [rdx + 0x10]
jmp 0x140067634
call fcn.140008400
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, edi
mov r8d, edi
lea rdx, [0x140129d58]
mov rcx, rax
call qword [r10 + 0x28]
mov qword [rbp - 0x59], rax
lea r13, vtable.JRPropertyMap.0
mov qword [rbp - 0x51], r13
xor r15d, r15d
mov qword [rbp - 0x49], r15
mov byte [rbp - 0x41], 1
xor edx, edx
lea rcx, [rbp - 0x59]
call fcn.140045f20
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140045dc0
nop
lea rdx, [rbp - 0x59]
lea rcx, [rsp + 0x40]
call fcn.1400333a0
lea rdx, [rbp - 0x51]
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x80]
movzx eax, byte [rbp - 0x41]
mov byte [rsp + 0x58], al
mov qword [rbp - 0x79], 3
mov qword [rbp - 0x71], 3
mov byte [rbp - 0x69], r15b
mov qword [rbp - 0x61], rdi
mov qword [rbp - 0x51], r13
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x14006749d
mov rax, qword [rcx]
lea edx, [r15 + 1]
call qword [rax]
mov qword [rbp - 0x49], r15
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400674cd
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400674c3
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400674cd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 0x39]
call fcn.1400080e0
nop
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x29], r15
mov byte [rbp - 0x21], 1
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140045f20
nop
lea rdx, [rbp - 0x39]
lea rcx, [rsp + 0x40]
call fcn.1400333a0
lea rdx, [rbp - 0x31]
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x80]
movzx eax, byte [rbp - 0x21]
mov byte [rsp + 0x58], al
mov qword [rbp - 0x79], 3
mov dword [rbp - 0x71], r15d
lea rcx, [rsp + 0x40]
call fcn.14004fe20
movzx ebx, al
mov qword [rbp - 0x31], r13
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140067552
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov qword [rbp - 0x29], r15
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140067582
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140067578
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140067582
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test bl, bl
jne 0x140067654
cmp byte [rbp - 0x6a], bl
je 0x1400675a3
mov rcx, qword [rbp - 0x61]
cmp rcx, 0xffffffffffffffff
je 0x1400675a3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x61], rdi
mov byte [rbp - 0x6a], 0
lea rcx, [rsp + 0x40]
call fcn.140045eb0
nop
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
nop
mov rdx, qword [rbp + 0x67]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400675f0
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400675e6
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400675f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140067620
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140067616
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140067620
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14006764d
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140067643
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14006764d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor al, al
jmp 0x1400677f6
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
mov qword [rbp - 0x11], r15
mov byte [rsp + 0x20], 1
xor r9d, r9d
mov r8b, 1
mov edx, 0x4000
lea rcx, [rbp - 0x11]
call fcn.14004c1f0
nop
mov r15, qword [rbp - 1]
mov r13, qword [rbp - 9]
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x140067695
test r15, r15
jle 0x140067695
mov rdx, rbx
jmp 0x140067697
xor edx, edx
mov rax, qword [rsi]
mov r8d, r13d
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test eax, eax
jle 0x1400676db
test rbx, rbx
je 0x1400676b6
test r15, r15
jle 0x1400676b6
mov rdx, rbx
jmp 0x1400676b8
xor edx, edx
mov dword [rbp + 0x7f], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x7f]
mov r8d, eax
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140067686
mov qword [rbp + 7], 0
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
cmp byte [rbp - 0x6a], 0
je 0x14006770a
mov rcx, qword [rbp - 0x61]
cmp rcx, 0xffffffffffffffff
je 0x14006770a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x61], rdi
mov byte [rbp - 0x6a], 0
xor r8d, r8d
mov rdx, qword [rbp + 0x67]
mov rcx, qword [r14]
call fcn.140043330
movzx esi, al
test al, al
jne 0x14006772e
lea rcx, [rbp + 0x67]
call fcn.140042e00
nop
test rbx, rbx
je 0x14006773c
mov rcx, rbx
call fcn.1400df720
nop
cmp byte [rbp - 0x6a], 0
je 0x140067756
mov rcx, qword [rbp - 0x61]
cmp rcx, 0xffffffffffffffff
je 0x140067756
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x61], rdi
mov byte [rbp - 0x6a], 0
lea rcx, [rsp + 0x40]
call fcn.140045eb0
nop
mov rdx, qword [rbp + 0x67]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140067795
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14006778b
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140067795
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400677c5
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400677bb
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400677c5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400677f2
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400677e8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400677f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
movzx eax, sil
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret