Function at 0x180030360
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov dword [rax + 8], ecx
push rbp
push rbx
lea rbp, [rax - 0x58]
sub rsp, 0x148
movdqa xmm0, xmmword [0x1800ab330]
mov rbx, rdx
mov qword [rax + 0x20], rsi
lea edx, [rcx + 0x3de]
mov qword [rax - 0x18], rdi
mov rsi, r8
mov qword [rax - 0x20], r12
movdqa xmm1, xmm0
mov qword [rax - 0x28], r13
mov qword [rax - 0x30], r14
mov r14, r9
mov qword [rax - 0x38], r15
movaps xmmword [rax - 0x48], xmm6
mov eax, ecx
movdqa xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
movdqa xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
movdqa xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov dword [rsp + 0x40], edx
cmp ecx, edx
jae case.0x180030424.74
movsd xmm6, qword [rbp - 0x80]
lea rdi, [0x180000000]
mov r15d, dword [rbp + 0x60]
xor r12d, r12d
lea ecx, [r12 + 1]
cmp eax, 0x151
ja 0x180030911
je 0x180030762
add eax, 0xffffffbb
cmp eax, 0xf5
ja case.default.0x180030424
movzx eax, byte [rdi + rax + 0x30b84]
mov ecx, dword [rdi + rax*4 + 0x30b54]
add rcx, rdi
jmp rcx
mov rdi, qword [rbp - 0x78]
cmp qword [rdi + 0x1a], 0
je 0x180030ae1
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], r12
lea rcx, [rdi + 0xa]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r8d, [r9 + 0x45]
call fcn.180009a10
movzx eax, word [rdi + 8]
lea r9, [rbp - 0x60]
mov r8, r14
mov word [rsp + 0x48], ax
lea rdx, [rsp + 0x48]
mov ecx, 0x5d
call fcn.180068fe0
mov edx, dword [rsp + 0x40]
lea rdi, [0x180000000]
mov byte [rsp + 0x50], al
jmp case.0x180030424.80
mov eax, dword [rbx]
test eax, eax
js 0x180030498
cmp eax, 0x2f
jle 0x18003049e
mov dword [rbx], r12d
mov eax, r12d
mov ecx, dword [rsi]
mov edx, dword [r14]
cmp ecx, edx
jle 0x1800304b2
mov dword [rsi], edx
mov edx, ecx
mov dword [r14], ecx
mov ecx, dword [rsi]
mov eax, dword [rbx]
sub edx, ecx
cdqe
inc edx
mov qword [rsp + 0x28], r12
add rax, rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8, [rsp + 0x48]
xor ecx, ecx
movd xmm6, edx
mov edx, 0x10b
mov eax, dword [rdi + rax*8 + 0xc3e74]
cvtdq2pd xmm6, xmm6
mov dword [rsp + 0x48], eax
call fcn.18004cf10
movsxd rcx, dword [rbx]
mov edx, dword [rsp + 0x40]
add rcx, rcx
mov dword [rdi + rcx*8 + 0xc3e74], eax
jmp case.0x180030424.80
mov rdx, qword [r14]
mov qword [rsp + 0x78], rdx
mov rax, qword [rdx + 0x20]
mov rcx, qword [rax]
mov rax, qword [rdx + 0x30]
mov edx, dword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rcx
jmp case.0x180030424.80
mov rdx, qword [r14]
cmp dword [rdx + 0x24], 0x64
je 0x180030552
mov rax, qword [rdx]
mov dword [rax + 0x28], 0x14
mov rax, qword [r14]
mov rcx, qword [rax]
mov eax, dword [rax + 0x24]
mov dword [rcx + 0x2c], eax
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [r14]
mov rax, qword [rsi]
mov ecx, dword [rax + 0x30]
mov dword [rdx + 0x30], ecx
mov rax, qword [rsi]
mov rcx, qword [r14]
mov edx, dword [rsp + 0x40]
mov eax, dword [rax + 0x34]
mov dword [rcx + 0x34], eax
jmp case.0x180030424.80
mov qword [rbp - 0x78], rsi
jmp case.0x180030424.80
mov rax, qword [rsi]
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x70]
mov ecx, dword [rax + 0x3c]
mov rax, qword [r14]
mov dword [rsp + 0x60], ecx
mov ecx, 9
mov qword [rbp - 0x70], rax
call fcn.18004f500
mov rax, qword [rsi]
mov ebx, 0xc8
mov rcx, qword [r14]
mov r15d, 4
mov eax, dword [rax + 0x128]
mov dword [rcx + 0x48], eax
mov rax, qword [rsi]
mov rcx, qword [r14]
mov eax, dword [rax + 0x1c0]
mov dword [rcx + 0x13c], eax
nop dword [rax]
mov rdx, qword [rsi]
cmp qword [rdx + rbx], 0
je 0x180030682
mov rdi, qword [r14]
mov rax, qword [rdi + rbx - 0x68]
test rax, rax
jne 0x180030611
lea r9, [rsp + 0x58]
mov qword [rsp + 0x58], rdi
xor edx, edx
mov qword [rsp + 0x20], r12
xor ecx, ecx
mov r8d, 0x125
call fcn.180072c30
mov qword [rdi + rbx - 0x68], rax
mov rdx, qword [rsi]
mov rcx, qword [rbx + rdx]
mov edx, 2
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rcx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x180030620
mov rax, qword [rdi + rbx - 0x68]
mov dword [rax + 0x100], r12d
mov rdx, qword [rsi]
add rbx, 8
cmp rbx, 0xe8
jl 0x1800305d0
mov rcx, qword [r14]
lea rdi, [0x180000000]
mov eax, dword [rdx + 0x38]
mov dword [rcx + 0x4c], eax
jmp 0x1800309ac
mov rax, qword [rsi]
lea rdx, [rsp + 0x58]
mov rcx, qword [r14]
xor r9d, r9d
mov r8d, 0xba
mov qword [rsp + 0x20], r12
mov eax, dword [rax + 0x38]
mov dword [rcx + 0x38], eax
mov rax, qword [rsi]
mov rcx, qword [r14]
mov eax, dword [rax + 0x3c]
mov dword [rcx + 0x3c], eax
xor ecx, ecx
mov rax, qword [r14]
mov qword [rsp + 0x58], rax
call fcn.180053aa0
mov edx, dword [rsp + 0x40]
jmp case.0x180030424.80
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax + 0x48]
test ecx, ecx
je case.0x180030424.80
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
nop word [rax + rax]
movzx eax, byte [rdx]
inc rdx
mov byte [r8], al
inc r8
add ecx, 0xffffffff
jne 0x180030710
mov qword [rsp + 0x70], rdx
mov edx, dword [rsp + 0x40]
mov qword [rsp + 0x68], r8
jmp case.0x180030424.80
movsxd rax, dword [rbx]
add rax, rax
movd xmm0, dword [rdi + rax*8 + 0xc3e74]
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x1800c3e30]
mulsd xmm0, xmm6
cvttsd2si eax, xmm0
add eax, dword [rsi]
mov dword [rsp + 0x50], eax
jmp case.0x180030424.80
mov rcx, qword [r14]
mov eax, dword [rcx + 0x4c]
cmp eax, 1
jl 0x180030772
cmp eax, 0xa
jle 0x1800307a4
mov rax, qword [rcx]
mov dword [rax + 0x28], 0x1a
mov rax, qword [r14]
mov rcx, qword [rax]
mov eax, dword [rax + 0x4c]
mov dword [rcx + 0x2c], eax
mov rax, qword [r14]
mov rcx, qword [rax]
mov dword [rcx + 0x30], 0xa
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [r14]
mov edx, dword [rsp + 0x40]
cmp dword [rcx + 0x4c], 0
mov rax, qword [rsi]
mov rbx, qword [rcx + 0x58]
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x58], rbx
mov r13, qword [rax + 0x130]
jle 0x1800309b0
nop word [rax + rax]
mov r12d, 0xda
nop word [rax + rax]
cmp r12d, 0xda
je 0x1800308af
cmp r12d, 0x18b
je 0x18003085b
cmp r12d, 0x23c
jne 0x1800308cb
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x1800308cb
mov rsi, qword [rbp - 0x68]
mov rbx, rax
sub rsi, rax
mov edi, 0x40
nop
mov eax, dword [rsi + rbx]
cmp dword [rbx], eax
je 0x180030846
mov rax, qword [r14]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x2c
mov rax, qword [r14]
mov rcx, qword [rax]
mov dword [rcx + 0x2c], r15d
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax]
add rbx, 4
sub rdi, 1
jne 0x180030820
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rbp + 0x70]
jmp 0x1800308cb
movsxd rbx, r15d
cmp r15d, 3
ja 0x180030872
mov rax, qword [rsi]
cmp qword [rax + rbx*8 + 0xc8], 0
jne 0x180030894
mov rax, qword [r14]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x34
mov rax, qword [r14]
mov rcx, qword [rax]
mov dword [rcx + 0x2c], r15d
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax]
mov rax, qword [rsi]
mov rax, qword [rax + rbx*8 + 0xc8]
mov rbx, qword [rsp + 0x58]
mov qword [rbp - 0x68], rax
mov rax, qword [r13 + 0x50]
mov qword [rbp - 0x80], rax
jmp 0x1800308cb
mov eax, dword [r13]
mov dword [rbx], eax
mov eax, dword [r13 + 8]
mov dword [rbx + 8], eax
mov eax, dword [r13 + 0xc]
mov dword [rbx + 0xc], eax
mov r15d, dword [r13 + 0x10]
mov dword [rbx + 0x10], r15d
add r12d, 0xb1
cmp r12d, 0x2ed
jb 0x1800307e0
mov edx, dword [rsp + 0x48]
add rbx, 0x60
mov rax, qword [r14]
inc edx
add r13, 0x60
mov dword [rsp + 0x48], edx
mov qword [rsp + 0x58], rbx
cmp edx, dword [rax + 0x4c]
jl 0x1800307d0
xor r12d, r12d
lea rdi, [0x180000000]
jmp 0x1800309ac
sub eax, 0x17c
je 0x180030993
cmp eax, 0x17
jne case.default.0x180030424
mov rax, qword [rsi]
cmp dword [rax + 0x1a4], 0
je case.default.0x180030424
cmp word [rax + 0x1a8], 1
jne 0x18003095c
mov rax, qword [r14]
mov word [rax + 0x154], cx
mov rax, qword [rsi]
mov rcx, qword [r14]
movzx eax, word [rax + 0x1aa]
mov word [rcx + 0x156], ax
mov rax, qword [rsi]
movzx eax, word [rax + 0x1ac]
mov rcx, qword [r14]
mov word [rcx + 0x158], ax
mov rax, qword [rsi]
mov rcx, qword [r14]
mov eax, dword [rax + 0x1b0]
mov dword [rcx + 0x15c], eax
mov rax, qword [rsi]
mov rcx, qword [r14]
mov eax, dword [rax + 0x1b4]
mov dword [rcx + 0x160], eax
jmp case.0x180030424.80
mov rbx, qword [rsp + 0x78]
mov rdx, rcx
mov r9, qword [rbx + 0x18]
mov r8, qword [rbx + 0x40]
mov rcx, qword [rbx + 0x30]
call fcn.180083240
mov edx, dword [rsp + 0x40]
mov rbx, qword [rbp + 0x68]
mov ecx, 1
mov eax, dword [rbp + 0x60]
add eax, 0x42
mov dword [rbp + 0x60], eax
cmp eax, edx
jb 0x1800303f3
mov ebx, dword [rsp + 0x50]
mov rdx, qword [rbp - 8]
movaps xmm6, xmmword [rsp + 0x110]
mov r15, qword [rsp + 0x120]
mov r14, qword [rsp + 0x128]
mov r13, qword [rsp + 0x130]
mov r12, qword [rsp + 0x138]
mov rdi, qword [rsp + 0x140]
mov rsi, qword [rsp + 0x178]
cmp rdx, 0x10
jb 0x180030a41
mov rcx, qword [rbp - 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180030a3c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180030b4e
call fcn.180077954
mov rdx, qword [rbp - 0x28]
movdqa xmm0, xmmword [0x1800ab330]
movdqa xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
cmp rdx, 0x10
jb 0x180030a8d
mov rcx, qword [rbp - 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180030a88
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180030b4e
call fcn.180077954
mov rdx, qword [rbp - 0x48]
movdqa xmm0, xmmword [0x1800ab330]
movdqa xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x40], 0
cmp rdx, 0x10
jb 0x180030ad5
mov rcx, qword [rbp - 0x60]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180030ad0
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180030b4e
call fcn.180077954
mov eax, ebx
add rsp, 0x148
pop rbx
pop rbp
ret
mov byte [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov ebx, eax
jmp 0x1800309ce
xor r8d, r8d
mov edx, 0x88
mov rcx, rsi
call fcn.180047e50
test rax, rax
je 0x180030b42
cmp word [rax + 0x18], 0
jge 0x180030b42
movzx ecx, word [rsi + 0x14]
cmp word [rax + 0x14], cx
jne 0x180030b42
mov ecx, dword [rsi + 0x10]
mov r9, rax
mov dword [rbp + 0x60], ecx
xor edx, edx
lea rcx, [rbp + 0x60]
mov r8d, 0x113
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi + 8]
call fcn.180072c30
mov rbx, rax
jmp 0x1800309ce
mov eax, 0xffffffff
mov ebx, eax
jmp 0x1800309ce
call fcn.18007ba54
int3