Function at 0x18005efb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x18], r8d
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xba0]
sub rsp, 0xca0
mov r14, qword [rbp + 0xbf0]
lea r15d, [r8 + 0xb]
mov edi, dword [rsp + 0x5c]
mov r12, r9
xor r9d, r9d
mov rsi, rdx
mov r13, rcx
mov ebx, r8d
lea r10d, [r9 + 1]
cmp r8d, r15d
jae 0x18005f239
mov eax, dword [rbp + 0xbe0]
lea rdx, [0x180000000]
mov dword [rsp + 0x40], eax
nop dword [rax + rax]
lea eax, [rbx - 0x64]
cmp eax, 0x23
ja case.0x18005f03e.111
movzx eax, byte [rdx + rax + 0x5f600]
mov ecx, dword [rdx + rax*4 + 0x5f5d0]
add rcx, rdx
jmp rcx
movzx eax, word [rsi]
mov word [rbp + 0x9c8], ax
mov dword [rbp + 0xadc], r9d
jmp case.0x18005f03e.111
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x80], rax
jmp case.0x18005f03e.111
cmp byte [rsi], 0x20
jne case.0x18005f03e.111
mov rcx, qword [rsi + 6]
test rcx, rcx
je case.0x18005f03e.111
movsxd rax, dword [r14]
test eax, eax
js case.0x18005f03e.111
cmp eax, dword [rsi + 2]
jg case.0x18005f03e.111
mov rcx, qword [rcx]
mov rdx, rax
mov eax, dword [r12]
mov dword [rcx + rdx*4], eax
jmp 0x18005f221
xor r9d, r9d
mov dword [rsp + 0x40], 0xffffffff
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], 0x8000
lea rcx, [rsp + 0x50]
lea r8d, [r9 + 0x54]
call fcn.18001d3b0
mov edi, dword [rsp + 0x5c]
mov ebx, dword [rsp + 0x58]
cmp edi, ebx
jb 0x18005f0ff
lea eax, [rbx + rbx]
mov r8d, 0xac
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x48]
call fcn.180067140
mov edi, dword [rsp + 0x5c]
mov ebx, dword [rsp + 0x58]
mov r8d, ebx
mov ecx, edi
add rcx, qword [rsp + 0x50]
sub r8d, edi
mov r9, rsi
mov edx, 1
call fcn.18007624c
test eax, eax
je 0x18005f125
add edi, eax
mov dword [rsp + 0x5c], edi
jmp 0x18005f0d7
mov ebx, 0x65
jmp 0x18005f218
mov eax, dword [rsi]
mov dword [rbp + 0x4f8], eax
jmp case.0x18005f03e.111
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x50], xmm0
mov edi, dword [rsp + 0x5c]
movdqa xmmword [rsp + 0x70], xmm1
jmp case.0x18005f03e.111
mov ecx, 0xfffffff6
lea rdx, [rbp + 0x580]
call qword [0x1800d5910]
movzx eax, word [rbp + 0xada]
mov word [0x1800d5918], ax
movzx eax, word [rbp + 0xadc]
mov word [rsp + 0x60], ax
jmp 0x18005f218
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x190]
jmp 0x18005f1fe
movzx eax, byte [r13]
mov byte [rbp + 0x3e0], al
mov dword [rbp + 0x4ec], r9d
mov dword [rbp + 0x50c], 0x36353635
mov byte [rbp + 0x3e1], 0
jmp case.0x18005f03e.111
movsx eax, word [0x1800d591c]
mov dword [rbp + 0xae8], eax
mov qword [rbp + 0xad2], r9
mov word [rbp + 0xada], r9w
jmp case.0x18005f03e.111
lea rax, [rbp - 0x80]
mov dword [rbp + 0x4f4], 5
mov dword [rbp + 0x4f0], eax
lea rdx, [rbp - 0x70]
mov word [rbp + 0x510], r10w
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], 0x200
xor r8d, r8d
mov ecx, 0xad
call fcn.18006bdd0
mov r10d, 1
xor r9d, r9d
lea rdx, [0x180000000]
inc ebx
cmp ebx, r15d
jb 0x18005f020
mov ecx, dword [rsp + 0x40]
jmp 0x18005f243
mov ecx, dword [rbp + 0xbe0]
mov dword [rsp + 0x40], ecx
mov esi, dword [rbp + 0xbe0]
lea r13d, [rsi + 0x4f1]
cmp esi, r13d
jae 0x18005f5c9
mov rbx, qword [rsp + 0x60]
mov r15d, dword [rbp + 0xbe0]
mov r12d, dword [rbp + 0xbe0]
movaps xmmword [rsp + 0xc80], xmm7
movsd xmm7, qword [0x1800a3c90]
movaps xmmword [rsp + 0xc70], xmm8
movsd xmm8, qword [0x1800a3c78]
movaps xmmword [rsp + 0xc90], xmm6
nop word [rax + rax]
cmp esi, 0x14a
ja 0x18005f45f
je 0x18005f3a4
mov eax, esi
sub eax, 0x64
je 0x18005f316
sub eax, 0x16
je 0x18005f2e7
sub eax, 0xb
je 0x18005f58c
sub eax, 0x52
je 0x18005f2da
cmp eax, 0x16
je 0x18005f58c
jmp 0x18005f57a
call fcn.180078a74
mov r15d, eax
jmp 0x18005f573
mov ecx, 0xffffff37
lea rdx, [rbp - 0x70]
call qword [0x1800d5910]
movsxd rbx, dword [rbp + 0x4ec]
xor r9d, r9d
mov ecx, dword [rsp + 0x40]
mov word [0x1800d5918], r9w
mov qword [rsp + 0x60], rbx
jmp 0x18005f57a
mov eax, edi
lea rdx, [rbp + 0xbe0]
shr eax, 3
lea rcx, [rsp + 0x70]
xor r9d, r9d
add eax, 0x40
add eax, edi
mov dword [rbp + 0xbe0], eax
lea r8d, [r9 + 0x54]
call fcn.18001d3b0
call fcn.180078a74
mov rdx, qword [rsp + 0x50]
lea r9, [0x18005f630]
mov r12d, eax
mov dword [rsp + 0x40], edi
mov eax, dword [0x1800bc160]
lea r8, [rsp + 0x48]
mov dword [rbp + 0xbe0], eax
lea rcx, [rsp + 0x40]
mov eax, dword [0x1800d5928]
mov dword [rsp + 0x48], eax
lea rax, [rbp + 0xbe0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 0xd0
mov qword [rsp + 0x20], rax
call fcn.180016290
mov ecx, eax
mov dword [rsp + 0x40], eax
jmp 0x18005f577
test ecx, ecx
je 0x18005f3c9
mov ecx, 2
call fcn.180075c08
mov rcx, rax
lea rdx, str._opaqueNetworkId
call fcn.18006cbd0
xor r9d, r9d
jmp 0x18005f4bb
cmp dword [0x1800d592c], 0
je 0x18005f443
mov esi, 0x2e
mov eax, esi
sub eax, 0x2c
je 0x18005f418
sub eax, 1
je 0x18005f40f
cmp eax, 1
jne 0x18005f436
lea rdx, str._html__n
mov rcx, r14
call fcn.18006cbd0
lea rdx, str._head__n
mov rcx, r14
call fcn.18006cbd0
lea rdx, str._title___title__n
jmp 0x18005f42e
lea rdx, str.fail_to_get_appdata_directory__jaureg_exit
jmp 0x18005f42e
lea rdx, str.__head__n
mov rcx, r14
call fcn.18006cbd0
lea rdx, str._body__n
mov rcx, r14
call fcn.18006cbd0
dec esi
cmp esi, 0x2b
ja 0x18005f3d7
mov esi, dword [rbp + 0xbe0]
mov r8d, dword [rsp + 0x7c]
mov r9, r14
mov rcx, qword [rsp + 0x70]
mov edx, 1
call fcn.180076554
jmp 0x18005f573
mov eax, esi
sub eax, 0x1bd
je 0x18005f4e7
sub eax, 0x73
je 0x18005f4b6
sub eax, 0x73
je 0x18005f493
sub eax, 0x73
je 0x18005f485
cmp eax, 0x73
je 0x18005f58c
jmp 0x18005f57a
mov dword [rsp + 0x60], ecx
mov rbx, qword [rsp + 0x60]
jmp 0x18005f57a
mov qword [rsp + 0x28], r9
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], r9
xor r8d, r8d
xor r9d, r9d
lea edx, [r9 + 0x62]
call fcn.18005e830
jmp 0x18005f573
mov dword [rsp + 0x40], r9d
mov qword [rsp + 0x28], r9
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], r9
xor r8d, r8d
xor r9d, r9d
mov esi, 0x230
lea edx, [r9 + 0x62]
call fcn.18005e830
mov edi, dword [rsp + 0x5c]
jmp 0x18005f573
cmp dword [0x1800d592c], 0
je 0x18005f512
lea rdx, str.__body__n
mov rcx, r14
call fcn.18006cbd0
lea rdx, str.__html__n
mov rcx, r14
call fcn.18006cbd0
mov ecx, dword [rsp + 0x40]
cmp dword [0x1800d5930], 0
je 0x18005f577
cmp r12d, 0xffffffff
je 0x18005f577
cmp r15d, 0xffffffff
je 0x18005f577
mov eax, r15d
mov ecx, 2
sub eax, r12d
movd xmm6, eax
cvtdq2pd xmm6, xmm6
divsd xmm6, xmm7
comisd xmm8, xmm6
jbe 0x18005f557
mulsd xmm6, xmm7
call fcn.180075c08
lea rdx, str.Microsoft.DirectMusicCommandTrack
jmp 0x18005f563
call fcn.180075c08
lea rdx, str.Cant_translate_gname__s_to__s
movaps xmm2, xmm6
movq r8, xmm6
mov rcx, rax
call fcn.18006cbd0
mov ecx, dword [rsp + 0x40]
xor r9d, r9d
add esi, 0x73
mov dword [rbp + 0xbe0], esi
cmp esi, r13d
jb 0x18005f2a0
movaps xmm6, xmmword [rsp + 0xc90]
mov rax, rbx
movaps xmm7, xmmword [rsp + 0xc80]
movaps xmm8, xmmword [rsp + 0xc70]
lea r11, [rsp + 0xca0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rax, qword [rsp + 0x60]
jmp 0x18005f5a8