Function at 0x180065db0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov r14d, r8d
mov r12, rdx
add r8d, 0xfffffff1
mov rsi, r9
mov dword [rsp + 0x30], r8d
mov rdx, rcx
cmp r14d, r8d
jbe 0x1800662fb
mov r9d, dword [rbp + 0x77]
lea ebx, [r14 - 0xe6]
mov r13, qword [rsp + 0x50]
lea r10, [0x180000000]
mov edi, dword [rbp + 0x77]
mov r11d, 0x1104111
mov r15, qword [rsp + 0x50]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], ebx
mov r8d, dword [rsp + 0x34]
mov ebx, dword [rbp + 0x77]
mov qword [rbp - 0x69], r9
cmp r8d, 0x2f
ja case.default.0x180065e4f
mov eax, r8d
movzx eax, byte [r10 + rax + 0x66358]
mov ecx, dword [r10 + rax*4 + 0x6631c]
add rcx, r10
jmp rcx
mov r8, qword [r12]
add r8, 0x8c
mov dword [rbp + 0x77], 0x10
lea r9, [rbp - 0x39]
mov ecx, 0x109
lea rdx, [rbp + 0x77]
call fcn.1800342c0
mov r8d, dword [rsp + 0x34]
lea r10, [0x180000000]
mov r11d, 0x1104111
mov rdx, qword [rbp + 0x67]
mov eax, dword [rsp + 0x30]
dec r14d
dec r8d
mov dword [rbp + 0x77], r14d
mov dword [rsp + 0x34], r8d
cmp r14d, eax
ja 0x180065e32
jmp case.0x180065e4f.0
mov rax, qword [r12]
cmp dword [rax], 3
jne case.0x180065e4f.14
mov r14d, 0x32
nop word [rax + rax]
mov esi, 0xa2
mov eax, esi
sub eax, 0xa2
je 0x180065f15
cmp eax, 1
jne 0x180065f26
mov r8, qword [r12]
lea r9, [rbp - 0x39]
lea rdx, [rsp + 0x58]
mov ecx, 0x109
mov eax, dword [r8 + 4]
add r8, 0x9c
mov dword [rsp + 0x58], eax
call fcn.1800342c0
mov rdx, qword [r12]
lea rcx, [rbp - 0x39]
add rdx, 0x9c
mov r8d, 0xf0
call fcn.1800744e0
jmp 0x180065f26
xor edx, edx
lea rcx, [rbp - 0x39]
mov r8d, 0x13d
call fcn.180042a70
inc esi
cmp esi, 0xa4
jb 0x180065ec5
sub r14, 1
jne 0x180065ec0
mov rsi, qword [rbp + 0x7f]
mov r14d, dword [rbp + 0x77]
jmp 0x180065e75
mov eax, 0x6f
nop dword [rax + rax]
cmp eax, 0x6f
je 0x1800662b2
add eax, 0x2bcb
cmp eax, 0x2bcb
jbe 0x180065f50
xor edx, edx
lea rcx, [rbp - 0x39]
mov r8d, 0x13d
call fcn.180042a70
jmp 0x180065e75
mov rcx, qword [r12]
mov eax, dword [rcx + 0x88]
sar eax, 8
mov byte [rsp + 0x41], al
movzx eax, byte [rcx + 0x8a]
mov byte [rsp + 0x42], al
movzx eax, byte [rcx + 0x8b]
mov byte [rsp + 0x43], al
jmp case.0x180065e4f.14
mov r8, qword [r12]
lea r9, [rbp - 0x39]
add r8, 0x28
mov dword [rbp + 0x77], 0x20
lea rdx, [rbp + 0x77]
mov ecx, 0x109
call fcn.1800342c0
mov r8, qword [r12]
lea r9, [rbp - 0x39]
add r8, 0x48
mov dword [rbp + 0x77], 0x20
lea rdx, [rbp + 0x77]
mov ecx, 0x109
call fcn.1800342c0
mov rax, qword [r12]
movzx ecx, byte [rax + 0x88]
mov byte [rsp + 0x40], cl
jmp 0x180065e75
mov rax, qword [r12]
mov rcx, rsi
mov r8d, dword [rdx]
mov edx, 1
mov rax, qword [rax + 0x50]
mov r9, rax
mov qword [rsp + 0x50], rax
call fcn.1800b36c4
mov qword [rbp - 0x69], rax
jmp 0x180065e75
mov rbx, qword [rbp - 0x79]
mov eax, dword [rbx]
sub eax, 3
cmp eax, 1
ja 0x1800661ed
mov r14d, 0xd7
nop
mov eax, r14d
sub eax, 0xd7
je 0x1800661a7
sub eax, 0x56
je 0x180066085
cmp eax, 0x56
jne 0x1800661d8
mov rax, qword [r12]
lea rdx, [rsp + 0x50]
mov r8d, 0x56
mov rcx, qword [rax + 0x68]
mov qword [rsp + 0x50], rcx
lea rcx, [0x180149584]
call fcn.18005f8f0
jmp 0x180066300
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 0x7ffffffe
mov edx, 0x10c
mov rcx, rsi
call fcn.180064670
cmp qword [r13 + 0xb0], 0
mov rbx, rax
jne 0x1800660f4
mov rax, qword [r12]
lea r9, [rbp - 0x71]
mov qword [rbp - 0x71], 0
lea r8, [rbp - 0x61]
mov dword [rsp + 0x38], ebx
mov rdx, rsi
mov dword [rsp + 0x20], 0xde
mov rcx, qword [rax + 0x68]
mov qword [rbp - 0x61], rcx
lea rcx, [rsp + 0x38]
call fcn.18002a460
mov edi, eax
test eax, eax
jne 0x180066300
mov rbx, qword [rbp - 0x79]
jmp 0x1800661d8
mov esi, 0xfa
nop dword [rax]
cmp esi, 0xfa
je 0x180066172
cmp esi, 0x8f8e
je 0x180066135
cmp esi, 0x11e22
je 0x18006612b
cmp esi, 0x1acb6
jne 0x18006618b
test edi, edi
je 0x18006618b
mov eax, edi
jmp 0x180066300
mov rcx, r15
call fcn.1800b147c
jmp 0x18006618b
mov eax, dword [rsp + 0x48]
lea r9, [rbp - 0x71]
mov dword [rsp + 0x38], eax
lea r8, [rbp - 0x59]
mov rax, qword [r12]
mov rdx, r15
mov qword [rbp - 0x71], 0
mov dword [rsp + 0x20], 0xde
mov rcx, qword [rax + 0x68]
mov qword [rbp - 0x59], rcx
lea rcx, [rsp + 0x38]
call fcn.18002a460
mov edi, eax
jmp 0x18006618b
mov rdx, qword [rbp + 0x7f]
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rcx, r13
call qword [r13 + 0xb0]
mov r15, rax
add esi, 0x8e94
cmp esi, 0x23a50
jbe 0x180066100
mov rsi, qword [rbp + 0x7f]
mov rbx, qword [rbp - 0x79]
jmp 0x1800661d8
mov rax, qword [r12]
lea rdx, [rbp - 0x51]
mov r8d, 0x56
mov rcx, qword [rax + 0x68]
mov qword [rbp - 0x51], rcx
lea rcx, [0x180149588]
call fcn.18005f8f0
mov rdi, rax
test eax, eax
jne 0x180066300
mov r13, qword [rbx + 0x20]
add r14d, 0x56
cmp r14d, 0x1d9
jb 0x180066040
mov r14d, dword [rbp + 0x77]
mov rax, qword [r12]
xor r9d, r9d
mov rdx, rsi
mov rcx, qword [rax + 0x68]
lea r8d, [r9 + 0x1e]
mov qword [rbp - 0x49], rcx
lea rax, [rbp - 0x49]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.18002b580
mov rbx, rax
jmp 0x180065e75
movsxd rax, dword [rsi]
test eax, eax
js 0x1800662f7
cmp eax, dword [r12 + 8]
jge 0x1800662f7
mov rcx, rax
mov rax, qword [r12]
movzx edx, byte [rcx + rax]
sub dl, 0x41
cmp dl, 0x18
ja 0x180065e87
movsx eax, dl
bt r11d, eax
jae 0x180065e87
mov eax, 1
jmp 0x180066300
mov rax, qword [r12]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx + 0xa8]
mov rcx, qword [rax + 0x58]
mov qword [rbp - 0x79], rcx
jmp case.0x180065e4f.14
mov dword [rbp + 0x77], 4
lea r8, [rsp + 0x40]
jmp 0x180065e63
xor ebx, ebx
jmp case.0x180065e4f.14
mov rdx, qword [r12]
lea rcx, [rbp - 0x39]
add rdx, 0x9c
mov r8d, 0xf0
call fcn.1800744e0
jmp 0x180065e75
mov rax, qword [rbp - 0x69]
cmp eax, dword [rdx]
je 0x1800662f7
mov rcx, qword [rsp + 0x50]
call fcn.1800b28d4
mov dword [rsp + 0x48], eax
lea r9, [rbp + 0x77]
mov rax, qword [r12]
lea rdx, [rsp + 0x50]
mov dword [rbp + 0x77], 0x1016
mov r8d, 0x104
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x48]
call fcn.180069300
jmp 0x180066300
xor eax, eax
jmp 0x180066300
mov ebx, dword [rbp + 0x77]
mov eax, ebx
mov rbx, qword [rsp + 0x148]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret