Function at 0x180035610
Capabilities:
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 [0x18005b6d8]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r13, r8
mov qword [rbp - 0x50], r8
mov r8d, edx
mov dword [rsp + 0x74], edx
mov r12, rcx
xor ebx, ebx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 0xf
mov byte [rbp - 0x40], bl
add edx, 0xd
mov dword [rsp + 0x70], edx
cmp r8d, edx
jae case.0x1800356a5.12
lea r9d, [r8 - 0x66]
mov dword [rsp + 0x78], r9d
mov edx, dword [rbp - 0x60]
mov qword [rbp - 0x70], rdx
mov eax, dword [rsp + 0x70]
lea r10, [0x180000000]
cmp r9d, 0x43
ja case.default.0x1800356a5
movzx eax, byte [r10 + r9 + 0x35ccc]
mov ecx, dword [r10 + rax*4 + 0x35c94]
add rcx, r10
jmp rcx
lea r8, [r12 + 0xa8]
lea rdx, [rbp - 0x40]
mov ecx, 0x7c
call fcn.180003650
mov rdx, qword [rbp - 0x70]
mov r8d, dword [rsp + 0x74]
mov r9d, dword [rsp + 0x78]
jmp case.0x1800356a5.13
lea rdx, str.Exposure_Sequence
mov ecx, 2
call fcn.180035ef0
mov dword [rbp - 0x78], 2
lea rax, [r13 + 0x130]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], 0xb0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x78]
call fcn.180031d50
mov dword [rbp - 0x78], eax
mov r8d, eax
lea rdx, str.2e__2e__2e_L2e_
mov ecx, 2
call fcn.180035ef0
mov rdx, qword [rbp - 0x70]
mov r8d, dword [rsp + 0x74]
mov r9d, dword [rsp + 0x78]
jmp case.0x1800356a5.13
mov eax, dword [rbp - 0x78]
mov dword [rbp - 0x68], eax
jmp case.0x1800356a5.13
mov qword [rbp - 0x48], r12
jmp case.0x1800356a5.13
mov eax, dword [r12 + 0xc]
mov edx, dword [r12 + 8]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x400
jge 0x18003580d
mov edi, 0xc
nop dword [rax]
cmp edi, 0xc
je 0x1800357ef
cmp edi, 0x49
jne 0x1800357f8
mov eax, dword [rbp - 0x58]
mov dword [rbp - 0x80], eax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rbx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x86
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.180027a80
mov eax, dword [r12 + 0xc]
mov ecx, eax
sub ecx, dword [r12 + 8]
mov dword [rbp - 0x80], ecx
jmp 0x1800357fb
lea ecx, [rax + 0x400]
mov dword [rbp - 0x58], ecx
mov ecx, dword [rbp - 0x80]
add edi, 0x3d
cmp edi, 0x86
jb 0x180035790
mov edx, dword [r12 + 8]
jmp 0x180035810
mov dword [rbp - 0x80], ecx
movsxd r8, ecx
movsxd rcx, edx
add rcx, qword [r12]
mov rax, qword [rbp - 0x48]
mov r9, qword [rax + 0x18]
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdx, rax
mov qword [rbp - 0x70], rax
mov r8d, dword [rsp + 0x74]
mov r9d, dword [rsp + 0x78]
jmp case.0x1800356a5.13
mov edi, 0x50
mov eax, edi
sub eax, 0x50
je 0x1800358a2
cmp eax, 1
jne 0x180035906
mov rbx, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x28]
cmp rcx, 0x10
jb 0x180035c63
lea rdx, [rcx + 1]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180035c5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180035c5e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
cmp rdx, rcx
jae 0x1800358cc
lea rax, [rdx + 1]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x40]
cmp rcx, 0x10
cmovae rax, qword [rbp - 0x40]
mov word [rax + rdx], 0x7d
jmp 0x1800358df
mov r9b, 0x7d
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x40]
call fcn.180001d90
mov rax, qword [0x18005b7b0]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x40]
xor edx, edx
xor ecx, ecx
mov r8d, SHSetFolderPathA
call fcn.180010ee0
mov byte [rbp - 0x68], al
inc edi
cmp edi, 0x52
jb 0x180035848
mov r9d, 0x89
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.180027510
lea r9, [r12 + 0x48]
lea r8, [rbp - 0x40]
xor edx, edx
mov ecx, 0xcf
call fcn.18000a580
mov rdx, qword [rbp - 0x70]
mov r8d, dword [rsp + 0x74]
mov r9d, dword [rsp + 0x78]
jmp case.0x1800356a5.13
test edx, edx
je 0x180035bfe
mov eax, 0xac
nop word [rax + rax]
cmp eax, 0xac
je 0x180035974
cmp eax, 0x25a0
je case.0x1800356a5.12
jmp 0x18003597d
add dword [r12 + 8], edx
mov byte [rbp - 0x68], 1
add eax, 0x24f4
cmp eax, 0x49e8
jbe 0x180035960
jmp case.0x1800356a5.13
mov edi, ebx
mov r14, rbx
lea r15, [0x180048be0]
lea rsi, [r13 + 0x318]
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r15]
mov dword [rbp - 0x60], eax
lea r9, [r13 + 0x318]
add r9, r14
mov qword [rsp + 0x20], r12
mov r8, r13
mov edx, 0x142
lea rcx, [rbp - 0x60]
call fcn.180021210
mov eax, dword [rsi + 4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsi]
mov r8d, edi
lea rdx, str.void_glGetShaderInfoLog__s___d___s__0x_p_
mov ecx, 2
call fcn.180035ef0
inc edi
add r14, 8
lea r15, [r15 + 4]
lea rsi, [rsi + 8]
cmp edi, 9
jl 0x1800359b0
mov rdx, qword [rbp - 0x70]
mov r8d, dword [rsp + 0x74]
mov r9d, dword [rsp + 0x78]
jmp case.0x1800356a5.13
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], 0
mov r8d, 0x10
lea rdx, str._method_:_init_
lea rcx, [rbp - 0x20]
call fcn.180018390
nop
lea r14, [rbp - 0x20]
mov r15, qword [rbp - 0x20]
mov r13, qword [rbp - 8]
cmp r13, 0x10
cmovae r14, r15
mov rsi, qword [rbp - 0x10]
cmp rsi, 0x10
jae 0x180035a6d
movups xmm0, xmmword [r14]
mov qword [rbp + 0x18], 0xf
jmp 0x180035aeb
mov rdi, rsi
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
cmova rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x180035ac1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180035c8d
mov rcx, rax
call fcn.18004668c
mov rcx, rax
test rax, rax
je 0x180035c07
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180035ad0
test rcx, rcx
je 0x180035acd
call fcn.18004668c
jmp 0x180035ad0
mov rax, rbx
mov qword [rbp], rax
lea r8, [rsi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x18], rdi
movups xmm0, xmmword [rbp]
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp + 0x10], rsi
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x180035b2e
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180035b29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180035c07
call fcn.1800466c8
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [rbp + 0x10]
movups xmmword [rbp - 0x30], xmm0
cmp r13, 0x10
jb 0x180035b75
lea rdx, [r13 + 1]
mov rax, r15
cmp rdx, 0x1000
jb 0x180035b6d
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180035c0e
mov rcx, r15
call fcn.1800466c8
mov rdx, qword [rbp - 0x70]
mov r13, qword [rbp - 0x50]
mov r8d, dword [rsp + 0x74]
mov r9d, dword [rsp + 0x78]
jmp case.0x1800356a5.13
mov eax, dword [r12 + 0x18]
mov ecx, dword [r13]
cmp eax, ecx
jge 0x180035bce
mov dword [rsp + 0x30], 0xce
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.18002cdd0
mov ecx, dword [r13]
mov eax, dword [r12 + 0x18]
mov rdx, qword [rbp - 0x70]
mov r8d, dword [rsp + 0x74]
mov r9d, dword [rsp + 0x78]
shl qword [r12 + 0x10], cl
sub eax, dword [r13]
mov dword [r12 + 0x18], eax
mov eax, dword [rsp + 0x70]
inc r8d
mov dword [rsp + 0x74], r8d
inc r9d
mov dword [rsp + 0x78], r9d
cmp r8d, eax
jae case.0x1800356a5.12
jmp 0x180035680
mov byte [rbp - 0x68], 0
jmp case.0x1800356a5.12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov ecx, dword [r13]
test ecx, ecx
je 0x180035c4d
sub ecx, 1
je 0x180035c3c
cmp ecx, 1
jne 0x18003585c
movsxd rbx, dword [r12]
mov rbx, qword [r10 + rbx*8 + 0x5b138]
jmp 0x18003585c
movsxd rbx, dword [r12]
mov rbx, qword [r10 + rbx*8 + 0x5b100]
jmp 0x18003585c
movsxd rbx, dword [r12]
mov rbx, qword [r10 + rbx*8 + 0x5b170]
jmp 0x18003585c
call fcn.1800466c8
mov rax, rbx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.180046be0
mov rbx, qword [rsp + 0x178]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180017d70
nop
nop
sbb bl, byte [rdx + 3]
add byte [rdi + 285213526], ah
pop rcx
add eax, dword [rax]
pop r8
add eax, dword [rax]
push rdi
add eax, dword [rax]
outsb dx, byte [rsi]
push rdi
add eax, dword [rax]
pop r9
add eax, dword [rax]
mov dword [rbx + 3], ebx
add byte [4530069525], dl
pop rcx
add eax, dword [rax]
rcl byte [rsi + 3]
add byte [rdx + 87], bl
add eax, dword [rax]
pop rax
pop rax
add eax, dword [rax]
fcomp qword [rbx + 3]
add byte [rax], al
add dword [rdx], eax
add ecx, dword [0x18d1069e2]
or eax, 0x40d0d0d
add eax, 0xd0d0d06
or eax, 0xd0d0d0d
or eax, 0xd0d070d
or eax, 0xd0d0d0d
or eax, 0xd0d0d0d
or byte [0x18d106a06], cl
or eax, 0xd0d0d0d
or eax, 0xd0d090d
or eax, 0xd0d0d0d
or eax, 0xd0d0d0d
or cl, byte [rbx]
or al, 0x48
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x48
mov eax, dword [0x180063800]
cmp dword [0x18005b804], eax
jl 0x180035da7
mov qword [rsp + 0x40], rbx
movzx ebx, byte [rdx]
mov qword [rsp + 0x38], rdi
cmp bl, 0x2a
je 0x180035d62
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.DEBUG:
call fcn.180046490
mov rdx, qword [rsp + 0x58]
xor edi, edi
mov ecx, 2
cmp bl, 0x2a
sete dil
add rdi, rdx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
call fcn.180046430
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfprintf]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret