Function at 0x140062740
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 - 8]
sub rsp, 0x108
mov r15, r8
mov r13, rdx
mov rsi, rcx
mov rax, qword [r8]
cmp dword [rax - 0x10], 0
jne 0x140062781
mov rcx, r8
call fcn.140037020
xor r14d, r14d
cmp dword [0x14021c658], 0xb23a8c33
je 0x1400627bc
mov ecx, 0x6c0
call fcn.140111d34
mov qword [rbp + 0x68], rax
test rax, rax
je 0x1400627b0
mov rcx, rax
call fcn.140036570
mov rcx, rax
jmp 0x1400627b3
mov rcx, r14
mov qword [0x140229e08], rcx
jmp 0x1400627c3
mov rcx, qword [0x140229e08]
mov rax, qword [r15]
mov rdi, 0xffffffffffffffff
cmp dword [rax - 0x10], 0
jg 0x1400627db
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x140062810
mov eax, dword [rax - 8]
mov rdx, qword [r15]
cmp eax, edi
jne 0x140062803
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 0x140062810
cmp rcx, qword [rdx - 0x18]
jne 0x1400627e5
lock inc dword [rdx - 8]
mov rax, qword [r15]
mov qword [rbp + 0x50], rax
cmp dword [0x14021c658], 0xb23a8c33
je 0x14006284c
mov ecx, 0x6c0
call fcn.140111d34
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140062840
mov rcx, rax
call fcn.140036570
mov rcx, rax
jmp 0x140062843
mov rcx, r14
mov qword [0x140229e08], rcx
jmp 0x140062853
mov rcx, qword [0x140229e08]
mov rax, qword [rcx]
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
call qword [rax + 0x28]
mov rbx, rax
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x50]
call fcn.140037780
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400628b6
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400628ac
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400628b6
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 [r13]
call qword [rax + 0x28]
mov rsi, rax
mov dword [rbp - 0x18], 1
mov qword [rbp - 0x20], rax
test rax, rax
jne 0x140062953
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140062906
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x1400628fc
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140062906
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140062936
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14006292c
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140062936
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140062bcc
mov eax, dword [rdx + 0x10]
jmp 0x140062bb3
lea rdx, [0x1401acff0]
lea rcx, [rbp - 0x78]
call fcn.14000a4d0
nop
lea r12, vtable.JRPropertyMap.0
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], r14
mov byte [rbp - 0x60], 1
xor edx, edx
lea rcx, [rbp - 0x78]
call fcn.14004d810
nop
lea rax, [rsp + 0x40]
mov qword [rbp - 0x10], rax
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14000a4d0
nop
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r14
mov byte [rsp + 0x58], 1
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14004d810
nop
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x40]
call fcn.140037020
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x80]
movzx eax, byte [rbp - 0x60]
mov byte [rsp + 0x58], al
mov qword [rsp + 0x60], 3
mov qword [rsp + 0x68], 3
mov byte [rsp + 0x70], 0
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x70], r12
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140062a16
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbp - 0x68], r14
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140062a46
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140062a3c
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140062a46
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x58]
call fcn.14000a560
nop
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r14
mov byte [rbp - 0x40], 1
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.14004d810
nop
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x40]
call fcn.140037020
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x48]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x80]
movzx eax, byte [rbp - 0x40]
mov byte [rsp + 0x58], al
mov qword [rsp + 0x60], 3
mov dword [rsp + 0x68], r14d
lea rcx, [rsp + 0x40]
call fcn.140056b10
movzx ebx, al
mov qword [rbp - 0x50], r12
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140062acd
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov qword [rbp - 0x48], r14
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140062afd
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140062af3
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140062afd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
test bl, bl
jne 0x140062bd3
cmp byte [rsp + 0x6f], bl
je 0x140062b21
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140062b21
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], rdi
mov byte [rsp + 0x6f], 0
lea rcx, [rsp + 0x40]
call fcn.14004d7a0
nop
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
nop
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140062b6f
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140062b65
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140062b6f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140062b9f
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140062b95
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140062b9f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140062bcc
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140062bc2
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140062bcc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor al, al
jmp 0x140062d7b
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x38], r14
mov byte [rsp + 0x20], 1
xor r9d, r9d
mov r8b, 1
mov edx, 0x4000
lea rcx, [rbp - 0x38]
call fcn.1400561b0
nop
mov r14, qword [rbp - 0x28]
mov r12, qword [rbp - 0x30]
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x140062c14
test r14, r14
jle 0x140062c14
mov rdx, rbx
jmp 0x140062c16
xor edx, edx
mov rax, qword [rsi]
mov r8d, r12d
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test eax, eax
jle 0x140062c5b
test rbx, rbx
je 0x140062c35
test r14, r14
jle 0x140062c35
mov rdx, rbx
jmp 0x140062c37
xor edx, edx
mov dword [rbp + 0x68], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x68]
mov r8d, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140062c05
mov qword [rbp - 0x20], 0
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
cmp byte [rsp + 0x6f], 0
je 0x140062c8d
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140062c8d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], rdi
mov byte [rsp + 0x6f], 0
mov rdx, qword [rbp + 0x50]
mov rcx, qword [r15]
call fcn.1400429a0
movzx esi, al
test al, al
jne 0x140062caf
lea rcx, [rbp + 0x50]
call fcn.140042440
nop
test rbx, rbx
je 0x140062cbd
mov rcx, rbx
call fcn.140017d60
nop
cmp byte [rsp + 0x6f], 0
je 0x140062cda
mov rcx, qword [rsp + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140062cda
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], rdi
mov byte [rsp + 0x6f], 0
lea rcx, [rsp + 0x40]
call fcn.14004d7a0
nop
mov rdx, qword [rbp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140062d1a
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140062d10
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140062d1a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140062d4a
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140062d40
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140062d4a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140062d77
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140062d6d
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140062d77
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
movzx eax, sil
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret