Function at 0x140006a20
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
push r12
push r14
lea rbp, [rsp - 0x178]
sub rsp, 0x278
xor eax, eax
xorps xmm0, xmm0
xorps xmm1, xmm1
mov dword [rbp + 0x1c], eax
xor r12d, r12d
mov dword [rbp - 0x2c], eax
mov qword [rsp + 0x30], r12
mov r14d, 0x80004005
lea r8d, [rax + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rbp - 0x5c], r14d
mov edx, 0x80000000
mov dword [rbp - 0x44], eax
movups xmmword [rbp + 0xc], xmm0
mov dword [rbp - 0x74], eax
movups xmmword [rbp - 0x3c], xmm1
mov dword [rsp + 0x20], 3
movups xmmword [rbp - 0x54], xmm0
movups xmmword [rsp + 0x7c], xmm1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140007d09
mov qword [rsp + 0x2a0], rsi
lea rdx, [rbp + 0x3c]
mov qword [rsp + 0x270], rdi
mov rcx, rax
mov qword [rsp + 0x268], r13
mov qword [rsp + 0x260], r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x38], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rbp + 0x90]
mov qword [rsp + 0x20], r12
lea r8d, [r12 + 0xc]
mov rcx, rbx
lea rdx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rbp + 0x84]
mov dword [rbp + 0x1a8], eax
mov rax, qword [rbp + 0x38]
add rax, 0xfffffffffffffff8
mov dword [rbp + 0x1ac], r12d
cmp qword [rbp + 0x1a8], rax
ja 0x140006e8d
cmp dword [rbp + 0x80], 0x46464952
jne 0x140006e8d
mov eax, dword [rbp + 0x88]
cmp eax, 0x45564157
je 0x140006b53
cmp eax, 0x414d5758
jne 0x140006e8d
mov r14d, dword [rbp + 0x18]
mov r13d, dword [rbp - 0x48]
mov r15d, dword [rbp - 0x78]
mov qword [0x140040748], 0xc
nop word [rax + rax]
lea r9, [rbp + 0x20]
mov qword [rsp + 0x20], r12
mov r8d, 8
lea rdx, [rbp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 8
jne 0x140006c32
cmp dword [rbp + 0x34], r12d
je 0x140006c32
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, eax
mov rax, qword [rbp + 0x30]
cmp eax, 0x20746d66
je 0x140006bf2
cmp eax, 0x61746164
je 0x140006be9
cmp eax, 0x6c706d73
je 0x140006be0
cmp eax, 0x73647064
jne 0x140006bf9
mov qword [rsp + 0x78], rax
mov r15d, ecx
jmp 0x140006bf9
mov qword [rbp - 0x58], rax
mov r13d, ecx
jmp 0x140006bf9
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x30], ecx
jmp 0x140006bf9
mov qword [rbp + 8], rax
mov r14d, ecx
mov edx, dword [rbp + 0x34]
mov r9d, 1
mov dword [rbp + 0x1a8], edx
xor r8d, r8d
mov dword [rbp + 0x1ac], r12d
mov rcx, rbx
mov rax, qword [rbp + 0x1a8]
add rax, 8
add qword [0x140040748], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140006b70
mov rax, qword [rbp + 0x38]
cmp qword [0x140040748], rax
mov dword [rbp + 0x18], r14d
mov dword [rbp - 0x78], r15d
mov dword [rbp - 0x48], r13d
ja 0x140007ccf
mov esi, r12d
mov r12d, dword [rbp + 0xc]
test r12d, r12d
je 0x140006d48
cmp r12d, 0x1000
jb 0x140006cb6
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x140006c7d
mov rcx, rax
call fcn.140018c18
mov qword [rbp - 0x80], rsi
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140006c95
mov rcx, rbx
call fcn.140018c18
mov rbx, rsi
mov qword [rbp - 0x50], rbx
mov rdi, qword [rbp + 0x10]
test rdi, rdi
je 0x140006e68
mov rcx, rdi
call fcn.140018c18
mov rdi, rsi
mov qword [rbp + 0x10], rsi
jmp 0x140006e68
mov rcx, r12
call fcn.140018c2c
mov r8, r12
mov qword [rbp + 0x10], rax
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.1400161b0
xor r9d, r9d
mov rcx, rbx
xor r8d, r8d
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r14d, r14d
lea r9, [rbp - 0x60]
mov r8d, r12d
mov qword [rsp + 0x20], r14
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, word [rdi]
cmp ax, 2
jne 0x140006d1d
movzx eax, word [rdi + 0xc]
xor edx, edx
imul eax, dword [rdi + 4]
movzx ecx, word [rdi + 0x12]
div ecx
mov dword [rdi + 8], eax
jmp 0x140006d26
test ax, ax
je 0x140006e64
movzx eax, word [rdi + 0xc]
test ax, ax
je 0x140006d4c
mov r8d, dword [rbp - 0x3c]
test r8d, r8d
je 0x140006d4c
mov ecx, eax
xor edx, edx
mov eax, r8d
div ecx
mov esi, eax
imul esi, ecx
jmp 0x140006d4c
mov rdi, qword [rbp + 0x10]
mov r14d, dword [rsp + 0x7c]
test r14d, r14d
je 0x140006df1
cmp r12d, 0x1000000
jb 0x140006db3
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x140006d7c
mov rcx, rax
call fcn.140018c18
xor esi, esi
mov qword [rbp - 0x80], rsi
jmp 0x140006d7e
xor esi, esi
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140006d96
mov rcx, rbx
call fcn.140018c18
mov rbx, rsi
mov qword [rbp - 0x50], rbx
test rdi, rdi
je 0x140006e68
mov rcx, rdi
call fcn.140018c18
mov rdi, rsi
mov qword [rbp + 0x10], rsi
jmp 0x140006e68
mov rcx, r14
call fcn.140018c2c
xor r9d, r9d
mov qword [rbp - 0x80], rax
xor r8d, r8d
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r15, qword [rbp - 0x80]
lea r9, [rbp - 0x60]
xor eax, eax
mov rdx, r15
mov r8d, r14d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x140006df5
mov r15, qword [rbp - 0x80]
mov r14d, dword [rbp - 0x54]
test r14d, r14d
je 0x140006e64
cmp r12d, 0x400
jb 0x140006e23
test r15, r15
je 0x140006d7c
mov rcx, r15
call fcn.140018c18
xor esi, esi
mov qword [rbp - 0x80], rsi
jmp 0x140006d7e
mov rcx, r14
call fcn.140018c2c
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rbp - 0x50], rax
mov edx, r13d
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0x58]
lea r9, [rbp - 0x60]
xor eax, eax
mov r8d, r14d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x140006e68
mov rbx, qword [rbp - 0x50]
mov r8, r12
lea rcx, [rbp + 0xe0]
mov rdx, rdi
call fcn.140015b00
cmp r12d, 0x10
ja 0x140006e9d
xor r12d, r12d
mov word [rbp + 0xf0], r12w
jmp 0x140006ea0
mov rdi, qword [rbp + 0x10]
mov rbx, qword [rbp - 0x50]
mov esi, dword [rbp + 0x1a8]
jmp 0x140006ea0
xor r12d, r12d
test esi, esi
je 0x140007c9f
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rsi, vtable.StreamingVoiceContext.0
xor r9d, r9d
xor r8d, r8d
mov qword [rbp + 0x50], rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
cmp qword [0x140040878], 0
mov qword [rbp + 0x58], rax
jne 0x140006f58
xor edx, edx
lea rcx, str.xaudio2_9.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x140040878], rax
test rax, rax
jne 0x140006f17
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x140006f92
movzx eax, ax
or eax, 0x80070000
jmp 0x140006f90
lea rdx, str.XAudio2CreateWithVersionInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140040870], rax
test rax, rax
jne 0x140006f6b
mov rcx, qword [0x140040878]
lea rdx, str.XAudio2Create
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140040880], rax
mov r9, rax
test rax, rax
jne 0x140006f5f
jmp 0x140006eff
mov r9, qword [0x140040880]
mov rax, qword [0x140040870]
test rax, rax
je 0x140006f81
xor edx, edx
lea rcx, [rbp - 0x68]
mov r9d, 0xa00000c
mov r8d, 0xffffffff
call rax
jmp 0x140006f90
xor edx, edx
lea rcx, [rbp - 0x68]
mov r8d, 0xffffffff
call r9
test eax, eax
jne 0x140007c8b
mov rcx, qword [rbp - 0x68]
lea rdx, [rbp + 0x98]
mov r14d, 6
xor r9d, r9d
mov dword [rsp + 0x38], r14d
xor r8d, r8d
mov qword [rsp + 0x30], r12
mov rax, qword [rcx]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call qword [rax + 0x38]
test eax, eax
jne 0x140007c81
mov rcx, qword [rbp - 0x68]
lea rdx, [rbp + 0x50]
movss xmm0, dword [0x14002e01c]
lea r9d, [r14 + 2]
mov qword [rsp + 0x38], r12
lea r8, [rbp + 0xe0]
mov qword [rsp + 0x30], r12
mov rax, qword [rcx]
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x48]
movss dword [rsp + 0x20], xmm0
call qword [rax + 0x28]
test eax, eax
jne 0x140007c71
lea rcx, [0x1400406f8]
call qword [sym.imp.XAudio2_9.dll_Ordinal_3]
test eax, eax
jne 0x140007c63
mov ecx, 0x468
call fcn.140014b2c
mov rcx, rax
call fcn.1400040b0
mov rsi, rax
test rax, rax
je 0x140007051
mov rax, qword [rax]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [rax + 0x30]
movzx ecx, word [rbp + 0xe2]
lea rdx, [rsp + 0x70]
mov rax, qword [0x1400406f8]
cmp ecx, r14d
mov qword [0x1400407a0], rax
mov r8d, ecx
mov eax, ecx
mov dword [0x1400407bc], ecx
cmova eax, r14d
mov dword [0x1400407ac], ecx
mov rcx, qword [rbp - 0x68]
mov r9d, 0xbb80
mov dword [0x140040740], eax
lea rax, [0x140040750]
mov qword [0x140040730], rax
lea rax, [0x140040768]
mov qword [0x140040738], rax
lea rax, [0x1400407a0]
mov qword [rsp + 0x38], r12
mov qword [0x140040794], rax
mov dword [0x1400407b8], 1
mov qword [0x1400407b0], rsi
mov dword [0x1400407a8], 1
mov dword [0x140040790], 2
mov rax, qword [rcx]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [rax + 0x30]
test eax, eax
jne 0x140007c45
mov rcx, qword [rsp + 0x70]
lea rdx, [0x140040790]
mov rax, qword [rcx]
call qword [rax + 0x10]
test eax, eax
jne 0x140007c37
mov rcx, qword [rsp + 0x70]
lea r8, [rbp + 0x24]
mov r9d, 4
mov dword [rbp + 0x24], r12d
mov dword [rsp + 0x20], r12d
mov rax, qword [rcx]
lea edx, [r9 - 3]
call qword [rax + 0x30]
mov rax, qword [rsp + 0x70]
lea rdx, [0x140040710]
mov rcx, qword [rsp + 0x48]
mov qword [0x140040724], rax
lea rax, [0x140040720]
mov qword [0x140040714], rax
mov dword [0x140040720], r12d
mov dword [0x140040710], 1
mov rax, qword [rcx]
call qword [rax + 8]
test eax, eax
jne 0x140007c37
movzx r11d, word [rbp + 0xf2]
xor eax, eax
movzx r9d, word [rbp + 0xec]
xorps xmm0, xmm0
movzx r10d, word [rbp + 0xe0]
mov qword [rbp - 8], rax
mov dword [rbp], eax
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x64], r12d
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
test rbx, rbx
je 0x14000722c
mov ecx, r10d
sub ecx, 1
je 0x1400071da
sub ecx, 1
je 0x1400071fe
sub ecx, 1
je 0x1400071da
cmp ecx, 0xfffb
jne 0x140007233
mov eax, dword [rbx + 0x30]
mov ecx, r9d
inc eax
mov dword [0x14004072c], 1
imul eax, r9d
imul ecx, dword [rbx + 0x2c]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x64], ecx
jmp 0x140007233
mov eax, dword [rbx + 0x30]
xor edx, edx
inc eax
mov dword [0x14004072c], 1
div r11d
xor edx, edx
imul eax, r9d
mov dword [rsp + 0x68], eax
mov eax, dword [rbx + 0x2c]
div r11d
imul eax, r9d
mov dword [rsp + 0x64], eax
jmp 0x140007233
mov dword [0x14004072c], r12d
mov ecx, r10d
sub ecx, 1
je 0x1400072b3
sub ecx, 1
je 0x14000726f
sub ecx, 1
je 0x1400072b3
cmp ecx, 0xfffb
je 0x1400072b3
mov esi, dword [rsp + 0x7c]
lea edi, [r9 + r9]
mov dword [rbp + 0x1b0], edi
shr esi, 2
mov dword [0x140040780], 1
mov dword [rsp + 0x60], r9d
jmp 0x1400072e9
xor edx, edx
mov dword [0x140040780], 3
mov eax, 0x800
div r11d
xor edx, edx
mov edi, eax
mov eax, dword [rbp - 0x3c]
imul edi, r9d
div edi
xor edx, edx
mov dword [rbp + 0x1b0], edi
mov ecx, eax
mov dword [rsp + 0x60], edi
mov eax, dword [rbp - 0x3c]
div edi
lea eax, [rcx + 1]
test edx, edx
cmove eax, ecx
mov dword [rbp + 0x1b8], eax
jmp 0x1400072ef
mov eax, dword [rbp - 0x3c]
xor edx, edx
mov edi, r9d
mov dword [0x140040780], 2
shl edi, 0xc
div edi
xor edx, edx
mov dword [rbp + 0x1b0], edi
mov esi, eax
mov dword [rbp + 0x1b8], eax
mov eax, dword [rbp - 0x3c]
div edi
mov dword [rsp + 0x60], edi
test edx, edx
je 0x1400072ef
inc esi
mov dword [rbp + 0x1b8], esi
mov rbx, qword [rsp + 0x58]
xor r9d, r9d
mov edx, dword [rbp - 0x30]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
lea edx, [rdi*4]
mov r8d, 0x3000
mov r14d, r12d
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0xb8], rax
mov eax, dword [rsp + 0x7c]
test eax, eax
je 0x140007350
xor ecx, ecx
lea edx, [rax*4]
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x60], rax
jmp 0x140007354
mov qword [rbp + 0x60], r12
mov rcx, qword [0x1400406e8]
mov dword [0x140040784], 1
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [rbp - 0x5c], r12d
mov r13d, r12d
mov r15d, r12d
jmp 0x140007385
mov rbx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x7c]
mov esi, r15d
imul esi, edi
add rsi, qword [rbp + 0xb8]
mov qword [rbp + r12*8 + 0xb8], rsi
test eax, eax
je 0x1400073bc
mov ecx, eax
movsxd rax, r15d
shr rcx, 2
imul rcx, rax
mov rax, qword [rbp + 0x60]
lea rcx, [rax + rcx*4]
mov qword [rbp + r12*8 + 0x60], rcx
xor eax, eax
lea r9, [rsp + 0x40]
mov r8d, edi
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [0x14004072c], 0
mov ebx, dword [rsp + 0x40]
mov qword [rbp - 0x20], rsi
je 0x140007472
mov ecx, dword [rsp + 0x68]
test ecx, ecx
je 0x140007472
lea eax, [rbx + r13]
cmp eax, ecx
jb 0x140007472
cmp r13d, ecx
ja 0x140007472
mov edi, ecx
xor edx, edx
mov ecx, dword [rsp + 0x64]
sub edi, r13d
mov eax, ecx
mov r13d, ecx
div dword [rsp + 0x60]
mov edx, dword [rbp - 0x30]
xor r9d, r9d
add edx, ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x140007484
mov eax, dword [rbp + 0x1b0]
cmp edi, eax
jae 0x140007480
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x40]
mov r8d, eax
mov edx, edi
xor eax, eax
sub r8d, edi
add rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r13d, dword [rsp + 0x40]
mov edi, dword [rbp + 0x1b0]
mov ebx, edi
add r13d, dword [rsp + 0x64]
jmp 0x14000748a
add r13d, ebx
cmp r13d, dword [rbp - 0x3c]
cmova r13d, dword [rbp - 0x3c]
jmp 0x14000748a
mov edi, eax
jmp 0x14000748a
mov edi, dword [rbp + 0x1b0]
mov eax, dword [0x140040708]
cmp eax, dword [0x14004070c]
je 0x1400074c2
mov rcx, qword [rsp + 0x70]
lea r8, [rbp + 0x28]
mov r9d, 4
mov dword [0x14004070c], eax
mov dword [rbp + 0x28], eax
mov dword [rsp + 0x20], 0
mov rax, qword [rcx]
lea edx, [r9 - 3]
call qword [rax + 0x30]
movzx eax, word [rbp + 0xe0]
cmp ax, 1
je 0x140007605
cmp ax, 3
je 0x140007605
mov ecx, 0xfffe
cmp ax, cx
je 0x140007605
cmp ax, 2
jne 0x140007542
mov eax, dword [rbp + 0x1b8]
xor ecx, ecx
dec eax
cmp r14d, eax
mov eax, 0x40
cmove ecx, eax
mov dword [rbp - 0x28], ecx
cmp ebx, edi
jae 0x14000751f
mov r8d, edi
mov ecx, ebx
sub r8d, ebx
add rcx, rsi
xor edx, edx
call fcn.1400161b0
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x24], edi
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0xa8]
mov esi, dword [rbp + 0x1b8]
jmp 0x14000763a
mov esi, dword [rbp + 0x1b8]
lea eax, [r14 + 2]
mov r8d, r14d
cmp eax, esi
jb 0x140007561
neg r8d
mov eax, 0x40
lea ebx, [rsi + r8]
jmp 0x14000756b
xor eax, eax
mov ebx, 2
neg r8d
mov dword [rbp - 0x28], eax
mov eax, ebx
imul eax, dword [rsp + 0x60]
mov dword [rbp - 0x24], eax
test r14d, r14d
je 0x1400075c7
mov r11d, r14d
cmp r14d, esi
jae 0x1400075dd
mov rcx, qword [rbp + r12*8 + 0x60]
lea eax, [r8 + rsi]
mov r9, qword [rbp - 0x80]
lea r10d, [r14 - 1]
mov r8, qword [rbp - 0x80]
sub r9, rcx
lea rdx, [rcx + r11*4]
movsxd rcx, eax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r9 + rdx]
lea rdx, [rdx + 4]
sub eax, dword [r8 + r10*4]
mov dword [rdx - 4], eax
sub rcx, 1
jne 0x1400075b0
jmp 0x1400075dd
mov r8d, dword [rsp + 0x7c]
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rbp + r12*8 + 0x60]
call fcn.140015b00
mov r11d, r14d
mov rax, qword [rbp + r12*8 + 0x60]
lea r8, [rbp + 0x40]
mov dword [rbp + 0x48], ebx
lea rdx, [rbp - 0x28]
lea rcx, [rax + r11*4]
mov qword [rbp + 0x40], rcx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0xa8]
jmp 0x14000763f
mov esi, dword [rbp + 0x1b8]
xor ecx, ecx
lea eax, [rsi - 1]
cmp r14d, eax
mov eax, 0x40
cmove ecx, eax
mov dword [rbp - 0x28], ecx
test ebx, ebx
je 0x14000763a
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x24], ebx
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0xa8]
mov ebx, 1
add r14d, ebx
cmp r14d, esi
jae 0x140007657
inc r15d
inc r12
cmp r15d, 4
jl 0x140007380
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x50], r13d
mov rax, qword [rcx]
call qword [rax + 0x98]
nop
mov rcx, qword [rsp + 0x70]
lea r8, [0x140040730]
mov r9d, 0x14
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rcx, qword [0x140040788]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
test eax, eax
je 0x140007bd7
mov rcx, qword [0x140040700]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400076e1
mov eax, dword [0x140040744]
xor r8d, r8d
mov rcx, qword [rsp + 0x48]
inc eax
xor edx, edx
mov dword [0x140040744], eax
test al, 1
mov rax, qword [rcx]
je 0x1400076db
call qword [rax + 0xa0]
jmp 0x1400076e1
call qword [rax + 0x98]
mov rcx, qword [rbp + 0x58]
mov edx, 5
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007670
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp + 0xa0]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0xc8]
mov ecx, dword [rbp + 0xa8]
xor edx, edx
mov eax, r14d
sub eax, ecx
imul eax, eax, 0x64
div esi
mov dword [0x14004071c], eax
cmp ecx, 4
jae 0x140007ac1
test ecx, ecx
je 0x140007bf6
mov byte [rbp + 0x1a8], 0
cmp r14d, esi
jae 0x140007761
mov ebx, 0xffffffff
xchg dword [0x140032b24], ebx
cmp ebx, 0xffffffff
jne 0x140007b2a
mov ebx, dword [rsp + 0x50]
xor eax, eax
jmp 0x140007790
cmp dword [0x14004072c], 0
je 0x140007ac1
mov edx, dword [rbp - 0x30]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov r14d, eax
mov ebx, eax
nop dword [rax]
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x40]
cmp r15d, 4
mov qword [rsp + 0x20], rax
mov r13, rax
mov esi, eax
cmovl r13, r12
cmovl esi, r15d
mov r8d, edi
mov dword [rbp - 0x70], esi
mov r12, qword [rbp + r13*8 + 0xb8]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [0x14004072c], 0
mov edi, dword [rsp + 0x40]
mov qword [rbp - 0x20], r12
je 0x1400079dd
mov ecx, dword [rsp + 0x68]
test ecx, ecx
jne 0x140007863
mov r15d, dword [rbp + 0x1b0]
cmp edi, r15d
jae 0x1400079dd
mov edx, dword [rbp - 0x30]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
test edi, edi
jne 0x14000781d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [rbp + 0x1b0]
mov r15d, esi
mov r12, r13
jmp 0x140007782
xor eax, eax
mov byte [rbp + 0x1a8], 1
mov ebx, r15d
mov r14d, eax
sub ebx, edi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x40]
xor eax, eax
mov edx, ebx
add rdx, r12
mov qword [rsp + 0x20], rax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
mov edi, r15d
mov dword [rsp + 0x50], eax
jmp 0x1400078fa
lea eax, [rdi + rbx]
cmp eax, ecx
jb 0x1400079dd
cmp ebx, ecx
ja 0x1400079dd
mov r15d, dword [rbp - 0x30]
mov esi, ecx
mov ecx, dword [rsp + 0x64]
xor edx, edx
mov eax, ecx
mov dword [rsp + 0x50], ecx
div dword [rsp + 0x60]
sub esi, ebx
mov byte [rbp + 0x1a8], 1
mov r14d, eax
add r15d, ecx
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
je 0x1400078f7
mov eax, dword [rbp + 0x1b0]
cmp esi, eax
jae 0x1400078f7
mov rcx, qword [rsp + 0x58]
lea r9, [rsp + 0x40]
mov ebx, eax
mov edx, esi
xor eax, eax
sub ebx, esi
mov r8d, ebx
mov qword [rsp + 0x20], rax
add rdx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
add dword [rsp + 0x50], eax
mov edi, dword [rbp + 0x1b0]
cmp ebx, eax
ja 0x1400078a0
mov esi, dword [rbp - 0x70]
mov eax, dword [0x140040708]
xor r15d, r15d
cmp eax, dword [0x14004070c]
mov ebx, r14d
je 0x140007933
mov rcx, qword [rsp + 0x70]
lea r9d, [r15 + 4]
mov dword [0x14004070c], eax
lea r8, [rbp + 0x2c]
mov dword [rbp + 0x2c], eax
lea edx, [r15 + 1]
mov dword [rsp + 0x20], r15d
mov rax, qword [rcx]
call qword [rax + 0x30]
movzx eax, word [rbp + 0xe0]
cmp ax, 1
je 0x140007acc
cmp ax, 3
je 0x140007acc
mov ecx, 0xfffe
cmp ax, cx
je 0x140007acc
cmp ax, 2
jne 0x1400079ef
mov eax, dword [rbp + 0x1b8]
mov ecx, r15d
dec eax
cmp r14d, eax
mov eax, 0x40
cmove ecx, eax
mov eax, dword [rbp + 0x1b0]
mov dword [rbp - 0x28], ecx
cmp edi, eax
jae 0x14000799a
sub eax, edi
mov ecx, edi
mov r8d, eax
add rcx, r12
xor edx, edx
call fcn.1400161b0
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x28]
mov edi, dword [rbp + 0x1b0]
xor r8d, r8d
mov dword [rbp - 0x24], edi
mov rax, qword [rcx]
call qword [rax + 0xa8]
inc r14d
mov r15d, esi
cmp byte [rbp + 0x1a8], 0
mov r12, r13
mov esi, dword [rbp + 0x1b8]
cmovne r14d, ebx
inc r15d
inc r12
jmp 0x140007670
add ebx, edi
cmp ebx, dword [rbp - 0x3c]
cmova ebx, dword [rbp - 0x3c]
mov dword [rsp + 0x50], ebx
jmp 0x1400078fa
mov r11d, dword [rbp + 0x1b8]
lea eax, [r14 + 2]
neg ebx
cmp eax, r11d
jb 0x140007a0f
mov eax, 0x40
lea edi, [rbx + r11]
mov dword [rbp - 0x28], eax
jmp 0x140007a18
mov edi, 2
mov dword [rbp - 0x28], r15d
mov eax, edi
imul eax, dword [rsp + 0x60]
mov dword [rbp - 0x24], eax
test r14d, r14d
je 0x140007a67
mov r10d, r14d
cmp r14d, r11d
jae 0x140007a7d
mov rcx, qword [rbp + r13*8 + 0x60]
lea eax, [rbx + r11]
mov r15, qword [rbp - 0x80]
lea r9d, [r14 - 1]
mov r8, r15
sub r8, rcx
lea rdx, [rcx + r10*4]
movsxd rcx, eax
nop dword [rax]
mov eax, dword [r8 + rdx]
lea rdx, [rdx + 4]
sub eax, dword [r15 + r9*4]
mov dword [rdx - 4], eax
sub rcx, 1
jne 0x140007a50
jmp 0x140007a7d
mov r8d, dword [rsp + 0x7c]
mov rdx, qword [rbp - 0x80]
mov rcx, qword [rbp + r13*8 + 0x60]
call fcn.140015b00
mov r10d, r14d
mov rax, qword [rbp + r13*8 + 0x60]
lea r8, [rbp + 0x40]
mov dword [rbp + 0x48], edi
lea rdx, [rbp - 0x28]
lea rcx, [rax + r10*4]
mov qword [rbp + 0x40], rcx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0xa8]
cmp byte [rbp + 0x1a8], 0
mov r15d, esi
mov r12, r13
jne 0x140007ab5
add r14d, edi
mov edi, dword [rbp + 0x1b0]
mov esi, dword [rbp + 0x1b8]
inc r15d
inc r12
jmp 0x140007670
mov eax, dword [rbp + 0x1b8]
mov ecx, r15d
dec eax
cmp r14d, eax
mov eax, 0x40
cmove ecx, eax
mov dword [rbp - 0x28], ecx
test edi, edi
je 0x140007b01
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x24], edi
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0xa8]
cmp byte [rbp + 0x1a8], 0
mov r15d, esi
mov esi, dword [rbp + 0x1b8]
mov r12, r13
mov edi, dword [rbp + 0x1b0]
jne 0x140007ac1
inc r14d
inc r15d
inc r12
jmp 0x140007670
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0xb0]
mov rcx, qword [rbp + 0x58]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140007b98
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp + 0xa0]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0xc8]
cmp dword [rbp + 0xa8], 0
je 0x140007b98
mov rcx, qword [rbp + 0x58]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140007b61
imul ebx, esi
mov eax, 0x51eb851f
xor r9d, r9d
xor r8d, r8d
mul ebx
mov rbx, qword [rsp + 0x58]
mov r14d, edx
mov rcx, rbx
mov edx, dword [rbp - 0x30]
shr r14d, 5
mov r13d, r14d
imul r13d, dword [rsp + 0x60]
add edx, r13d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor r12d, r12d
mov r15d, r12d
jmp 0x140007385
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0xb0]
mov rcx, qword [rsp + 0x70]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0xb8]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rbp + 0x10]
mov rbx, qword [rbp - 0x50]
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140007c5c
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rsi, vtable.StreamingVoiceContext.0
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rbp + 0x98]
mov rax, qword [rcx]
call qword [rax + 0x90]
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rbp + 0x58]
mov qword [rbp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x140007cb0
mov rcx, rax
call fcn.140018c18
test rbx, rbx
je 0x140007cbd
mov rcx, rbx
call fcn.140018c18
test rdi, rdi
je 0x140007cca
mov rcx, rdi
call fcn.140018c18
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 0x5c]
mov r15, qword [rsp + 0x260]
mov r13, qword [rsp + 0x268]
mov rdi, qword [rsp + 0x270]
mov rsi, qword [rsp + 0x2a0]
add rsp, 0x278
pop r14
pop r12
pop rbx
pop rbp
ret
mov eax, r14d
add rsp, 0x278
pop r14
pop r12
pop rbx
pop rbp
ret