Function at 0x18000d2cc
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x330
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x180065018]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rsi, rdx
mov r12, rcx
mov qword [rbp + 0x188], rcx
xor r14d, r14d
lea rdx, [rbp + 0x1a0]
mov rcx, rsi
call fcn.18000e350
lea rcx, [rbp + 0x1a0]
cmp qword [rbp + 0x1b8], 8
cmovae rcx, qword [rbp + 0x1a0]
lea rdx, str..dll
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x18000d86e
lea rcx, [rbp + 0x1a0]
cmp qword [rbp + 0x1b8], 8
cmovae rcx, qword [rbp + 0x1a0]
lea rdx, str..ps1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x18000d86e
lea rcx, [rbp + 0x1a0]
call fcn.18000380c
mov qword [rbp + 0x160], r14
mov rdx, rsi
lea rcx, [rbp + 0x160]
call fcn.180036088
nop
lea rdx, [rbp + 0x180]
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18000d8c9
mov eax, 0xffffffff
mov rbx, qword [rbp + 0x180]
cmp rbx, rax
ja 0x18000d8e3
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r13, rax
mov qword [rbp + 0x188], rax
test rax, rax
je 0x18000d930
mov edi, ebx
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x18000d98c
mov qword [rbp + 0x1f0], rax
mov qword [rbp + 0x1f8], rdi
or rax, 0xffffffffffffffff
sub rax, rbx
cmp rdi, rax
ja 0x18000d9e8
cmp rdi, 4
jb 0x18000d8b1
cmp dword [rbx], 0x464c457f
je 0x18000d489
mov byte [r12 + 0x30], r14b
cmp r13, 0xffffffffffffffff
je 0x18000d469
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x160]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x18000d87f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000d87f
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rdi
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xe0]
call fcn.18000d008
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x140], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x150], xmm1
xorps xmm0, xmm0
movups xmmword [rbp + 0x190], xmm0
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rdi
psrldq xmm1, 8
movq rsi, xmm1
mov qword [rbp + 0x180], rsi
mov r9, rsi
shr r9, 0x10
lea r8, [rbp + 0x140]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x100]
call fcn.18000d198
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0x190]
call fcn.18000d258
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x168], xmm1
mov qword [rbp + 0x178], r14
movzx edi, r14w
cmp r14w, si
jae 0x18000d73e
movaps xmm6, xmmword [rbp + 0x1f0]
mov rsi, qword [rbp + 0x198]
mov r15, qword [rbp + 0x190]
mov r13, qword [rbp + 0x180]
mov eax, 1
cmp di, word [rbp + 0x15a]
je 0x18000d72a
movdqa xmmword [rbp - 0x10], xmm6
movzx r9d, di
lea r8, [rbp + 0x140]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x120]
call fcn.18000d198
movups xmm1, xmmword [rax]
movups xmmword [rbp + 0x10], xmm1
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp + 0x20], xmm0
movd eax, xmm1
mov edx, eax
mov rbx, r14
mov ecx, eax
mov r8d, 1
cmp rsi, r8
jb 0x18000da07
lea rax, [rsi - 1]
cmp rcx, rax
ja 0x18000da07
cmp byte [rcx + r15], r14b
je 0x18000d5d4
add rbx, r8
add rcx, r8
jmp 0x18000d5b0
lea r14, [rdx + r15]
xorps xmm0, xmm0
movups xmmword [rbp + 0x200], xmm0
movdqa xmmword [rbp], xmm6
lea r8, [rbp + 0x10]
lea rdx, [rbp]
lea rcx, [rbp + 0x200]
call fcn.18000d258
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], al
lea rcx, [rsp + 0x38]
cmp rbx, 0xf
ja 0x18000d639
mov qword [rsp + 0x48], rbx
mov r8, rbx
mov rdx, r14
call fcn.18003b280
xor r14d, r14d
mov byte [rsp + rbx + 0x38], r14b
jmp 0x18000d664
lfence
mov r9, r14
mov r8b, byte [rsp + 0x30]
mov rdx, rbx
call fcn.180003b1c
mov r13, qword [rbp + 0x158]
mov rsi, qword [rbp + 0x198]
mov r15, qword [rbp + 0x190]
xor r14d, r14d
movups xmm0, xmmword [rbp + 0x200]
movdqu xmmword [rsp + 0x58], xmm0
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x68], rax
mov rdx, qword [rbp + 0x170]
cmp rdx, qword [rbp + 0x178]
je 0x18000d6d6
mov qword [rdx], r14
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], r14
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], r14b
movups xmm0, xmmword [rsp + 0x58]
movdqu xmmword [rdx + 0x20], xmm0
mov rax, qword [rsp + 0x68]
mov qword [rdx + 0x30], rax
add qword [rbp + 0x170], 0x38
jmp 0x18000d6e8
lea r8, [rsp + 0x38]
lea rcx, [rbp + 0x168]
call fcn.18000df5c
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18000d725
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000d720
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000d867
call fcn.180001480
mov eax, 1
add di, ax
cmp di, r13w
jb 0x18000d563
mov r13, qword [rbp + 0x188]
mov dword [rbp + 0x1d3], r14d
mov byte [rbp + 0x1d7], r14b
mov r15, qword [rbp + 0x178]
mov qword [rbp + 0x178], r14
mov r14, qword [rbp + 0x170]
xor eax, eax
mov qword [rbp + 0x170], rax
mov rsi, qword [rbp + 0x168]
mov qword [rbp + 0x168], rax
movzx edi, word [rbp + 0x140]
mov word [rbp + 0x1d0], di
mov bl, byte [rbp + 0x142]
mov byte [rbp + 0x1d2], bl
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x78]
call fcn.18000dbe4
mov rax, qword [rbp + 0x160]
or rcx, 0xffffffffffffffff
mov qword [rbp + 0x160], rcx
mov qword [rbp + 0x1c0], rcx
mov qword [r12], rax
mov qword [rbp + 0x1c8], rcx
mov qword [r12 + 8], r13
mov word [r12 + 0x10], di
mov byte [r12 + 0x12], bl
xor eax, eax
mov qword [rbp + 0x1e8], rax
mov qword [rbp + 0x1e0], rax
mov qword [rbp + 0x1d8], rax
mov qword [r12 + 0x18], rsi
mov qword [r12 + 0x20], r14
mov qword [r12 + 0x28], r15
lea eax, [rcx + 2]
mov byte [r12 + 0x30], al
lea rcx, [rbp + 0x1d8]
call fcn.18000dbe4
mov rcx, qword [rbp + 0x1c8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000d82e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1c0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18000d846
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp + 0x168]
call fcn.18000dbe4
nop
mov rcx, qword [rbp + 0x160]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jmp 0x18000d478
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov byte [r12 + 0x30], r14b
lea rcx, [rbp + 0x1a0]
call fcn.18000380c
mov rax, r12
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.180039210
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9d, 0x90
lea rdx, [0x18004dae0]
mov ecx, 0x800701e7
call fcn.18000e17c
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.18000dc60
int3
mov rdx, rsi
lea rcx, [rbp + 0x80]
call fcn.1800073d8
nop
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.18000dd80
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.18000dd9c
mov dword [rsp + 0x20], 0x108
lea r9, str.D:_a_work1_s_srcTAEFLoadersElfFile.cpp
lea r8, [rbp - 0x40]
lea rdx, str.Failed_to_load____because_it_is_larger_than_4GB_in_size.
mov ecx, 0x8000000b
call fcn.180035a64
nop
mov rdx, rsi
lea rcx, [rbp + 0xa0]
call fcn.1800073d8
nop
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.18000dd80
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.18000dd9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x20], 0x112
lea r9, str.D:_a_work1_s_srcTAEFLoadersElfFile.cpp
lea r8, [rbp - 0x30]
lea rdx, str.Failed_to_create_a_file_mapping_for___.
call fcn.180035a64
nop
mov rdx, rsi
lea rcx, [rbp + 0xc0]
call fcn.1800073d8
nop
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.18000dd80
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.18000dd9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x20], 0x119
lea r9, str.D:_a_work1_s_srcTAEFLoadersElfFile.cpp
lea r8, [rbp - 0x20]
lea rdx, str.Failed_to_map_a_view_of_a_file_mapping_for___.
call fcn.180035a64
nop
mov r9d, 0x29
lea r8, str.D:_a_work1_s_srcTAEF.SharedIncSharedDataView.h
lea rdx, str.A_view_over_untrusted_data_exceeded_the_bounds_of_the_process_address_space.
mov ecx, 0x800701e7
call fcn.180004f18
nop
mov r9d, 0x90
lea rdx, [0x18004dae0]
mov ecx, 0x800701e7
call fcn.18000e17c
int3