Function at 0x14004e970
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 0x14004e9b1
mov rcx, r8
call fcn.1400103b0
call fcn.140002000
mov rcx, rax
mov rax, qword [r14]
mov rdi, 0xffffffffffffffff
cmp dword [rax - 0x10], 0
jg 0x14004e9d1
mov rdx, qword [rcx]
call qword [rdx + 0x30]
jmp 0x14004ea06
mov eax, dword [rax - 8]
mov rdx, qword [r14]
cmp eax, edi
jne 0x14004e9f9
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 0x14004ea06
cmp rcx, qword [rdx - 0x18]
jne 0x14004e9db
lock inc dword [rdx - 8]
mov rax, qword [r14]
mov qword [rbp + 0x67], rax
call fcn.140002000
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.140010890
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14004ea76
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004ea6c
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004ea76
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
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 0x14004eb13
mov rdx, qword [rbp + 0x67]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14004eac6
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004eabc
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004eac6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14004eaf6
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004eaec
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004eaf6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14004ed7d
mov eax, dword [rdx + 0x10]
jmp 0x14004ed64
call fcn.140002000
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, [0x1400c5494]
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.140019c10
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140019b20
nop
lea rdx, [rbp - 0x59]
lea rcx, [rsp + 0x40]
call fcn.1400103b0
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 0x14004ebcd
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 0x14004ebfd
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004ebf3
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004ebfd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rdx, [rbp + 0x67]
lea rcx, [rbp - 0x39]
call fcn.14000bff0
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.140019c10
nop
lea rdx, [rbp - 0x39]
lea rcx, [rsp + 0x40]
call fcn.1400103b0
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.1400460c0
movzx ebx, al
mov qword [rbp - 0x31], r13
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14004ec82
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 0x14004ecb2
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004eca8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004ecb2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
test bl, bl
jne 0x14004ed84
cmp byte [rbp - 0x6a], bl
je 0x14004ecd3
mov rcx, qword [rbp - 0x61]
cmp rcx, 0xffffffffffffffff
je 0x14004ecd3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x61], rdi
mov byte [rbp - 0x6a], 0
lea rcx, [rsp + 0x40]
call fcn.140019ba0
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 0x14004ed20
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004ed16
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004ed20
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14004ed50
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004ed46
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004ed50
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14004ed7d
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004ed73
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14004ed7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
xor al, al
jmp 0x14004ef23
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.140045f40
nop
mov r15, qword [rbp - 1]
mov r13, qword [rbp - 9]
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x14004edc5
test r15, r15
jle 0x14004edc5
mov rdx, rbx
jmp 0x14004edc7
xor edx, edx
mov rax, qword [rsi]
mov r8d, r13d
mov rcx, rsi
call qword [rax + 8]
test eax, eax
jle 0x14004ee0b
test rbx, rbx
je 0x14004ede6
test r15, r15
jle 0x14004ede6
mov rdx, rbx
jmp 0x14004ede8
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 0x14004edb6
mov qword [rbp + 7], 0
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
cmp byte [rbp - 0x6a], 0
je 0x14004ee3a
mov rcx, qword [rbp - 0x61]
cmp rcx, 0xffffffffffffffff
je 0x14004ee3a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x61], rdi
mov byte [rbp - 0x6a], 0
mov rdx, qword [rbp + 0x67]
mov rcx, qword [r14]
call fcn.14002e2e0
movzx esi, al
test al, al
jne 0x14004ee5b
lea rcx, [rbp + 0x67]
call fcn.14002ddb0
nop
test rbx, rbx
je 0x14004ee69
mov rcx, rbx
call fcn.14008d9d8
nop
cmp byte [rbp - 0x6a], 0
je 0x14004ee83
mov rcx, qword [rbp - 0x61]
cmp rcx, 0xffffffffffffffff
je 0x14004ee83
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x61], rdi
mov byte [rbp - 0x6a], 0
lea rcx, [rsp + 0x40]
call fcn.140019ba0
nop
mov rdx, qword [rbp + 0x67]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14004eec2
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004eeb8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004eec2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r12]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14004eef2
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004eee8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004eef2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r14]
sub rdx, 0x18
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x14004ef1f
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x14004ef15
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14004ef1f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
movzx eax, sil
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret