Function at 0x140038ef0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov r15d, r8d
mov rbx, rdx
mov r14, rcx
xor dil, dil
call fcn.140008400
mov r10, qword [rax]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], dil
mov byte [rsp + 0x20], dil
mov rsi, 0xffffffffffffffff
mov r9d, esi
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call qword [r10 + 0x28]
mov qword [rbp - 0x61], rax
lea rcx, [rbp - 0x61]
call fcn.140041a60
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp + 7]
call fcn.14004a510
mov rcx, rax
call fcn.140040810
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x59]
call fcn.1400080e0
nop
lea rbx, vtable.JRPropertyMap.0
mov qword [rbp - 0x51], rbx
xor r12d, r12d
mov qword [rbp - 0x49], r12
mov byte [rbp - 0x41], 1
xor edx, edx
lea rcx, [rbp - 0x59]
call fcn.140045f20
nop
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140045dc0
nop
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x39]
call fcn.1400333a0
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x31]
mov rax, qword [rbp - 0x31]
call qword [rax + 0x80]
movzx eax, byte [rbp - 0x41]
mov byte [rbp - 0x21], al
mov dword [rbp - 0x19], 2
mov qword [rbp - 0x15], 3
mov dword [rbp - 0xd], r12d
mov byte [rbp - 9], r12b
mov qword [rbp - 1], rsi
mov qword [rbp - 0x51], rbx
lea r13d, [rsi + 2]
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x14003900a
mov rax, qword [rcx]
mov edx, r13d
call qword [rax]
mov qword [rbp - 0x49], r12
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14003903a
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140039030
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003903a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x39]
call fcn.14004fe20
test al, al
je 0x14003915d
cmp r15d, 1
jne 0x1400390ac
mov dword [rbp - 0x65], r12d
mov dword [rbp + 0x17], r13d
mov qword [rbp + 0xf], r12
mov rcx, qword [r14]
call fcn.14005e670
mov r14, rax
test rax, rax
je 0x1400390a7
mov rbx, rax
movzx ecx, byte [rbx]
inc rbx
test cl, cl
jne 0x140039070
sub ebx, r14d
dec ebx
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x65]
mov r8d, ebx
mov rdx, r14
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400390a7
movzx edi, dil
cmp dword [rbp - 0x65], ebx
cmove edi, r13d
jmp 0x14003914f
cmp r15d, 2
je 0x1400390bc
cmp r15d, 5
jne 0x14003915d
mov dword [rbp - 0x69], r12d
mov dword [rbp + 0x27], r13d
mov qword [rbp + 0x1f], r12
mov edx, esi
mov rcx, qword [r14]
call fcn.14005e720
mov r14, rax
test rax, rax
je 0x14003914f
mov rbx, rax
nop dword [rax]
movzx ecx, byte [rbx]
inc rbx
test cl, cl
jne 0x1400390e0
sub ebx, r14d
dec ebx
cmp r15d, 5
jne 0x140039127
mov word [rbp + 0x7f], 0xbbef
mov byte [rbp + 0x81], 0xbf
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x69]
lea r8d, [r15 - 2]
lea rdx, [rbp + 0x7f]
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14003914f
cmp dword [rbp - 0x69], 3
jne 0x14003914f
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x69]
mov r8d, ebx
mov rdx, r14
mov rcx, qword [rbp - 1]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14003914f
movzx edi, dil
cmp dword [rbp - 0x69], ebx
cmove edi, r13d
test r14, r14
je 0x14003915d
mov rcx, r14
call fcn.1400df720
nop
cmp byte [rbp - 0xa], 0
je 0x140039177
mov rcx, qword [rbp - 1]
cmp rcx, 0xffffffffffffffff
je 0x140039177
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 1], rsi
mov byte [rbp - 0xa], 0
lea rcx, [rbp - 0x39]
call fcn.140045eb0
nop
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x1400391b3
mov ecx, dword [rdx + 0x10]
cmp ecx, 0xffffffff
je 0x1400391a9
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x1400391b3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
movzx eax, dil
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret