Function at 0x1800b01b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1801deda8]
xor rax, rsp
mov qword [rbp - 8], rax
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800b01e4
xor eax, eax
cmp edx, edx
cmove esi, eax
mov eax, esi
jmp 0x1800b0408
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800b021e
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1800b021e
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, esi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x1800b0408
cmp qword [rbx + 0x80], 0
jne 0x1800b0230
or eax, 0xffffffff
jmp 0x1800b0408
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800b025d
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x68], 0
jne 0x1800b0281
mov rdx, qword [rbx + 0x80]
movsx ecx, sil
call fcn.1800d20c0
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x1800b0406
xor r8d, r8d
mov qword [rsp + 0xb8], r14
lea rcx, [rbp - 0x28]
mov byte [rbp - 0x40], sil
lea edx, [r8 + 8]
call fcn.18002c250
mov qword [rsp + 0xb0], rdi
mov rcx, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
nop dword [rax]
cmp r9, 0x10
lea rax, [rbp - 0x38]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x28]
cmovae rdx, rcx
lea rax, [rbp - 0x30]
lea r8, [rbp - 0x28]
cmovae r8, rcx
lea r9, [rbp - 0x3f]
add rdx, qword [rbp - 0x18]
mov rcx, qword [rbx + 0x68]
mov qword [rsp + 0x30], rdx
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r10, qword [rcx]
call qword [r10 + 0x38]
test eax, eax
js 0x1800b03b6
cmp eax, 1
jg 0x1800b038f
mov r9, qword [rbp - 0x10]
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x28]
cmp r9, 0x10
mov rdi, qword [rbp - 0x38]
cmovae rax, rcx
sub rdi, rax
je 0x1800b0359
cmp r9, 0x10
lea rax, [rbp - 0x28]
mov r9, qword [rbx + 0x80]
mov r8, rdi
cmovae rax, rcx
mov edx, 1
mov rcx, rax
call fcn.1800d2f64
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
cmp rdi, rax
jne 0x1800b03be
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
jne 0x1800b038b
test rdi, rdi
jne 0x1800b02b0
cmp qword [rbp - 0x18], 0x20
jae 0x1800b03be
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp - 0x28]
call fcn.1800163b0
jmp 0x1800b02a5
mov ebx, esi
jmp 0x1800b03c1
cmp eax, 3
jne 0x1800b03b6
movsx ecx, byte [rbp - 0x40]
mov rdx, qword [rbx + 0x80]
call fcn.1800d20c0
mov r9, qword [rbp - 0x10]
or ebx, 0xffffffff
mov rcx, qword [rbp - 0x28]
cmp eax, ebx
cmovne ebx, esi
jmp 0x1800b03c1
mov r9, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
or ebx, 0xffffffff
mov r14, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xb0]
cmp r9, 0x10
jb 0x1800b0406
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x1800b0401
test cl, 0x1f
jne 0x1800b041f
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x1800b041f
sub rcx, rax
sub rcx, 8
cmp rcx, 0x1f
ja 0x1800b041f
mov rcx, rax
call fcn.180018a40
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800bcd90
add rsp, 0x80
pop rsi
pop rbx
pop rbp
ret
call fcn.1800c7f0c
int3