Function at 0x18005fd40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
imul r14d, ecx, 0xa50
mov rbx, r9
mov esi, ecx
mov edi, ecx
mov dword [rsp + 0x40], r14d
cmp ecx, r14d
ja 0x18005fedc
mov rcx, qword [rsp + 0x50]
lea rbp, [0x18006dab0]
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x50]
mov qword [rsp + 0x48], rcx
lea r9, [0x180043020]
lea rdx, [0x180056a40]
lea r11, [0x180044410]
lea r10, [0x180056a90]
cmp edi, 0x9081
ja 0x18005ff3f
je 0x18005ff25
cmp edi, 0xd1
ja 0x18005fec4
je 0x18005fe96
mov eax, edi
sub eax, 0x3b
je 0x18005fe18
sub eax, 0x52
je 0x18005fe0e
cmp eax, 0x42
jne 0x18005fe7c
cmp qword [rbx + 0x10], 4
jb 0x1800601a6
cmp qword [rbx + 0x18], 0x10
mov rax, rbx
jb 0x18005fe04
mov rax, qword [rbx]
cmp dword [rax], 0xffffffff
sete byte [rsp + 0x30]
jmp 0x18005fe7c
mov rcx, qword [r8]
mov qword [rsp + 0x48], rcx
jmp 0x18005fe7c
mov rax, qword [rbx]
mov ecx, dword [rax + 0x54]
test ecx, ecx
jle 0x18005fe77
mov byte [rax + 0x58], cl
mov edx, 1
mov rax, qword [rbx]
inc dword [rax + 0x54]
mov r9, qword [rbx]
movsxd r8, dword [r9 + 0x54]
lea rcx, [r9 + 0x58]
mov r9, qword [r9 + 0x18]
call fcn.180083240
mov rdx, qword [rbx]
mov rcx, rax
movsxd rax, dword [rdx + 0x54]
cmp rcx, rax
je 0x18005fe70
mov rax, qword [rdx + 0x30]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x25
mov rax, qword [rbx]
mov rcx, qword [rax + 0x30]
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [rbx]
mov dword [rdx + 0x54], 0
mov rcx, qword [rsp + 0x48]
imul eax, esi, 0xb0
add edi, eax
cmp edi, r14d
ja 0x18005fedc
mov r8, qword [rsp + 0xe0]
jmp 0x18005fd97
mov rcx, qword [rbx]
mov edx, 1
mov rax, qword [rcx + 8]
lea r8d, [rdx + 0x57]
call qword [rax]
mov r12, rax
mov rax, qword [rbx]
mov qword [rax + 0x298], r12
mov qword [r12], rbp
mov dword [r12 + 0x10], 0
jmp 0x18005fe77
cmp edi, 0xe0
je 0x18005ff16
cmp edi, 0x617d
je 0x18005fefb
cmp edi, 0x8f1f
jne 0x18005fe7c
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9, qword [rcx + 0x18]
mov edx, 1
mov r8, qword [rcx + 0x40]
mov rcx, qword [rcx + 0x30]
call fcn.180083240
jmp 0x18005fe77
mov rax, qword [rbx]
mov r13, qword [rax + 0x228]
jmp 0x18005fe7c
mov rax, qword [rbx]
mov ecx, dword [rax + 0x90]
imul ecx, dword [rax + 0x88]
mov dword [r12 + 0x4c], ecx
jmp 0x18005fe77
cmp edi, 0x1afe1
ja 0x180060132
je 0x180060116
cmp edi, 0x9ae0
je 0x180060099
cmp edi, 0x12031
je 0x18006004a
cmp edi, 0x134e0
jne 0x18005fe7c
mov rcx, qword [rbx]
xor ebp, ebp
cmp dword [rcx + 0x1a8], ebp
jle 0x180060022
mov rsi, r8
mov r14d, 0x1ac
nop
movsxd rdx, dword [rcx + r14]
lea r9, [rsp + 0x38]
mov rcx, qword [rcx + rdx*8 + 0x180]
lea r15, [rdx*4]
mov edx, 0x11a
movsxd rax, dword [rcx + 0x18]
mov r8, qword [r13 + rax*8 + 0x58]
movsxd rax, dword [rcx + 0x14]
mov rcx, qword [r13 + rax*8 + 0x38]
mov eax, dword [rsp + r15 + 0x70]
mov dword [rsp + 0x38], eax
mov rax, qword [rsi]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x58]
call fcn.1800241e0
test eax, eax
je 0x18006010f
mov rax, qword [rsi]
inc ebp
add r14, 4
add rsi, 8
movsx ecx, word [rax]
mov dword [rsp + r15 + 0x70], ecx
mov rcx, qword [rbx]
cmp ebp, dword [rcx + 0x1a8]
jl 0x18005ff90
mov esi, dword [rsp + 0xd0]
mov r14d, dword [rsp + 0x40]
mov rcx, qword [rcx + 0x28]
lea rbp, [0x18006dab0]
mov rax, qword [rsp + 0x58]
mov qword [rcx], rax
mov rax, qword [rbx]
mov rcx, qword [rax + 0x28]
mov rax, qword [rsp + 0x60]
mov qword [rcx + 8], rax
jmp 0x18005fe77
mov rax, qword [rbx]
cmp dword [rax + 0x1d4], 2
jne 0x180060083
mov r8d, dword [r12 + 0x4c]
mov edx, 1
mov qword [r12 + 8], r10
mov qword [r12 + 0x18], r11
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
call qword [rax + 8]
mov rcx, qword [rsp + 0x48]
mov qword [r12 + 0x40], rax
jmp 0x18005fe7c
xor eax, eax
mov qword [r12 + 8], rdx
mov qword [r12 + 0x18], r9
mov qword [r12 + 0x40], rax
jmp 0x18005fe7c
mov rdx, qword [rbx]
mov rax, qword [rdx + 0x28]
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov rax, qword [rdx + 0x28]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x60], rcx
movups xmm0, xmmword [r13 + 0x18]
movups xmmword [rsp + 0x68], xmm0
movsd xmm1, qword [r13 + 0x28]
movsd qword [rsp + 0x78], xmm1
mov qword [rsp + 0x80], rdx
cmp dword [rdx + 0x148], 0
je 0x18005fe77
cmp dword [r13 + 0x30], 0
jne 0x18005fe77
mov eax, dword [r13 + 0x34]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x38], eax
mov ecx, 0xb
call fcn.180016540
test eax, eax
jne 0x18005fe77
xor eax, eax
jmp 0x18005fee0
mov rax, qword [rbx]
lea rdx, [rsp + 0x50]
mov ecx, 0x89
mov qword [rsp + 0x50], rax
call fcn.18005f750
jmp 0x18005fe77
cmp edi, 0x1cee0
je 0x18006018b
cmp edi, 0x268e0
je 0x180060158
cmp edi, 0x302e0
jne 0x18005fe7c
mov eax, 1
jmp 0x18005fee0
mov rax, qword [rbx]
mov ecx, dword [rax + 0x148]
test ecx, ecx
je 0x18005fe77
mov eax, dword [r13 + 0x30]
test eax, eax
jne 0x180060180
mov eax, dword [r13 + 0x34]
inc eax
and eax, 7
mov dword [r13 + 0x34], eax
mov eax, ecx
dec eax
mov dword [r13 + 0x30], eax
jmp 0x18005fe77
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [r13 + 0x18], xmm0
movsd xmm1, qword [rsp + 0x78]
movsd qword [r13 + 0x28], xmm1
jmp 0x18005fe7c
mov byte [rsp + 0x30], 0
jmp 0x18005fedc