Function at 0x1800549e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov edi, dword [rbp + 0x48]
lea r14d, [rcx + 6]
mov dword [rbp - 0x28], r14d
mov ebx, ecx
cmp ecx, r14d
jae case.0x180054a44.205
mov r13d, dword [rbp + 0x48]
mov r15, qword [rbp + 0x58]
mov esi, dword [rbp - 0x38]
lea eax, [rbx - 0xcb]
mov r8d, 1
lea r9, [0x180000000]
cmp eax, 8
ja case.0x180054a44.206
mov ecx, dword [r9 + rax*4 + 0x54e9c]
add rcx, r9
jmp rcx
mov rcx, qword [rbp - 0x10]
cmp dword [rcx + 0x38], 0
je 0x180054dc6
mov eax, 0x10
mov dword [rbp - 0x34], eax
nop dword [rax]
sub eax, 0x10
je 0x180054d8d
cmp eax, 1
jne 0x180054da0
cmp r13d, 9
jge 0x180054aca
mov ebx, 0xa4
nop dword [rax]
mov eax, ebx
sub eax, 0xa4
je 0x180054aab
sub eax, 1
je 0x180054aa6
cmp eax, 1
jne 0x180054ac0
mov eax, edi
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edi, r8d
jmp 0x180054ac0
mov edx, r13d
lea rcx, str.CORE_ADDR_gdbarch_skip_entrypoint_gdbarch__CORE_ADDR_
call fcn.18005dc40
mov r8d, 1
inc ebx
cmp ebx, 0xa7
jb 0x180054a80
cmp esi, r13d
jl 0x180054da0
nop dword [rax]
nop word [rax + rax]
mov r12d, 0x5f
mov eax, r12d
sub eax, 0x5e
je 0x180054b60
cmp eax, 1
jne 0x180054d64
mov edx, 0x86
mov rcx, r15
call fcn.18004dc40
lea rcx, [r15 + 3]
mov dword [rbp + 0x58], eax
mov edx, 0x86
call fcn.18004dc40
lea rdx, [rbp - 0x30]
mov dword [rbp + 0x60], eax
mov ecx, 0xf
mov dword [rbp - 0x30], eax
call fcn.18005b850
mov rbx, rax
lea rcx, [rbp - 0x30]
mov eax, dword [rbp + 0x58]
mov edx, 4
mov dword [rbp - 0x30], eax
call fcn.18005c450
mov r9d, dword [rbp + 0x60]
lea rcx, str._parse_playlistmark:_unexpected_EOF
mov edx, dword [rbp + 0x58]
mov r8, rax
mov qword [rsp + 0x20], rbx
call fcn.18005dc40
jmp 0x180054d64
mov r8d, 0x80
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x58]
call fcn.18001b3c0
mov eax, dword [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov ecx, 0xf
mov dword [rbp - 0x30], eax
call fcn.18005b850
mov rbx, rax
lea rcx, [rbp - 0x30]
mov eax, dword [rbp + 0x58]
mov edx, 4
mov dword [rbp - 0x30], eax
call fcn.18005c450
mov r9d, dword [rbp + 0x60]
lea rcx, str.GetByteArrayPtrTuple_failed_for__1_
mov edx, dword [rbp + 0x58]
mov r8, rax
mov qword [rsp + 0x20], rbx
call fcn.18005dc40
cmp dword [0x1800823a0], 0
jne 0x180054d64
mov eax, dword [rbp + 0x58]
mov esi, 0x14
mov dword [rbp - 0x20], eax
movzx edx, al
lea r8d, [rsi - 0x13]
mov eax, esi
sub eax, 0xc
je 0x180054c39
sub eax, 4
je 0x180054c20
sub eax, 1
je 0x180054c0a
cmp eax, 3
jne 0x180054c80
mov ecx, dword [rbp - 0x20]
mov eax, ecx
sar eax, 8
sar ecx, 0x10
mov byte [r15 + 2], cl
mov byte [r15], dl
mov byte [r15 + 1], al
jmp 0x180054c80
mov eax, dword [pe_dos_header]
add dword [rbp - 0x1c], eax
mov eax, dword [pe_dos_header]
add dword [rbp - 0x18], eax
jmp 0x180054c80
mov eax, dword [r15]
test al, 1
movzx edx, dl
cmovne edx, r8d
mov byte [rbp - 0x20], dl
test al, 2
je 0x180054c80
mov byte [rbp - 0x1f], 1
jmp 0x180054c80
mov rbx, r15
test r15, r15
je 0x180054c80
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x20]
xor r8d, r8d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x180054c8d
mov edx, dword [rbx + 0x18]
lea r9, [rbp - 0x20]
mov rcx, qword [rbx]
lea r8d, [rax + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
jne 0x180054c8d
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180054c41
movzx edx, byte [rbp - 0x20]
mov r8, rax
inc esi
cmp esi, 0x18
jb 0x180054bd8
jmp 0x180054c95
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov eax, dword [rbp + 0x60]
lea rsi, [r15 + 3]
mov dword [rbp - 0x18], eax
movzx edx, al
mov r14d, 0x14
mov eax, r14d
sub eax, 0xc
je 0x180054d09
sub eax, 4
je 0x180054cee
sub eax, 1
je 0x180054cd8
cmp eax, 3
jne 0x180054d4d
mov ecx, dword [rbp - 0x18]
mov eax, ecx
sar eax, 8
sar ecx, 0x10
mov byte [rsi + 2], cl
mov byte [rsi], dl
mov byte [rsi + 1], al
jmp 0x180054d4d
mov eax, dword [pe_dos_header]
add dword [rbp - 0x14], eax
mov eax, dword [pe_dos_header]
add dword [rbp - 0x10], eax
jmp 0x180054d4d
mov eax, dword [rsi]
mov ecx, 1
test al, 1
movzx edx, dl
cmovne edx, ecx
mov byte [rbp - 0x18], dl
test al, 2
je 0x180054d4d
mov byte [rbp - 0x17], cl
jmp 0x180054d4d
mov rbx, rsi
test rsi, rsi
je 0x180054d4d
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x18]
xor r8d, r8d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
test eax, eax
jne 0x180054d5c
mov edx, dword [rbx + 0x18]
lea r9, [rbp - 0x18]
mov rcx, qword [rbx]
lea r8d, [rax + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rax, 1
jne 0x180054d5c
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180054d11
movzx edx, byte [rbp - 0x18]
inc r14d
cmp r14d, 0x18
jb 0x180054ca8
jmp 0x180054d64
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
dec r12d
cmp r12d, 0x5d
ja 0x180054ae6
movsxd rax, r13d
add r15, rax
mov eax, dword [rbp - 0x38]
sub eax, r13d
mov dword [rbp - 0x38], eax
cmp eax, r13d
jge 0x180054ae0
mov esi, eax
jmp 0x180054da0
mov r15d, dword [rcx + 0x34]
mov esi, dword [rcx + 0x38]
add r15, qword [rdx + 8]
movzx r13d, word [rcx + 0x3c]
mov dword [rbp - 0x38], esi
mov eax, dword [rbp - 0x34]
mov r8d, 1
mov rcx, qword [rbp - 0x10]
inc eax
mov rdx, qword [rbp + 0x50]
mov dword [rbp - 0x34], eax
cmp eax, 0x12
jb 0x180054a60
mov ebx, dword [rbp + 0x48]
mov r14d, dword [rbp - 0x28]
xor edi, edi
jmp case.0x180054a44.206
xor edx, edx
mov dword [rbp + 0x48], 0x3e8
lea r8, [rbp + 0x48]
lea ecx, [rdx + 0x1f]
call fcn.18002e5f0
mov edx, dword [0x1800a3ad4]
xor r9d, r9d
lea r8d, [r9 + 0xa]
nop
mov ecx, 0x104
cmp ecx, 0x104
jne 0x180054e0e
mov eax, 0xffff
lea ebx, [rcx - 0x33]
sub eax, edx
cmp eax, r9d
cmova r9d, eax
add ecx, 0x7ef4
cmp ecx, 0x7ef4
jbe 0x180054df5
sub r8, 1
jne 0x180054df0
mov eax, r9d
shr eax, 1
add r9d, eax
mov dword [rbp - 0x24], r9d
jmp case.0x180054a44.206
mov ecx, dword [rbp - 0x24]
mov eax, 0x51eb851f
mul ecx
mov eax, 0xcccccccd
shr edx, 5
mov dword [0x1800a3ad8], edx
mul ecx
mov eax, 0xcccccccd
shr edx, 5
mov dword [0x1800a3adc], edx
mul ecx
shr edx, 3
mov dword [0x1800a3ae0], edx
jmp case.0x180054a44.206
mov rax, qword [rdx]
mov qword [rbp - 0x10], rax
jmp case.0x180054a44.206
lea rdx, [rbp + 0x48]
mov dword [rbp + 0x48], 0
mov ecx, 0xab
call fcn.1800052b0
inc ebx
mov dword [rbp + 0x48], ebx
cmp ebx, r14d
jae case.0x180054a44.205
mov rdx, qword [rbp + 0x50]
jmp 0x180054a1d