Function at 0x140010340
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14009a2c0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x80]
xor r14d, r14d
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r14
mov edi, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x38], rdi
mov byte [rbp - 0x50], r14b
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], rdi
mov byte [rbp - 0x30], r14b
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x50]
call fcn.1400100f0
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x14001041d
cmp eax, 4
je 0x14001041d
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rdi
lea ecx, [rdi + 0x11]
call fcn.140066e10
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], reloc.WS2_32.dll_select
mov qword [rsp + 0x68], 0x1f
movups xmm0, xmmword [str.Invalid_arguments.]
movups xmmword [rax], xmm0
movzx ecx, word [0x140083c18]
mov word [rax + 0x10], cx
mov byte [rax + 0x12], r14b
lea rcx, [rsp + 0x50]
call fcn.14000f4d0
xor bl, bl
mov rsi, qword [rbp - 0x38]
jmp 0x140010a3d
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], 7
mov qword [rbp - 0x58], rdi
mov rax, qword [str.Global_]
mov dword [rbp - 0x70], eax
movzx eax, word [0x140083c24]
mov word [rbp - 0x6c], ax
movzx eax, byte [0x140083c26]
mov byte [rbp - 0x6a], al
mov byte [rbp - 0x69], 0
lea r9, [rbp - 0x50]
mov rsi, qword [rbp - 0x38]
cmp rsi, 0x10
cmovae r9, qword [rbp - 0x50]
mov rbx, qword [rbp - 0x40]
cmp rbx, 8
ja 0x14001048c
lea rax, [rbx + 7]
mov qword [rbp - 0x60], rax
mov r8, rbx
mov rdx, r9
lea rcx, [rbp - 0x69]
call sub.VCRUNTIME140.dll_memmove
mov byte [rbp + rbx - 0x69], 0
jmp 0x1400104a4
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140017400
mov rsi, qword [rbp - 0x38]
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae r9, qword [rbp - 0x70]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x14009ebd0], rax
test rax, rax
jne 0x14001052f
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rdi
lea ecx, [rax + 0x20]
call fcn.140066e10
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], reloc.WS2_32.dll_shutdown
mov qword [rsp + 0x68], 0x1f
movups xmm0, xmmword [str.CreateEvent_for_cancel]
movups xmmword [rax], xmm0
mov ecx, dword [0x140083c38]
mov dword [rax + 0x10], ecx
movzx ecx, word [0x140083c3c]
mov word [rax + 0x14], cx
mov byte [rax + 0x16], 0
lea rcx, [rsp + 0x50]
call fcn.14000f4d0
jmp 0x14001068c
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x1400109fd
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], rdi
mov byte [rsp + 0x70], 0
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r9, qword [rbp - 0x30]
lea rcx, [rsp + 0x70]
cmp rbx, 0xf
ja 0x140010580
mov qword [rbp - 0x80], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rsp + rbx + 0x70], 0
jmp 0x140010590
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rbx
call fcn.140017400
mov qword [0x14009ebb8], r14
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae r8, qword [rsp + 0x70]
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov qword [0x14009ebc0], rax
test rax, rax
je 0x1400107f8
mov qword [rsp + 0x20], 0x24
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x14009ebb8], rax
test rax, rax
jne 0x1400106d1
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rdi
lea ecx, [rax + 0x30]
call fcn.140066e10
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0x20
mov qword [rsp + 0x68], 0x2f
movups xmm0, xmmword [str.MapViewOfFile_for_gpu_throttling]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140083c50]
movups xmmword [rax + 0x10], xmm1
mov byte [rax + 0x20], 0
lea rcx, [rsp + 0x50]
call fcn.14000f4d0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14001067f
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001067a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400107f1
call fcn.140067250
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], rdi
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x1400106ca
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400106c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400106c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067250
xor bl, bl
jmp 0x140010a3d
mov ecx, 0x20
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x14009ebb0], rax
test rax, rax
je 0x1400106f2
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov ecx, 0x20
call fcn.140066e10
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], reloc.OLEAUT32.dll_SafeArrayLock
mov qword [rsp + 0x68], 0x1f
movups xmm0, xmmword [str.Throttling_enabled._n]
movups xmmword [rax], xmm0
mov ecx, dword [0x140083c78]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], 0
mov rdx, qword [0x14009ebf0]
cmp rdx, qword [0x14009ebf8]
je 0x140010762
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rdx + 0x10], xmm1
mov byte [rsp + 0x50], 0
add qword [0x14009ebf0], 0x20
jmp 0x140010778
lea r8, [rsp + 0x50]
lea rcx, [0x14009ebe8]
call fcn.14001b4a0
mov rdi, qword [rsp + 0x68]
cmp rdi, 0x10
jb 0x1400107b2
lea rdx, [rdi + 1]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400107ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400109f0
call fcn.140067250
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x1400109fd
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400109f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400109f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8d, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140017010
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rsp + 0x60]
sub rax, rcx
cmp rax, 0x18
jb 0x140010ade
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], SafeArrayPutElement
lea r9, str.Throttling_not_enabled.
lea r8, [rsp + 0x50]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.140019790
nop
mov r8d, 1
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rbp - 0x10]
call fcn.1400144d0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x20], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], rdi
mov byte [rax], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x140010926
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010921
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010921
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067250
movdqa xmm0, xmmword [0x140084810]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
mov rax, qword [0x14009ebf0]
cmp rax, qword [0x14009ebf8]
je 0x14001095d
lea rdx, [rbp + 0x10]
mov rcx, rax
call fcn.140013330
add qword [0x14009ebf0], 0x20
jmp 0x140010971
lea r8, [rbp + 0x10]
mov rdx, rax
lea rcx, [0x14009ebe8]
call fcn.14001b630
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x1400109b0
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400109aa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400109aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067250
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400107b2
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400107ac
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400107ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140067250
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140010a3b
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010a36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010a36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067250
mov bl, 1
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140010a7c
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010a76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010a76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067250
nop
cmp rsi, 0x10
jb 0x140010ab7
lea rdx, [rsi + 1]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140010ab2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140010ab2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140067250
movzx eax, bl
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140066cd0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140003110
nop
int3