Function at 0x180030320
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rbx, qword [rbp - 0x41]
mov r13d, edx
add edx, 0xfffffff5
mov r10, r8
mov dword [rbp - 0x49], edx
mov r15, rcx
cmp r13d, edx
jbe case.0x1800303a7.0
mov r8d, dword [rbp + 0x6f]
lea edx, [r13 - 0x104]
mov r12, qword [rbp - 0x31]
mov r14, qword [rbp - 0x31]
mov eax, dword [rbp - 0x49]
mov dword [rbp - 0x45], edx
mov qword [rbp - 0x29], r8
lea rdi, [0x180000000]
mov r11d, 6
cmp edx, 0x23
ja case.default.0x1800303a7
movzx eax, byte [rdi + rdx + 0x306d0]
mov ecx, dword [rdi + rax*4 + 0x306a4]
add rcx, rdi
jmp rcx
mov eax, dword [r10 + 0x20]
lea r9, [rbp + 0x6f]
movups xmm0, xmmword [r10]
mov dword [rbp + 7], eax
lea r8, [rbp - 0x39]
movups xmm1, xmmword [r10 + 0x10]
mov rax, qword [r15]
lea rdx, [rbp - 0x19]
mov ecx, 0xb8
movaps xmmword [rbp - 0x19], xmm0
movaps xmmword [rbp - 9], xmm1
mov qword [rbp - 0x39], rax
mov dword [rbp + 0x6f], 0
call fcn.180037ee0
mov edx, dword [rbp - 0x45]
mov r8, qword [rbp - 0x29]
mov dword [rbp - 0x41], eax
mov rbx, qword [rbp - 0x41]
jmp case.0x1800303a7.10
xor esi, esi
cmp dword [r12 + 0x18], esi
jbe case.0x1800303a7.10
nop word [rax + rax]
mov edi, 0x8b
cmp edi, 0x8b
jne 0x180030454
lea rax, [rbp - 0x39]
mov dword [rbp + 0x6f], esi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x39], r12
lea rdx, [rbp + 0x6f]
lea ecx, [rdi - 0x1e]
call fcn.180065710
xor r9d, r9d
mov qword [rbp - 0x39], rax
lea r8, [rbp - 0x39]
xor ecx, ecx
lea edx, [rdi - 0x52]
call fcn.18001fcb0
add edi, 0x5cd9
cmp edi, 0x5cd9
jbe 0x180030415
inc esi
cmp esi, dword [r12 + 0x18]
jb 0x180030410
mov edx, dword [rbp - 0x45]
mov r8, qword [rbp - 0x29]
jmp case.0x1800303a7.10
cmp r8d, dword [r9]
je case.0x1800303a7.10
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
mov r9d, 0x58
mov dword [rbp + 0x6f], 0x1016
mov dword [rbp - 0x39], eax
lea r8, [rbp + 0x6f]
mov rax, qword [r15]
lea rdx, [rbp - 0x31]
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x31], rcx
lea rcx, [rbp - 0x39]
call fcn.18001b000
mov dword [rbp - 0x41], eax
mov rax, qword [rbp - 0x41]
jmp 0x180030688
mov rax, qword [r15]
mov rax, qword [rax + 0x50]
mov qword [rbp - 0x31], rax
jmp case.0x1800303a7.10
mov r8d, dword [r9]
mov edx, 1
mov r9, qword [rbp - 0x31]
mov rcx, r10
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, dword [rbp - 0x45]
mov r8, rax
mov qword [rbp - 0x29], rax
jmp case.0x1800303a7.10
mov rax, qword [r15]
lea r8, [rbp - 0x39]
mov r9d, 0x117
mov qword [rbp - 0x39], rax
lea rdx, [rbp + 0x6f]
mov dword [rbp + 0x6f], 0x90
xor ecx, ecx
call fcn.180033390
mov edx, dword [rbp - 0x45]
mov r14, rax
mov r8, qword [rbp - 0x29]
jmp case.0x1800303a7.10
test r14, r14
je 0x180030625
mov esi, 0x104
nop word [rax + rax]
cmp esi, 0x104
je 0x1800305d8
cmp esi, 0x5758
je 0x1800305d1
cmp esi, 0xadac
jne 0x18003060c
mov rax, qword [r15]
lea r8, [rbp - 0x41]
xor edx, edx
mov qword [rbp - 0x41], r14
mov r9, r10
mov rcx, qword [rax]
mov qword [r14 + 8], rcx
lea ecx, [rdx + 0x1e]
call fcn.180032930
cmp eax, 0x1044
jne 0x180030602
mov edi, 0xc9
nop dword [rax + rax]
cmp edi, 0xc9
je 0x1800305a6
cmp edi, 0xa35
je case.0x1800303a7.0
jmp 0x1800305c1
mov rax, qword [r15]
lea rdx, [rbp - 0x41]
mov r8d, 0x72
mov qword [rbp - 0x41], rax
mov rcx, r14
call fcn.180032580
xor ebx, ebx
add edi, 0x96c
cmp edi, 0x12d8
jbe 0x180030590
jmp 0x180030602
mov word [r14 + 6], r11w
jmp 0x18003060c
lea rax, [rbp + 0x6f]
mov dword [rbp - 0x39], 8
lea r9, [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov r8d, 2
mov byte [rbp + 0x6f], 0
mov rdx, r14
lea rcx, [rbp + 0x17]
call fcn.18003add0
mov r10, qword [rbp + 0x77]
mov r11d, 6
add esi, 0x5654
cmp esi, 0x102fc
jbe 0x180030540
mov edx, dword [rbp - 0x45]
mov r8, qword [rbp - 0x29]
mov rbx, r14
mov qword [rbp - 0x41], rbx
jmp case.0x1800303a7.10
mov rax, qword [r15]
mov r12, qword [rax + 0x80]
mov eax, dword [rbp - 0x49]
dec edx
dec r13d
mov dword [rbp - 0x45], edx
cmp r13d, eax
jbe case.0x1800303a7.0
mov r10, qword [rbp + 0x77]
mov r9, qword [rbp + 0x7f]
jmp 0x18003037f
mov eax, 0x7b
nop word [rax + rax]
cmp eax, 0x7b
je 0x18003066e
cmp eax, 0x141
je case.0x1800303a7.0
jmp 0x180030679
mov dword [rbp - 0x41], 0
mov rbx, qword [rbp - 0x41]
add eax, 0xc6
cmp eax, 0x207
jb 0x180030660
mov rax, rbx
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret