Function at 0x140057f60
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x140057fa1
xor eax, eax
jmp 0x1400581ef
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140057fdb
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140057fdb
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x1400581ef
cmp qword [rdi + 0x80], 0
jne 0x140057fed
or eax, 0xffffffff
jmp 0x1400581ef
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14005801a
mov rdx, qword [rdi + 0x90]
mov rcx, qword [rdi + 0x88]
mov qword [r8], rcx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
cmp qword [rdi + 0x68], 0
jne 0x14005803e
movsx ecx, sil
mov rdx, qword [rdi + 0x80]
call fcn.1401660a0
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x1400581ed
mov byte [rbp - 0x29], sil
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 0x17]
call fcn.140015740
nop
lea rdx, [rbp - 0x11]
lea rcx, [rbp + 0x17]
call fcn.140009cc0
mov rcx, rax
call fcn.14000dc60
mov rbx, rax
lea rcx, [rbp + 0x17]
call fcn.140009110
add rbx, rax
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x17]
call fcn.140009cc0
mov rcx, rax
call fcn.14000dc60
lea rdx, [rbp - 0x21]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x19]
mov rcx, qword [rdi + 0x68]
mov qword [rsp + 0x20], rax
mov r10, qword [rcx]
lea r9, [rbp - 0x28]
lea r8, [rbp - 0x29]
lea rdx, [rdi + 0x74]
call qword [r10 + gethostname]
test eax, eax
js 0x1400581e1
cmp eax, 1
jg 0x1400581c2
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x17]
call fcn.140009cc0
mov rcx, rax
call fcn.14000dc60
mov rbx, qword [rbp - 0x21]
sub rbx, rax
je 0x140058123
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x17]
call fcn.140009cc0
mov rcx, rax
call fcn.14000dc60
mov rcx, rax
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
call fcn.1401615d8
cmp rbx, rax
jne 0x1400581e1
mov byte [rdi + 0x71], 1
lea rax, [rbp - 0x29]
cmp qword [rbp - 0x19], rax
jne 0x1400581be
test rbx, rbx
jne 0x140058053
lea rcx, [rbp + 0x17]
call fcn.140009110
cmp rax, 0x20
jae 0x1400581e1
lea rcx, [rbp + 0x17]
call fcn.1400099c0
mov rcx, qword [rax]
not rcx
cmp rcx, 8
lea rcx, [rbp + 0x17]
jbe 0x1400581b8
call fcn.1400099c0
mov rbx, qword [rax]
xor r8d, r8d
lea rdx, [rbx + 8]
lea rcx, [rbp + 0x17]
call fcn.14000a700
test al, al
je 0x140058053
lea rcx, [rbp + 0x17]
call fcn.1400099c0
xor r9d, r9d
lea r8d, [r9 + 8]
mov rdx, qword [rax]
lea rcx, [rbp + 0x17]
call fcn.1400164a0
lea rdx, [rbx + 8]
lea rcx, [rbp + 0x17]
call fcn.14000a7f0
jmp 0x140058053
call fcn.14000a680
int3
mov ebx, esi
jmp 0x1400581e4
cmp eax, 3
jne 0x1400581e1
movsx ecx, byte [rbp - 0x29]
mov rdx, qword [rdi + 0x80]
call fcn.1401660a0
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x1400581e4
or ebx, 0xffffffff
lea rcx, [rbp + 0x17]
call fcn.1400091f0
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140113910
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret