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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x180290500]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov r10, r8
mov qword [rsp + 0x48], r8
mov r12d, edx
mov dword [rsp + 0x70], edx
mov rdi, rcx
mov qword [rbp - 0x60], rcx
xor edx, edx
mov qword [rbp + 8], rdx
mov r14d, 0xf
mov qword [rbp + 0x10], r14
mov byte [rbp - 8], dl
lea eax, [r12 - 0xd]
mov dword [rbp - 0x70], eax
cmp r12d, eax
jbe 0x180010f88
lea eax, [r12 - 0xb6]
mov dword [rsp + 0x54], eax
lea r8, [0x180000000]
lea r9d, [rdx + 0x20]
mov r11d, 0x3220
movzx esi, byte [rsp + 0x40]
movzx ebx, word [rsp + 0x40]
mov dword [rsp + 0x50], ebx
movzx r13d, byte [rsp + 0x40]
mov r15, qword [rbp - 0x60]
nop dword [rax]
cmp eax, 0x34
ja case.0x18001094d.6
movzx eax, byte [r8 + rax + 0x11024]
mov ecx, dword [r8 + rax*4 + 0x10ff0]
add rcx, r8
jmp rcx
mov byte [rsp + 0x44], 1
jmp case.0x18001094d.6
mov ebx, dword [rsp + 0x5c]
mov edx, ebx
xor r8d, r8d
mov rcx, rdi
call fcn.18006ccf0
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180010977
mov rdx, qword [rdi]
xor eax, eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov r8d, ebx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x180010f3c
mov rax, qword [rsp + 0x78]
cmp rax, 0xffffffffffffffff
jne 0x180010ac9
mov ebx, 0xa
nop word [rax + rax]
cmp ebx, 0xa
ja case.default.0x1800109c6
mov eax, ebx
mov ecx, dword [r8 + rax*4 + 0x1105c]
add rcx, r8
jmp rcx
xor r8d, r8d
lea rdx, [rbp - 0x38]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.dbghelp.dll_SymInitialize]
mov dword [rbp - 0x80], eax
jmp case.default.0x1800109c6
mov eax, 0x36
mov word [rbp - 0x26], ax
mov word [rbp - 0x25], r9w
jmp case.default.0x1800109c6
mov dword [rbp - 0x1f], 0x323130
mov byte [rsp + 0x40], 1
jmp case.default.0x1800109c6
mov ecx, edx
movzx eax, byte [rsp + 0x40]
cmp dword [rbp - 0x80], 0
cmovne ecx, eax
mov byte [rsp + 0x40], cl
cmp cl, 0
je case.default.0x1800109c6
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.dbghelp.dll_SymCleanup]
jmp case.default.0x1800109c6
mov eax, 0x54
mov word [rbp - 0x38], ax
mov eax, 0x68
mov word [rbp - 0x37], ax
mov eax, 0x75
mov word [rbp - 0x36], ax
jmp case.default.0x1800109c6
mov dword [rbp - 0x35], 0x754120
jmp case.default.0x1800109c6
mov qword [rbp - 0x68], 0xffffffffffffffff
jmp case.default.0x1800109c6
mov eax, 0x67
mov word [rbp - 0x32], ax
mov word [rbp - 0x31], r9w
mov word [rbp - 0x30], r9w
mov dword [rbp - 0x2f], 0x31302032
jmp case.default.0x1800109c6
mov eax, 0x3a
mov word [rbp - 0x2b], ax
mov dword [rbp - 0x2a], 0x3a3733
mov eax, 0x33
mov word [rbp - 0x27], ax
jmp case.default.0x1800109c6
mov dword [rbp - 0x24], 0x544450
mov word [rbp - 0x21], r11w
dec ebx
lea eax, [rbx + 0xf2]
cmp eax, 0xf1
mov edx, 0
lea r8, [0x180000000]
lea r9d, [rdx + 0x20]
mov r11d, 0x3220
ja 0x1800109b0
mov rax, qword [rsp + 0x78]
mov dword [rsp + 0x60], edx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x5c], eax
jmp 0x180010f3c
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x5c]
cmp eax, dword [rsp + 0x60]
je 0x180010f3c
mov r12d, 0x115
mov dword [rsp + 0x68], r12d
nop word [rax + rax]
cmp r12d, 0x2a4
ja 0x180010d70
je 0x180010b6d
xor edx, edx
cmp r12d, 0x115
je 0x180010b65
cmp r12d, 0x19a
je 0x180010b58
cmp r12d, 0x21f
jne 0x180010d96
mov qword [rdi + 0x10], rdx
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180010b51
mov rax, qword [rdi]
mov byte [rax], dl
jmp 0x180010d96
mov qword [rbp - 0x58], rdx
mov dword [rsp + 0x64], edx
jmp 0x180010d96
mov sil, 1
jmp 0x180010d96
lea rdx, [rsp + 0x64]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.WINMM.dll_midiInGetID]
movzx esi, sil
test eax, eax
mov edx, 0
cmovne esi, edx
mov dword [rbp - 0x78], esi
test sil, sil
je 0x180010d96
mov esi, edx
lea r14d, [rdx + 8]
mov r12d, dword [rsp + 0x58]
cmp esi, 7
ja case.default.0x180010bbe
mov eax, esi
lea r8, [0x180000000]
mov ecx, dword [r8 + rax*4 + 0x11088]
add rcx, r8
jmp rcx
mov byte [rbp + 0x27], 0
mov r13b, 1
mov ebx, 0x100
mov dword [rsp + 0x50], ebx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x10], eax
jmp case.default.0x180010bbe
mov eax, 0x6f
mov word [rbp + 0x1d], ax
mov eax, 0x706d
mov word [rbp + 0x1e], ax
mov dword [rbp + 0x20], 0x796e61
jmp case.default.0x180010bbe
test r13b, r13b
je case.default.0x180010bbe
movsx rax, bx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x180010c48
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r13b, r13b
xor edx, edx
jmp case.default.0x180010bbe
mov ebx, 0x115
nop dword [rax]
mov eax, ebx
sub eax, 0x115
je 0x180010caa
cmp eax, 1
jne 0x180010c95
xor eax, eax
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x50]
mov edx, 4
mov rcx, rdi
call sub.dbghelp.dll_MiniDumpReadDumpStream
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
inc ebx
cmp ebx, 0x117
jb 0x180010c50
mov ebx, dword [rsp + 0x50]
jmp case.default.0x180010bbe
xor edx, edx
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rdx
jmp 0x180010c97
mov r12d, 0x2c
mov ecx, edx
movzx eax, r13b
test r15, r15
cmovne ecx, eax
movzx r13d, cl
jmp case.default.0x180010bbe
mov eax, 0x59
mov word [rbp + 0x18], ax
mov eax, 0x6f
mov word [rbp + 0x19], ax
mov eax, 0x6d
mov word [rbp + 0x1a], ax
mov eax, 0x4369
mov word [rbp + 0x1b], ax
jmp case.default.0x180010bbe
movsx eax, bx
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor edx, edx
lea rcx, [rdx - 1]
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r15, rax
xor edx, edx
jmp case.default.0x180010bbe
mov ecx, dword [rsp + 0x64]
mov r8d, r12d
lea rdx, [rbp - 0x38]
call qword [sym.imp.WINMM.dll_midiInGetDevCapsA]
xor edx, edx
jmp case.default.0x180010bbe
mov eax, 0x4e
mov word [rbp + 0x23], ax
mov eax, 0x61
mov word [rbp + 0x24], ax
mov eax, 0x656d
mov word [rbp + 0x25], ax
inc esi
sub r14, 1
jne 0x180010ba1
mov dword [rsp + 0x58], r12d
mov r12d, dword [rsp + 0x68]
mov rdi, qword [rbp - 0x60]
mov esi, dword [rbp - 0x78]
jmp 0x180010d96
cmp r12d, 0x329
je 0x180010d8f
cmp r12d, 0x3ae
jne 0x180010d94
mov ebx, dword [rsp + 0x44]
mov r14, qword [rbp + 0x10]
jmp 0x180010f8c
mov byte [rsp + 0x44], 0
xor edx, edx
add r12d, 0x85
mov dword [rsp + 0x68], r12d
cmp r12d, 0x433
jb 0x180010b10
mov r14d, 0xf
mov r12d, dword [rsp + 0x70]
jmp 0x180010f3e
movsxd rdx, dword [rdi]
lea r9, [0x18001bf60]
mov r8d, 8
mov rcx, r10
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
jmp 0x180010f3c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r10], xmm0
mov qword [r10 + 0x10], rax
jmp case.0x18001094d.6
mov qword [rbp - 0x78], 0x29
mov rax, qword [rdi]
mov qword [rsp + 0x70], rax
lea rax, [0x180084200]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xac
mov r9, r10
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x70]
xor ecx, ecx
call fcn.18004d630
test rax, rax
je 0x180010f3c
mov ebx, dword [rax + 0x10]
mov r14, qword [rbp + 0x10]
jmp 0x180010f8c
mov dword [rsp + 0x44], 1
jmp case.0x18001094d.6
mov rcx, r10
cmp qword [r10 + 0x18], 8
jb 0x180010e55
mov rcx, qword [r10]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
jmp 0x180010f3c
mov rcx, r9
call fcn.1800739b0
mov rbx, rax
mov qword [rbp - 0x40], rax
test rax, rax
je 0x180010ebc
mov rdx, qword [rsp + 0x48]
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], r14
mov byte [rbx], al
mov rcx, rbx
call fcn.18001b050
jmp 0x180010ebf
mov rbx, rax
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 8], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 8], xmm1
mov ebx, 0x7b
mov eax, ebx
sub eax, 0x75
je 0x180010f3c
sub eax, 1
je 0x180010f0f
sub eax, 1
je 0x180010f01
cmp eax, 4
jne 0x180010f35
mov r8d, 0x91
lea rdx, [rbp - 8]
mov rcx, qword [0x1802906b0]
call fcn.180028890
jmp 0x180010f35
mov qword [0x10], 1
jmp 0x180010f35
mov dword [0], 0x1b
inc qword [rbp + 0xc8]
mov rax, qword [rbp + 0xb8]
test rax, rax
je 0x180010f35
xor edx, edx
lea rcx, [rbp - 8]
call rax
dec ebx
cmp ebx, 0x77
ja 0x180010ed3
xor edx, edx
mov r11d, 0x3220
mov r9d, 0x20
lea r8, [0x180000000]
mov r10, qword [rsp + 0x48]
dec r12d
mov dword [rsp + 0x70], r12d
dec dword [rsp + 0x54]
cmp r12d, dword [rbp - 0x70]
jbe 0x180010f84
mov ebx, dword [rsp + 0x50]
mov eax, dword [rsp + 0x54]
jmp 0x180010930
mov byte [rsp + 0x44], 0
mov ebx, dword [rsp + 0x44]
mov r14, qword [rbp + 0x10]
jmp 0x180010f8c
mov r14, qword [rbp + 0x10]
mov ebx, dword [rsp + 0x44]
cmp r14, 0x10
jb 0x180010fc7
lea rdx, [r14 + 1]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180010fc2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180010fc2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800739ec
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.180073f00
mov rbx, qword [rsp + 0x178]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret