Function at 0x180056180
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rbp
push rsi
push r12
push r14
lea rbp, [r11 - 0x57]
sub rsp, 0x98
mov rsi, r9
mov r14, rdx
mov r9, r8
mov r8, rcx
mov ecx, dword [rbp + 0x7f]
mov r12d, ecx
imul eax, ecx, 0x2c4
mov dword [rbp - 1], eax
cmp ecx, eax
ja 0x1800565be
mov ecx, dword [rbp + 0x7f]
mov qword [r11 + 0x10], rbx
mov rbx, qword [rbp - 9]
mov qword [r11 - 0x28], rdi
mov edi, dword [rbp + 0x7f]
mov qword [r11 - 0x30], r13
mov r13d, dword [rbp + 0x7f]
mov qword [r11 - 0x38], r15
mov r15, qword [rbp + 0xf]
mov qword [rbp - 0x31], rcx
nop dword [rax]
cmp r12d, 0x3da4
ja 0x180056449
je 0x1800563fe
cmp r12d, 0x1a40
ja 0x1800563a1
je 0x180056377
mov eax, r12d
sub eax, 0x70
je 0x18005631f
sub eax, 0x33
je 0x180056240
cmp eax, 0x64
jne 0x180056301
mov rax, qword [r8]
mov rax, qword [rax + 8]
mov qword [rbp + 0x17], rax
jmp 0x180056301
mov r8d, 0x2f
mov rcx, r9
call fcn.1800168b0
mov esi, eax
cmp eax, 0xffffffff
je 0x18005627b
mov r9, qword [rbp + 0x6f]
cmp eax, 0x20
je 0x180056240
cmp eax, 9
je 0x180056240
cmp eax, 0xa
je 0x180056240
cmp eax, 0xd
je 0x180056240
add eax, 0xffffffd0
cmp eax, 9
jbe 0x1800562ad
mov r13, qword [rbp + 0x5f]
jmp 0x180056296
mov r13, qword [rbp + 0x5f]
mov rax, qword [r13]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x40e
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax]
mov rax, qword [r13]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x40e
mov rcx, qword [r13]
mov rax, qword [rcx]
call qword [rax]
lea r13d, [rsi - 0x30]
mov r8d, 0x2f
mov rsi, qword [rbp + 0x6f]
mov rcx, rsi
call fcn.1800168b0
mov ecx, eax
cmp eax, 0x30
jl 0x1800562f9
nop word [rax + rax]
cmp ecx, 0x39
ja 0x1800562f9
lea eax, [r13*4 - 0x18]
mov r8d, 0x2f
add eax, r13d
lea r13d, [rcx + rax*2]
mov rcx, rsi
call fcn.1800168b0
mov ecx, eax
cmp eax, 0x30
jge 0x1800562d0
mov rsi, qword [rbp + 0x77]
mov rcx, qword [rbp - 0x31]
imul eax, dword [rbp + 0x7f], 0x3b
add r12d, eax
cmp r12d, dword [rbp - 1]
ja 0x180056482
mov r8, qword [rbp + 0x5f]
mov r9, qword [rbp + 0x6f]
jmp 0x1800561f0
mov edx, dword [r14]
xor eax, eax
mov word [rbp - 0x11], ax
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
test edx, edx
jle 0x180056368
mov ecx, 0xa
cmp ecx, 0xa
je 0x18005634b
cmp ecx, 0x90
jne 0x18005635a
mov byte [rbp - 0x1a], 0x18
jmp 0x18005635a
mov eax, edx
mov byte [rbp - 0x20], 1
sar eax, 8
mov byte [rbp - 0x1b], al
mov byte [rbp - 0x1c], dl
add ecx, 0x86
cmp ecx, 0x116
jb 0x180056338
mov rax, qword [r8]
movzx ecx, byte [rax + 0x88]
mov byte [rbp - 0x15], cl
jmp 0x1800562fd
mov rcx, qword [r8]
mov eax, dword [rcx + 0x88]
shr eax, 8
mov byte [rbp - 0x14], al
movzx eax, byte [rcx + 0x8c]
mov byte [rbp - 0x13], al
mov eax, dword [rcx + 0x8c]
shr eax, 8
mov byte [rbp - 0x12], al
jmp 0x1800562fd
cmp r12d, 0x2634
je 0x1800563f1
cmp r12d, 0x3410
jne 0x180056301
mov rax, qword [r8]
mov byte [rbp - 0x10], 0x20
cmp dword [rax + 0x40], 1
jne 0x1800563d1
mov byte [rbp - 0x1f], 3
mov byte [rbp - 0x11], 8
jmp 0x180056301
cmp dword [r14], 0
jle 0x1800563e4
mov byte [rbp - 0x1f], 1
mov byte [rbp - 0x11], 8
jmp 0x180056301
mov byte [rbp - 0x1f], 2
mov byte [rbp - 0x11], 0x18
jmp 0x180056301
mov dword [rbp - 9], r13d
mov rbx, qword [rbp - 9]
jmp 0x180056301
movsxd rcx, dword [r14]
xor edx, edx
mov eax, 0x3b9ac9e8
div rcx
mov rsi, rax
test eax, eax
jg 0x180056427
mov rax, qword [r8]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x46
mov rcx, qword [r8]
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [rbp + 0x77]
mov rax, qword [rbp + 0x17]
mov ecx, dword [rcx]
cmp esi, ecx
cmovl ecx, esi
mov rsi, qword [rbp + 0x77]
mov qword [rbp - 0x31], rcx
mov dword [rax + 0x94], ecx
jmp 0x180056301
cmp r12d, 0x4bc5
je 0x180056482
cmp r12d, 0x4de0
je 0x18005657d
cmp r12d, 0x7a41
je 0x180056545
cmp r12d, 0xb6de
je 0x1800564b3
cmp r12d, 0xf37b
jne 0x180056301
mov r13, qword [rsp + 0x88]
mov rax, rbx
mov rbx, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0x90]
mov r15, qword [rsp + 0x80]
add rsp, 0x98
pop r14
pop r12
pop rsi
pop rbp
ret
mov eax, dword [rsi]
cmp edi, eax
jae 0x180056539
nop dword [rax]
sub eax, edi
lea rdx, [rbp + 7]
cmp ecx, eax
cmovb eax, ecx
mov ecx, eax
mov eax, dword [r14]
imul rax, rcx
mov qword [rbp - 0x31], rcx
mov ecx, Ordinal_203
mov qword [rbp + 7], rax
mov eax, dword [r9]
xor r9d, r9d
mov dword [rbp - 0x29], eax
mov rax, qword [r8]
lea r8, [rbp - 0x29]
mov qword [rbp - 9], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
call fcn.18005b480
mov rcx, qword [rbp - 0x31]
mov edx, ecx
test ecx, ecx
je 0x180056527
nop dword [rax]
mov ecx, edi
inc edi
mov qword [r15 + rcx*8], rax
mov ecx, dword [r14]
add rax, rcx
add edx, 0xffffffff
jne 0x180056510
mov rcx, qword [rbp - 0x31]
mov eax, dword [rsi]
mov r8, qword [rbp + 0x5f]
mov r9, qword [rbp + 0x6f]
cmp edi, eax
jb 0x1800564c0
mov qword [rbp - 0x31], rcx
mov rbx, r15
mov qword [rbp - 9], rbx
jmp 0x180056301
mov eax, dword [rsi]
lea rdx, [rbp + 7]
shl rax, 3
lea rcx, [rbp + 0xf]
mov qword [rbp + 0xf], rax
mov eax, dword [r9]
lea r9, [rbp - 0x29]
mov dword [rbp - 0x29], eax
mov rax, qword [r8]
mov r8d, 0x37
mov qword [rbp + 7], rax
call fcn.18003dc70
mov r15, rax
xor edi, edi
jmp 0x1800562fd
mov r9, qword [r9]
lea rcx, [rbp - 0x21]
mov edx, 1
mov r9, qword [r9 + 0x18]
lea r8d, [rdx + 0x11]
call fcn.18007be3c
cmp rax, 0x12
je 0x1800562fd
mov rdx, qword [rbp + 0x5f]
mov rax, qword [rdx]
mov rcx, qword [rax]
mov dword [rcx + 0x28], 0x25
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax]
jmp 0x1800562fd
mov rax, qword [rbp - 9]
add rsp, 0x98
pop r14
pop r12
pop rsi
pop rbp
ret