Function at 0x180031ca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
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, 0xa0
imul r13d, edx, 0x214
mov r14, r8
mov r15d, edx
mov edi, edx
cmp edx, r13d
ja 0x180031db7
mov rbx, qword [rbp + 0x7f]
mov esi, dword [rbp - 0x29]
mov r12d, dword [rbp - 0x3d]
cmp edi, 0x27b4
ja 0x180031d9f
je 0x180031d6f
mov eax, edi
sub eax, 0x22
je 0x180031ef4
sub eax, 2
je 0x180031e43
cmp eax, 0x60
jne 0x180031e2f
mov r12d, dword [rcx]
lea r8, [rbp + 0x6f]
xorps xmm0, xmm0
mov dword [rbp + 0x7f], 0xc06864a1
xor eax, eax
lea rdx, [rbp + 0x7f]
mov qword [rbp + 0x17], rax
lea rcx, [rbp - 0x49]
mov eax, dword [r14]
mov r9d, 0x93
movups xmmword [rbp - 0x49], xmm0
mov dword [rbp + 0x6f], eax
movups xmmword [rbp - 0x39], xmm0
mov dword [rbp - 0x3d], r12d
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
call fcn.180019e40
test eax, eax
jne 0x180031f16
mov esi, dword [rbp - 0x29]
mov rcx, qword [rbp + 0x67]
jmp 0x180031e2f
xor r8d, r8d
mov dword [rbp + 0x6f], 0x64
mov edx, 0xbe
lea rcx, [rbp + 0x6f]
call fcn.180022d10
mov rbx, rax
test rax, rax
je 0x180031f16
mov rcx, qword [rbp + 0x67]
mov dword [rax], r12d
jmp 0x180031e2f
cmp edi, 0x4ee4
je 0x180031de8
cmp edi, 0x7614
je 0x180031dd6
cmp edi, 0x9d44
jne 0x180031e2f
mov rax, qword [rbp - 0x59]
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rbp - 0x39]
mov dword [rbx + 4], eax
mov eax, dword [rbp - 0x2d]
mov dword [rbx + 0x60], eax
mov qword [rbp - 0x59], rbx
jmp 0x180031e2f
mov eax, dword [rbp - 0x35]
mov dword [rbx + 8], eax
mov eax, dword [rbp - 0x31]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x18], esi
test esi, esi
je 0x180031e2f
movups xmm0, xmmword [rbp - 0x25]
mov eax, dword [rbp + 0x1b]
movups xmm1, xmmword [rbp - 0x15]
movups xmmword [rbx + 0x1c], xmm0
movups xmm0, xmmword [rbp - 5]
movups xmmword [rbx + 0x2c], xmm1
movups xmm1, xmmword [rbp + 0xb]
movups xmmword [rbx + 0x3c], xmm0
movups xmmword [rbx + 0x4c], xmm1
mov dword [rbx + 0x5c], eax
movzx eax, word [rbp - 0x21]
mov dword [rbx + 0x10], eax
movzx eax, word [rbp - 0x17]
mov dword [rbx + 0x14], eax
imul eax, r15d, 0x4c
add edi, eax
cmp edi, r13d
jbe 0x180031ce4
jmp 0x180031db7
mov rax, qword [r14]
cmp qword [rax + 0x18], 0
je 0x180031ed2
mov ebx, dword [rbp + 0x6f]
mov r15, qword [rbp + 0x67]
nop dword [rax + rax]
mov esi, 0xa7
mov eax, esi
sub eax, 0xa7
je 0x180031e7f
cmp eax, 7
jne 0x180031eb9
test ebx, ebx
je 0x180031eb9
mov dword [rbp - 0x59], ebx
jmp 0x180031db7
mov rax, qword [r14 + 8]
mov rcx, r14
call qword [rax + 0x78]
mov r9d, 0x36
mov r8, r15
mov rdx, r14
mov rdi, rax
mov ecx, dword [rax]
mov dword [rbp + 0x6f], ecx
lea rcx, [rbp + 0x6f]
call fcn.180020a10
xor r8d, r8d
mov edx, 0x10a
mov rcx, rdi
mov rbx, rax
call fcn.18000d640
add esi, 7
cmp esi, 0xb5
jb 0x180031e65
mov rax, qword [r14]
cmp qword [rax + 0x18], 0
jne 0x180031e60
mov rcx, qword [rbp + 0x67]
mov rax, qword [rcx]
cmp qword [rax + 0x18], 1
jne 0x180031ee8
mov dword [rbp - 0x59], 0
jmp 0x180031db7
mov dword [rbp - 0x59], 5
jmp 0x180031db7
mov edx, 8
mov r9, rcx
mov rcx, r14
lea r8d, [rdx - 7]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
sete byte [rbp - 0x59]
jmp 0x180031db7
xor eax, eax
jmp 0x180031dbb