Function at 0x18005dbc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x418]
sub rsp, 0x518
mov r13, r8
mov r8d, edx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov eax, dword [0x1800bbac0]
test al, 1
jne 0x18005dc15
or eax, 1
mov dword [0x1800bbac0], eax
test al, 2
jne 0x18005dc22
or eax, 2
mov dword [0x1800bbac0], eax
test al, 4
jne 0x18005dc2f
or eax, 4
mov dword [0x1800bbac0], eax
test al, 8
jne 0x18005dc3c
or eax, 8
mov dword [0x1800bbac0], eax
lea eax, [rdx + 0x11]
mov dword [rsp + 0x40], eax
lea rsi, [0x180000000]
mov edx, 4
cmp r8d, eax
jae 0x18005e23b
lea edi, [r8 - 0xa0]
mov dword [rsp + 0x60], edi
lea r8, [0x18009d50c]
lea r10, str.include
lea r11, str.call
lea r12, [0x1800120d0]
lea r14, str.exec
mov r15d, dword [rbp + 0x468]
mov rsi, qword [rsp + 0x78]
mov ecx, eax
cmp edi, 0x5c
ja case.default.0x18005dcbd
lea rcx, [0x180000000]
movzx eax, byte [rcx + rdi + 0x5e71c]
mov ecx, dword [rcx + rax*4 + 0x5e6d8]
lea rax, [0x180000000]
add rcx, rax
jmp rcx
mov eax, dword [0x18009d4e8]
mov dword [rbp - 0x40], eax
movzx eax, word [0x18009d4ec]
mov word [rbp - 0x3c], ax
movabs rax, 0x2e00320033005f
mov qword [rbp - 0x3a], rax
mov word [rbp - 0x32], bx
jmp case.0x18005dcbd.1
mov rax, r13
mov ecx, dword [rsp + 0x68]
test r13, r13
je 0x18005dd0f
nop word [rax + rax]
inc ecx
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x18005dd00
mov dword [rsp + 0x68], ecx
lea eax, [rcx + 1]
mov dword [rsp + 0x50], eax
jmp case.0x18005dcbd.1
mov qword [0x1800bbab0], r8
mov qword [0x1800bbab8], 5
mov qword [0x1800bbac8], r10
mov qword [0x1800bbad0], 7
mov qword [0x1800bbad8], r11
mov qword [0x1800bbae0], rdx
jmp case.0x18005dcbd.1
lea r12, [rbp + 0x10]
add r12, qword [0x1800bbab8]
mov rax, qword [rbp + 0x488]
cmp dword [rax], 0xa
jg 0x18005e291
mov r15d, ebx
mov r14d, ebx
mov dword [rsp + 0x58], ebx
mov rcx, qword [rbp + 0x480]
call fcn.180075494
mov edi, eax
cmp eax, 0xffffffff
je 0x18005e024
nop
test r14d, r14d
je 0x18005df7d
cmp edi, 0x3e
jne 0x18005df14
movsxd rax, r15d
cmp byte [rbp + rax + 0xf], 0x2d
jne 0x18005df14
cmp byte [rbp + rax + 0xe], 0x2d
jne 0x18005df14
mov r14d, 0xf4
mov eax, r14d
sub eax, 0xf1
je 0x18005def7
sub eax, 1
je 0x18005ddf7
sub eax, 1
je 0x18005ddee
cmp eax, 1
jne 0x18005defa
lea eax, [r15 - 2]
movsxd rsi, eax
jmp 0x18005defa
mov dword [rsp + 0x58], ebx
jmp 0x18005defa
mov byte [rbp + rsi + 0x10], 0
sub rsi, 1
je 0x18005de14
cmp byte [rbp + rsi + 0x10], 0x20
jne 0x18005de14
mov byte [rbp + rsi + 0x10], 0
sub rsi, 1
jne 0x18005de02
mov rdi, qword [0x1800bbad0]
mov r8, rdi
mov rdx, qword [0x1800bbac8]
mov rcx, r12
call fcn.180068f40
test eax, eax
jne 0x18005de75
mov rax, qword [rbp + 0x488]
mov eax, dword [rax]
mov dword [rsp + 0x48], eax
lea rdx, [rdi + 1]
add rdx, r12
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x478]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x460]
mov r8d, 0x4c
mov rcx, r13
call fcn.180037430
jmp 0x18005defa
mov rdi, qword [0x1800bbae0]
mov r8, rdi
mov rdx, qword [0x1800bbad8]
mov rcx, r12
call fcn.180068f40
test eax, eax
jne 0x18005deb7
lea rax, [rdi + 1]
add rax, r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
mov r9d, 8
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180036f10
jmp 0x18005defa
mov rdi, qword [0x1800bbaf0]
mov r8, rdi
mov rdx, qword [0x1800bbae8]
mov rcx, r12
call fcn.180068f40
test eax, eax
jne 0x18005defa
lea rdx, [rdi + 1]
add rdx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor ecx, ecx
mov r8d, 0x110
call fcn.180024c60
jmp 0x18005defa
mov r15d, ebx
dec r14d
cmp r14d, 0xf0
ja 0x18005ddc1
mov r14d, dword [rsp + 0x58]
jmp 0x18005e00d
mov r8, qword [0x1800bbab8]
cmp r15d, r8d
jne 0x18005df4b
mov rdx, qword [0x1800bbab0]
lea rcx, [rbp + 0x10]
call fcn.180068f40
test eax, eax
je 0x18005df4b
mov r14d, ebx
mov dword [rsp + 0x58], ebx
movsxd rax, r15d
mov byte [rbp + rax + 0x10], dil
inc r15d
jmp 0x18005e00d
cmp r15d, 0x1fe
jne 0x18005df6d
mov r8, qword [rbp + 0x478]
lea rdx, str.V409_WeightIdx_WeightIdx
mov rcx, r13
call fcn.180064970
mov r15d, ebx
movsxd rax, r15d
mov byte [rbp + rax + 0x10], dil
inc r15d
jmp 0x18005e00d
cmp edi, 0x3c
jne 0x18005dfdb
mov edi, 0x79
cmp edi, 0x79
je 0x18005dfc0
cmp edi, 0x3f56
jne 0x18005dfc6
test r15d, r15d
jle 0x18005dfb4
mov dword [rsp + 0x48], r15d
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x10]
mov rdx, r13
mov ecx, 0xc0
call fcn.180034720
mov byte [rbp + 0x10], 0x3c
mov r15d, 1
jmp 0x18005dfc6
mov r14d, 1
add edi, 0x3edd
cmp edi, 0x7dba
jbe 0x18005df87
mov dword [rsp + 0x58], r14d
jmp 0x18005e00d
movsxd rax, r15d
mov byte [rbp + rax + 0x10], dil
inc r15d
cmp r15d, 0x200
jne 0x18005e00d
mov dword [rsp + 0x48], r15d
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x10]
mov rdx, r13
mov ecx, 0xc0
call fcn.180034720
mov r15d, ebx
mov rcx, qword [rbp + 0x480]
call fcn.180075494
mov edi, eax
cmp eax, 0xffffffff
jne 0x18005dd90
mov edi, dword [rsp + 0x60]
mov r9, qword [rbp + 0x478]
mov edx, 4
lea r8, [0x18009d50c]
lea r10, str.include
lea r11, str.call
lea r14, str.exec
lea r12, [0x1800120d0]
jmp case.0x18005dcbd.1
test r15d, r15d
jle case.0x18005dcbd.1
mov dword [rsp + 0x48], r15d
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x10]
mov rdx, r13
mov ecx, 0xc0
call fcn.180034720
mov r9, qword [rbp + 0x478]
mov edx, 4
lea r8, [0x18009d50c]
lea r10, str.include
lea r11, str.call
jmp case.0x18005dcbd.1
mov qword [0x1800bb530], r13
mov qword [r13 + 0x10], r12
mov qword [r13 + 0x18], r9
jmp case.0x18005dcbd.1
xor edx, edx
lea r8d, [rdx + 0x69]
lea rcx, [rbp - 0x28]
call fcn.18005ff90
test al, al
jne 0x18005e080
mov byte [rsp + 0x50], al
mov rbx, qword [rsp + 0x50]
mov r8, qword [rbp - 0x28]
test r8, r8
je 0x18005e135
mov rcx, qword [rbp - 0x18]
sub rcx, r8
movabs rax, 0x342da7f2f4960343
imul rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x274
mov rax, r8
cmp rdx, 0x1000
jb 0x18005e12d
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005e6d0
mov rcx, r8
call fcn.180066c20
mov rax, rbx
add rsp, 0x518
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rsp + 0x68], ebx
jmp case.0x18005dcbd.1
mov qword [0x1800bbae8], r14
mov qword [0x1800bbaf0], rdx
jmp case.0x18005dcbd.1
mov qword [r13 + 0x38], r9
jmp case.0x18005dcbd.1
lea rax, [0x180016310]
mov qword [r13 + 0x50], rax
mov ecx, 8
call fcn.180066be4
mov qword [rsp + 0x78], rax
jmp 0x18005e080
mov rax, qword [rbp + 0x480]
mov rdx, qword [rsp + 0x78]
mov qword [rdx], rax
lea rax, [0x180015f20]
mov qword [r13 + 0x40], rax
mov qword [r13 + 0x48], rdx
lea rax, [0x180015ec0]
mov qword [r13 + 0x30], rax
mov edx, 4
jmp case.0x18005dcbd.1
lea rax, [0x180015f10]
mov qword [r13 + 0x20], rax
mov rax, qword [rbp + 0x480]
mov qword [r13 + 0x28], rax
jmp case.0x18005dcbd.1
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x57
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180045430
mov qword [rsp + 0x50], rax
jmp 0x18005e080
mov dword [rbp - 0x32], 0x6c0064
mov eax, 0x6c
mov word [rbp - 0x2e], ax
mov ecx, dword [rsp + 0x40]
inc edi
mov dword [rsp + 0x60], edi
lea eax, [rdi + 0xa0]
cmp eax, ecx
jb 0x18005dc94
mov r8d, dword [rbp + 0x468]
lea rsi, [0x180000000]
lea edx, [r8 + 0x12]
mov dword [rsp + 0x40], edx
cmp r8d, edx
jae case.0x18005e28f.1
lea r12d, [r8 - 0xa0]
mov r13, qword [rsp + 0x60]
mov r15, qword [rsp + 0x78]
mov r14, qword [rbp + 0x470]
mov r10d, 0x41
lea r11d, [r10 - 0xf]
lea edi, [r10 + 0x23]
cmp r12d, 0x25
ja case.0x18005e28f.17
movzx eax, byte [rsi + r12 + 0x5e7c4]
mov ecx, dword [rsi + rax*4 + 0x5e77c]
add rcx, rsi
jmp rcx
mov r8, r9
lea rdx, str.Failed_to_set_fillmode_to_wireframe
mov rcx, r13
call fcn.180064970
jmp case.0x18005e28f.1
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rax, qword [rbp + 0x480]
mov r8, qword [rax + 0x98]
lea edx, [r9 + 0x6d]
xor ecx, ecx
call fcn.1800235c0
mov byte [rsp + 0x50], al
mov edx, dword [rsp + 0x40]
mov r8d, dword [rbp + 0x468]
jmp case.0x18005e28f.17
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0xe9
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
lea rcx, [rbp - 0x40]
call fcn.18000df30
mov qword [rsp + 0x78], rax
mov edx, dword [rsp + 0x40]
mov r8d, dword [rbp + 0x468]
jmp case.0x18005e28f.17
mov edx, 2
mov rcx, qword [r13]
call qword [rsp + 0x68]
mov rcx, qword [r13]
call qword [rsp + 0x78]
mov edx, dword [rsp + 0x40]
mov r8d, dword [rbp + 0x468]
jmp case.0x18005e28f.17
mov eax, dword [0x18009d574]
mov dword [rbp - 0x56], eax
mov dword [rbp - 0x52], 0x5f
jmp case.0x18005e28f.17
mov word [rbp - 0x2c], bx
jmp case.0x18005e28f.17
mov r8d, 0xa
lea rdx, [rbp - 0x4e]
lea ecx, [r8 - 8]
call fcn.18006e81c
mov edx, dword [rsp + 0x40]
mov r8d, dword [rbp + 0x468]
jmp case.0x18005e28f.17
mov dword [rbp - 0x70], 0x730077
mov word [rbp - 0x6c], r11w
mov dword [rbp - 0x6a], 0x33005f
mov dword [rbp - 0x66], 0x2e0032
jmp case.0x18005e28f.17
mov dword [rbp - 0x60], 0x6c006c
mov word [rbp - 0x5c], bx
mov dword [rbp - 0x58], 0x77
jmp case.0x18005e28f.17
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0xe9
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 0x16]
lea rcx, [rbp - 0x70]
call fcn.18000df30
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0xe9
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 0x13]
lea rcx, [rbp - 0x58]
call fcn.18000df30
mov r15, rax
mov edx, dword [rsp + 0x40]
mov r8d, dword [rbp + 0x468]
jmp case.0x18005e28f.17
mov rdi, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
cmp rdi, rsi
je 0x18005e486
nop
mov dword [rbp - 0x80], 0x53004d
mov word [rbp - 0x7c], r10w
mov dword [rbp - 0x7a], 0x440046
mov word [rbp - 0x76], bx
mov eax, dword [r14]
cmp dword [rdi + 0x4c], eax
jne 0x18005e468
mov eax, dword [r9]
cmp dword [rdi + 0x58], eax
jne 0x18005e468
lea rcx, [rdi + 0x74]
mov r8d, 5
lea rdx, [rbp - 0x80]
call fcn.18006dc24
test eax, eax
je 0x18005e5f5
mov r10d, 0x41
add rdi, 0x274
cmp rdi, rsi
mov r9, qword [rbp + 0x478]
jne 0x18005e420
mov edx, dword [rsp + 0x40]
mov r8d, dword [rbp + 0x468]
mov byte [rsp + 0x50], 0
jmp case.0x18005e28f.17
mov qword [rsp + 0x60], r14
mov r14d, ebx
mov esi, ebx
mov r13, qword [rbp + 0x470]
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, 0x200
lea rdx, [rbp + 0x210]
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18005e55e
mov edi, ebx
nop dword [rax + rax]
cmp edi, dword [rsp + 0x70]
jae 0x18005e4b0
mov dword [rsp + 0x48], ebx
mov rax, qword [r13]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x55
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x10]
call fcn.18003fcf0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp], xmm0
movd eax, xmm1
test eax, eax
je 0x18005e557
mov r8d, dword [rsp + 0x70]
sub r8d, edi
mov eax, edi
lea rdx, [rbp + 0x210]
add rdx, rax
xor r9d, r9d
mov rcx, qword [r13]
call r15
mov r14d, eax
test eax, eax
mov eax, 1
cmovle esi, eax
add edi, r14d
test esi, esi
je 0x18005e4e0
mov r13, qword [rsp + 0x60]
mov edx, dword [rsp + 0x40]
mov r14, qword [rbp + 0x470]
mov r8d, dword [rbp + 0x468]
jmp case.0x18005e28f.17
mov r8d, 0xa
lea rdx, [rbp - 0x50]
lea ecx, [r8 - 7]
call fcn.18006e81c
mov edx, dword [rsp + 0x40]
mov r8d, dword [rbp + 0x468]
jmp case.0x18005e28f.17
mov rcx, qword [r13 + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x40]
mov r8d, dword [rbp + 0x468]
jmp case.0x18005e28f.17
mov word [rbp - 0x62], di
jmp case.0x18005e28f.17
movsd xmm0, qword [str..dll]
movsd qword [rbp - 0x4c], xmm0
movzx eax, word [0x18009ac38]
mov word [rbp - 0x44], ax
inc r8d
mov dword [rbp + 0x468], r8d
inc r12d
cmp r8d, edx
jae case.0x18005e28f.1
mov r9, qword [rbp + 0x478]
lea rsi, [0x180000000]
jmp 0x18005e264
mov rcx, qword [rbp + 0x480]
mov eax, 4
movups xmm0, xmmword [rdi]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdi + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdi + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rdi + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rdi, [rdi + 0x80]
sub rax, 1
jne 0x18005e601
movups xmm0, xmmword [rdi]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdi + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdi + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov eax, dword [rdi + 0x70]
mov dword [rcx + 0x70], eax
mov byte [rsp + 0x50], 1
jmp case.0x18005e28f.1
mov edi, 0x112
nop
mov eax, edi
sub eax, 0x112
je 0x18005e6b8
cmp eax, 1
jne 0x18005e6c0
call fcn.18007be78
jmp 0x18005e0d6
mov rcx, r13
call fcn.18006e620
inc edi
cmp edi, 0x114
jae case.0x18005e28f.1
jmp 0x18005e6a0
call fcn.18006d284
int3