Function at 0x180006e20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x18008b088]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov r13d, r9d
mov rsi, r8
mov qword [rsp + 0x60], r8
mov r12, rdx
mov rdx, rcx
mov qword [rsp + 0x50], rcx
mov r14, qword [rbp + 0xd0]
mov r15, qword [rbp + 0xd8]
mov qword [rsp + 0x68], r15
mov qword [rbp - 0x70], 0
mov eax, 0xf
mov qword [rbp - 0x68], rax
mov byte [rbp - 0x80], 0
lea ebx, [r9 + 0xdda]
mov dword [rsp + 0x40], ebx
cmp r9d, ebx
jae 0x1800073fc
movzx edi, byte [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov eax, dword [rsp + 0x40]
nop word [rax + rax]
cmp r13d, 0x1c8
ja 0x1800071e5
je 0x1800071b1
cmp r13d, 0x103
ja 0x1800070c6
je 0x180007011
mov eax, r13d
sub eax, 0xae
je 0x180007001
sub eax, 0x18
je 0x180006fd8
sub eax, 0x1b
je 0x180006f40
cmp eax, 0x1e
jne 0x1800073e4
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x180006f08
mov rdx, qword [r14]
movzx eax, word [r14 + 0x60]
mov word [rsp + 0x48], ax
mov r9d, 0x1a
lea r8, [rsp + 0x48]
mov rcx, r15
call fcn.180003bd0
test al, al
jne 0x1800073df
mov byte [rsp + 0x58], 0
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbp - 0x68]
jmp 0x180007401
cmp dword [rdx], 0
jne 0x180006fbe
mov esi, 0xfd
nop word [rax + rax]
mov eax, esi
sub eax, 0xfb
je 0x180006f99
sub eax, 1
je 0x180006f77
cmp eax, 1
jne 0x180006faf
lea rdx, [0x1800719f8]
mov rcx, r12
call fcn.18006ca50
mov r8d, dword [r14]
jmp 0x180006fa0
mov eax, dword [r14 + 4]
mov dword [0x18008b1c0], eax
lea rdx, [0x18008b1c8]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgetpos]
mov dword [0x180088200], eax
jmp 0x180006faf
mov r8d, dword [0x18008b1c0]
lea rdx, str._10lu_n
mov rcx, r12
call fcn.18006ca50
dec esi
cmp esi, 0xfa
ja 0x180006f50
mov rsi, qword [rsp + 0x60]
mov r9, r12
mov r8d, 1
mov rdx, qword [rsi]
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1800073df
mov edx, 0x41
lea ecx, [rdx - 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rax + 1], xmm0
movups xmmword [rax + 0x11], xmm0
movups xmmword [rax + 0x21], xmm0
movups xmmword [rax + 0x31], xmm0
jmp 0x1800073df
mov dword [r14 + 0x10cc], 1
jmp 0x1800073e4
mov eax, dword [r15 + 0x90]
mov dword [r14 + 0x90], eax
test eax, eax
jne 0x180007443
test rsi, rsi
je 0x18000707e
movups xmm0, xmmword [r15 + 0x30]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [r15 + 0x40]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [r15 + 0x50]
movups xmmword [rsi + 0x20], xmm0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rsi
xor edx, edx
mov ecx, 0xc5
call fcn.180032210
mov dword [rsp + 0x48], 2
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rsi
mov ecx, 0xe8
call fcn.18004cc00
mov r8, qword [rsp + 0x68]
add r8, 0x60
lea r9, [r14 + 0x60]
lea rdx, [r15 + 0x30]
mov ecx, 0x86
call fcn.18000b620
mov dword [rsp + 0x48], 2
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [r14 + 0x60]
mov ecx, 0xe8
call fcn.18004cc00
mov r15, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
jmp 0x1800073df
mov eax, r13d
sub eax, 0x173
je 0x180007476
sub eax, 0x18
je 0x18000746d
sub eax, 0x1b
je 0x180007199
cmp eax, 0x1e
jne 0x1800073e4
mov qword [rsp + 0x20], 0
mov r9d, 0xba
mov r8, r14
lea rdx, [rbp - 0x80]
xor ecx, ecx
call fcn.180028350
mov rax, qword [r15]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xb5
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
xor ecx, ecx
call fcn.180012bb0
test al, al
je 0x180006f2d
mov rax, qword [r15]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xc4
mov r8, rsi
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.18003c260
mov rdi, rax
mov r8d, 0xd1
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x78]
call fcn.180004350
jmp 0x1800073df
mov eax, dword [0x18008b1c4]
dec eax
xor ecx, ecx
cmp dword [rdx], eax
sete cl
mov dword [rsp + 0x58], ecx
jmp 0x1800073e4
lea r8, [rbp]
mov edx, 0x63
mov rcx, r15
call fcn.180011670
mov dword [rsp + 0x48], 3
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rbp]
mov ecx, 0xe8
call fcn.18004cc00
jmp 0x1800073df
cmp r13d, 0x417
ja 0x1800072ea
je 0x180007299
mov eax, r13d
sub eax, 0x26b
je 0x1800074b0
sub eax, 0x1e
je 0x1800074ab
sub eax, 4
je 0x180007252
cmp eax, 0xc5
jne 0x1800073e4
lea r8, [rbp + 0x30]
lea edx, [rax - 0x62]
lea rcx, [rbp - 0x60]
call fcn.180011670
mov dword [rsp + 0x48], 2
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rbp + 0x30]
mov ecx, 0xe8
call fcn.18004cc00
jmp 0x1800073df
lea r8, [rbp - 0x30]
mov edx, 0x63
lea rcx, [rbp]
call fcn.180011670
lea rcx, [r15 + 0x30]
lea r8, [rbp - 0x60]
mov edx, 0x63
call fcn.180011670
mov dword [rsp + 0x48], 2
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov ecx, 0xe8
call fcn.18004cc00
jmp 0x1800073df
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x60]
mov rdx, r15
mov ecx, 0x86
call fcn.18000b620
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [r14 + 0x10], xmm1
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [r14 + 0x20], xmm0
mov dword [rsp + 0x48], 4
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, r14
mov ecx, 0xe8
call fcn.18004cc00
jmp 0x1800073df
cmp r13d, 0x4dc
je 0x18000734d
cmp r13d, 0x5a1
je 0x180007332
cmp r13d, 0x666
jne 0x1800073e8
mov dword [rsp + 0x48], 2
lea r9, [rbp - 0x30]
mov r8d, 0x10d
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x30]
call fcn.180037c70
lea rax, [r14 + 0x30]
jmp 0x1800073c6
lea r9, [r14 + 0x30]
lea r8, [rbp]
lea rdx, [rbp - 0x60]
mov ecx, 0x86
call fcn.18000b620
jmp 0x1800073df
mov dword [rsp + 0x48], 4
mov r9, r14
mov r8d, 0x10d
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.180037c70
mov qword [rsp + 0x20], r14
mov r9d, 0xcb
xor r8d, r8d
lea rdx, [rbp - 0x30]
xor ecx, ecx
call fcn.18003c260
mov dword [rsp + 0x48], 1
lea r9, [rbp - 0x30]
mov r8d, 0x10d
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x30]
call fcn.180037c70
mov dword [rsp + 0x48], 6
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rbp - 0x60]
mov ecx, 0xe8
call fcn.18004cc00
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xcb
xor r8d, r8d
lea rdx, [rbp - 0x30]
xor ecx, ecx
call fcn.18003c260
mov rdx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x40]
add r13d, 0xc5
cmp r13d, eax
jb 0x180006eb0
mov rax, qword [rbp - 0x68]
mov rbx, qword [rsp + 0x58]
cmp rax, 0x10
jb 0x1800074c3
lea rdx, [rax + 1]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800074be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800074be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rsi, rsi
je 0x1800074b0
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov rdx, rsi
mov ecx, 0x77
call fcn.180013e20
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbp - 0x68]
jmp 0x180007401
mov byte [rbx], 0
mov rax, qword [rbp - 0x68]
jmp 0x180007401
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x20], 0x36
xor r9d, r9d
mov r8, r14
lea rdx, [rsp + 0x60]
xor ecx, ecx
call fcn.180052a30
mov dword [rsp + 0x58], eax
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbp - 0x68]
jmp 0x180007401
mov byte [rsp + 0x58], dil
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbp - 0x68]
jmp 0x180007401
call fcn.18006cd18
mov rax, rbx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.18006d4c0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret