Function at 0x18003c070
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0xd0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov ebp, edx
mov rsi, rcx
cmp edx, 0xffffffff
jne 0x18003c0b2
xor eax, eax
jmp 0x18003c39e
mov rdx, qword [rcx + 0x48]
cmp qword [rdx], 0
je 0x18003c0e9
mov rdx, qword [rdx]
mov r8, qword [rcx + 0x60]
movsxd rcx, dword [r8]
add rcx, rdx
cmp rdx, rcx
jae 0x18003c0e9
dec dword [r8]
mov rdx, qword [rsi + 0x48]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], bpl
mov eax, ebp
jmp 0x18003c39e
mov rdx, qword [rsi + 0x88]
test rdx, rdx
jne 0x18003c0fd
or eax, 0xffffffff
jmp 0x18003c39e
cmp qword [rsi + 0x70], 0
jne 0x18003c11c
movsx ecx, bpl
call fcn.1800cdf48
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, ebp
mov eax, ebx
jmp 0x18003c39e
mov byte [rsp + 0x40], bpl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0xa0]
call fcn.180007c50
nop
nop word [rax + rax]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xa0]
call fcn.1800082c0
mov rbx, rax
cmp qword [rax], 0xfffffffffffffffc
je 0x18003c186
mov rcx, rax
call fcn.180003f90
test al, al
jne 0x18003c16c
call fcn.1800caf8c
mov rcx, qword [rbx]
call fcn.180003090
mov rcx, qword [rbx]
add rax, qword [rcx + 0x18]
cmp qword [rbx + 8], rax
jb 0x18003c186
call fcn.1800caf8c
mov rdi, qword [rbx + 8]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xa0]
call fcn.1800082c0
mov rbx, rax
cmp qword [rax], 0xfffffffffffffffc
je 0x18003c1d3
mov rcx, rax
call fcn.180003f90
test al, al
jne 0x18003c1b9
call fcn.1800caf8c
mov rcx, qword [rbx]
call fcn.180003090
mov rcx, qword [rbx]
add rax, qword [rcx + 0x18]
cmp qword [rbx + 8], rax
jb 0x18003c1d3
call fcn.1800caf8c
mov rbx, qword [rbx + 8]
lea rcx, [rsp + 0xa0]
call fcn.180002b50
add rax, rdi
mov rcx, qword [rsi + 0x70]
mov r10, qword [rcx]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x41]
lea r8, [rsp + 0x40]
lea rdx, [rsi + 0x7c]
call qword [r10 + Ordinal_41]
test eax, eax
js 0x18003c38e
cmp eax, 1
jg 0x18003c35f
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0xa0]
call fcn.1800082c0
mov rbx, rax
cmp qword [rax], 0xfffffffffffffffc
je 0x18003c275
mov rcx, rax
call fcn.180003f90
test al, al
jne 0x18003c25b
call fcn.1800caf8c
mov rcx, qword [rbx]
call fcn.180003090
mov rcx, qword [rbx]
add rax, qword [rcx + 0x18]
cmp qword [rbx + 8], rax
jb 0x18003c275
call fcn.1800caf8c
mov rdi, qword [rsp + 0x48]
sub rdi, qword [rbx + 8]
je 0x18003c2e6
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xa0]
call fcn.1800082c0
mov rbx, rax
cmp qword [rax], 0xfffffffffffffffc
je 0x18003c2c9
mov rcx, rax
call fcn.180003f90
test al, al
jne 0x18003c2af
call fcn.1800caf8c
mov rcx, qword [rbx]
call fcn.180003090
mov rcx, qword [rbx]
add rax, qword [rcx + 0x18]
cmp qword [rbx + 8], rax
jb 0x18003c2c9
call fcn.1800caf8c
mov r9, qword [rsi + 0x88]
mov r8, rdi
mov edx, 1
mov rcx, qword [rbx + 8]
call fcn.1800cb6c4
cmp rdi, rax
jne 0x18003c32a
mov byte [rsi + 0x79], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x50], rax
jne 0x18003c34e
test rdi, rdi
jne 0x18003c140
lea rcx, [rsp + 0xa0]
call fcn.180002b50
cmp rax, 0x20
jae 0x18003c33c
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rsp + 0xa0]
call fcn.180008090
jmp 0x18003c140
lea rcx, [rsp + 0xa0]
call fcn.180002b10
or eax, 0xffffffff
jmp 0x18003c39e
lea rcx, [rsp + 0xa0]
call fcn.180002b10
or eax, 0xffffffff
jmp 0x18003c39e
lea rcx, [rsp + 0xa0]
call fcn.180002b10
mov eax, ebp
jmp 0x18003c39e
cmp eax, 3
jne 0x18003c38e
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rsi + 0x88]
call fcn.1800cdf48
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, ebp
lea rcx, [rsp + 0xa0]
call fcn.180002b10
mov eax, ebx
jmp 0x18003c39e
lea rcx, [rsp + 0xa0]
call fcn.180002b10
or eax, 0xffffffff
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1800c9b90
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret