Function at 0x140007d80
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rax, [0x140113d00]
mov qword [rcx], rax
lea rbx, [rcx + 0x10]
lea rdi, [rcx + 0x18]
lea r14, [rsp + 0x90]
mov rcx, rdi
mov rdx, r14
call fcn.14006e270
movzx eax, byte [r14 + 0x17]
mov r15d, eax
and r15d, 0x7f
test al, al
jns 0x140007de5
mov r15, qword [rsp + 0x98]
jns 0x140007df4
mov rcx, qword [rsp + 0x90]
call fcn.140096334
mov rax, qword [rbx]
movsxd rax, dword [rax + 4]
mov rax, qword [rbx + rax + 0x30]
lea r14, [rsp + 0x90]
mov qword [r14], rax
lock inc dword [rax + 8]
lea rdx, [0x14013d7c8]
mov rcx, r14
call fcn.1400897b0
mov rcx, qword [rax]
mov r8, qword [rcx + 0x38]
mov rcx, rax
mov dl, 0xa
mov rax, r8
call qword [0x140150008]
mov ebp, eax
mov rcx, qword [r14]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
je 0x140007fe4
mov rcx, rbx
mov edx, ebp
call fcn.140008540
mov rcx, rbx
call fcn.140008420
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], r12
movaps xmm0, xmmword [0x140114940]
movaps xmmword [rbx], xmm0
mov rcx, rdi
mov rdx, rbx
call fcn.14006e270
test byte [0x14012e4e0], 0x19
jne 0x140007ff6
mov eax, dword [rsi + 8]
cmp eax, 3
je 0x14000800f
cmp eax, 2
jge 0x140007f92
call fcn.1400c81a0
test al, al
je 0x140007eef
lea r9, [rsp + 0x90]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rsp + 0x60]
movzx eax, byte [rdx + 0x17]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8d, dword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [0x14013e5a0]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsi + 8], 3
je 0x1400080ba
cmp byte [rsp + 0x77], 0
jns 0x140007f0a
mov rcx, qword [rsp + 0x60]
call fcn.140096334
mov ecx, dword [rsi + 0x130]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [rsi + 0x12c]
call fcn.140096378
mov dword [rax], ebx
mov rax, qword [rsi + 0x10]
movsxd rax, dword [rax + 4]
lea rcx, [0x140113aa0]
mov qword [rsi + rax + 0x10], rcx
lea rax, [0x140113ab0]
mov qword [rsi + 0x18], rax
cmp byte [rsi + 0x6f], 0
jns 0x140007f51
mov rcx, qword [rsi + 0x58]
call fcn.140096334
sub rsi, 0xffffffffffffff80
mov rcx, rdi
call fcn.14006e220
mov rcx, rdi
call fcn.140061fc0
mov rcx, rsi
call fcn.14006cf80
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.1400985e0
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x60]
movzx eax, byte [r14 + 0x17]
mov r13d, eax
and r13d, 0x7f
test al, al
cmovs r13, qword [r14 + 8]
cmovs r14, qword [r14]
test r13, r13
je 0x140007ea6
xor ebp, ebp
mov r8d, r13d
sub r8d, ebp
lea rdx, [r14 + rbp]
mov ecx, 2
call fcn.140096658
test eax, eax
js 0x140007ea6
mov eax, eax
add rbp, rax
cmp r13, rbp
ja 0x140007fb9
jmp 0x140007ea6
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140150008]
jmp 0x140007e4a
lea rcx, [rsp + 0x90]
mov qword [rcx], rsi
mov qword [rcx + 8], rbx
call fcn.1400e0cf0
jmp 0x140007e91
mov eax, 3
cmp byte [0x14013e5cc], 0
jne 0x140007e9d
mov byte [0x14013e5cc], 1
mov eax, dword [0x14013e5d8]
mov ecx, dword [0x14013ba7c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140008218
mov rcx, rsi
mov rdx, r14
call fcn.1400e0f20
movzx eax, byte [rsp + 0xa7]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs r14, qword [rsp + 0x90]
cmovs rcx, qword [rsp + 0x98]
lea rdx, [rsp + 0x80]
mov qword [rdx], r14
mov qword [rdx + 8], rcx
mov rcx, qword [0x14013e5d0]
call fcn.140061fc0
cmp byte [rsp + 0xa7], 0
jns 0x1400080ab
mov rcx, qword [rsp + 0x90]
call fcn.140096334
mov byte [0x14013e5cc], 0
mov eax, dword [rsi + 8]
jmp 0x140007e9d
mov rcx, qword [0x14013e6e0]
test rcx, rcx
je 0x1400080f4
movzx eax, byte [rsp + 0x77]
mov r8d, eax
and r8d, 0x7f
test al, al
mov rax, qword [rsp + 0x60]
cmovns rax, rbx
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
cmovs r8, qword [rsp + 0x68]
mov qword [rdx + 8], r8
call fcn.1400e3c20
lea r14, [rsp + 0x90]
mov r8d, 0x400
mov rcx, r14
mov dl, 0xaa
call fcn.14009a700
cmp byte [rsp + 0x77], 0
jns 0x140008118
mov rbx, qword [rsp + 0x60]
mov r8d, 0x400
mov rcx, r14
mov rdx, rbx
call fcn.140095720
mov rcx, r14
call fcn.140061fc0
call fcn.1400e0c80
mov rax, qword [0x14013e5b8]
cmp rax, qword [0x14013e5c0]
je 0x14000825a
mov qword [rsp + 0x80], r12
call fcn.1400e0c80
mov rdx, qword [0x14013e5c0]
test rdx, rdx
mov rax, qword [0x14013e5b0]
cmove rdx, rax
dec rdx
cmp rax, rdx
jb 0x14000825d
shl rdx, 3
add rdx, qword [0x14013e5a8]
lea rbx, [rsp + 0x80]
mov rcx, rbx
call fcn.140095a80
cmp qword [rbx], 0
jne 0x1400081ab
lea rcx, [rsp + 0x80]
call fcn.140095a60
jmp 0x140007ef9
cmp byte [rsp + 0x77], 0
jns 0x1400081b9
mov rbx, qword [rsp + 0x60]
jmp 0x1400081be
lea rbx, [rsp + 0x60]
mov rcx, rbx
add rcx, r15
mov qword [rsp + 0x40], rcx
je 0x140008260
call fcn.1400b45a0
lea rcx, [rsp + 0x40]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x118]
sub r15, rax
add rbx, rax
lea r9, [rsp + 0x30]
mov qword [r9], rbx
mov qword [r9 + 8], r15
mov r8d, dword [rsi + 0x128]
mov rdx, qword [rsi + 0x120]
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x80]
call fcn.1400e0eb0
jmp 0x140008199
lea rcx, [0x14013e5d8]
call fcn.140096578
cmp dword [0x14013e5d8], 0xffffffff
jne 0x14000804d
lea rcx, str.LOG_FATAL
mov edx, 0x400
call fcn.140008530
mov qword [0x14013e5d0], rax
lea rcx, [0x14013e5d8]
call fcn.1400966f0
jmp 0x14000804d
int3
int3
int3