Function at 0x1409d92b0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r14, r8
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
xor edi, edi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1409d975a
mov rsi, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor edi, edi
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x1409d9751
mov rbx, rax
mov qword [rsp + 0x20], 0
xor edi, edi
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1409d9748
mov rbp, rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
movsxd rdi, dword [rax + 0x3c]
mov edx, dword [rax + rdi + 0x50]
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r12, rax
mov r8d, dword [rbp + rdi + 0x54]
mov rcx, rax
mov rdx, rbp
call sub.msvcrt.dll_memcpy
cmp word [rbp + rdi + 6], 0
je 0x1409d93e6
movsxd rax, dword [rbp + 0x3c]
lea rsi, [rax + rbp]
add rsi, 0x11c
xor ebx, ebx
nop word cs:[rax + rax]
nop
mov ecx, dword [rsi - 8]
mov r8d, dword [rsi - 4]
add rcx, r12
mov edx, dword [rsi]
add rdx, rbp
call sub.msvcrt.dll_memcpy
add rbx, 1
movzx eax, word [rbp + rdi + 6]
add rsi, 0x28
cmp rbx, rax
jb 0x1409d93c0
mov qword [rsp + 0x48], rbp
movsxd r9, dword [r12 + 0x3c]
mov r15, qword [r12 + r9 + 0x30]
mov qword [r12 + r9 + 0x30], r14
mov ebx, dword [r12 + r9 + 0xb4]
test ebx, ebx
je 0x1409d953e
mov ebp, dword [r12 + r9 + 0xb0]
mov rdx, rbp
add rdx, r12
mov r10, r15
shr r10, 0x10
mov r11, r14
shr r11, 0x10
movabs r8, 0x1fffffff8
lea rdi, [0x1409d9770]
jmp 0x1409d9469
mov esi, dword [rdx + 4]
mov ebp, dword [r12 + r9 + 0xb0]
mov ebx, dword [r12 + r9 + 0xb4]
add rdx, rsi
mov eax, ebp
add rax, r12
mov ecx, ebx
add rcx, rax
cmp rdx, rcx
jae 0x1409d953e
mov esi, dword [rdx + 4]
test rsi, rsi
je 0x1409d953e
lea rax, [rsi + r8]
shr rax, 1
test eax, eax
je 0x1409d9453
mov ebp, dword [rdx]
add rbp, r12
xor ebx, ebx
jmp 0x1409d94b8
and ecx, 0xfff
sub word [rcx + rbp], r15w
movzx ecx, word [rdx + rbx*2 + 8]
and ecx, 0xfff
add word [rcx + rbp], r14w
nop dword [rax + rax]
add rbx, 1
cmp eax, ebx
je 0x1409d9440
movzx ecx, word [rdx + rbx*2 + 8]
mov esi, ecx
shr esi, 0xc
add esi, 0xffffffff
cmp si, 9
ja case.0x1409d94d5.3
movzx esi, si
movsxd rsi, dword [rdi + rsi*4]
add rsi, rdi
jmp rsi
and ecx, 0xfff
sub word [rcx + rbp], r10w
movzx ecx, word [rdx + rbx*2 + 8]
and ecx, 0xfff
add word [rcx + rbp], r11w
jmp case.0x1409d94d5.3
and ecx, 0xfff
sub dword [rcx + rbp], r15d
movzx ecx, word [rdx + rbx*2 + 8]
and ecx, 0xfff
add dword [rcx + rbp], r14d
jmp case.0x1409d94d5.3
and ecx, 0xfff
sub qword [rcx + rbp], r15
movzx ecx, word [rdx + rbx*2 + 8]
and ecx, 0xfff
add qword [rcx + rbp], r14
jmp case.0x1409d94d5.3
mov qword [rsp + 0x40], r12
cmp dword [r12 + r9 + 0x94], 0
je 0x1409d972e
mov rax, qword [rsp + 0x40]
mov r12d, dword [rax + r9 + 0x90]
cmp dword [rax + r12], 0
je 0x1409d972e
mov rax, qword [rsp + 0x40]
add r12, rax
lea r13, [rax + 2]
mov r15, qword [sym.imp.msvcrt.dll__wcsnicmp]
jmp 0x1409d9599
mov rcx, rbp
call sub.msvcrt.dll_free
cmp dword [r12 + 0x14], 0
lea r12, [r12 + 0x14]
je 0x1409d972e
mov esi, dword [r12 + 0xc]
add rsi, qword [rsp + 0x40]
mov edx, 0x104
mov rcx, rsi
call fcn.1409e4cc0
mov rbx, rax
lea rdi, [rax + 1]
mov edx, 2
mov rcx, rdi
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1409d9588
mov rbp, rax
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x70]
mov rdx, rax
mov r8, rdi
mov r9, rsi
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov r8d, 4
mov rcx, rbp
lea rdx, [0x1409ef002]
call r15
test eax, eax
je 0x1409d9613
mov r8d, 4
mov rcx, rbp
lea rdx, str.ext_
call r15
test eax, eax
jne 0x1409d9665
mov rcx, qword [rsp + 0x60]
mov rdx, rbp
lea r8, [rsp + 0x68]
call fcn.1409d8bf0
test rax, rax
je 0x1409d9665
mov rsi, rax
mov rcx, rbp
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x68]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1409d9588
mov rbp, rax
add rdi, rdi
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
call fcn.1409d8bd0
mov rsi, rax
mov rdi, rax
jmp 0x1409d9688
mov rdi, qword [rdi]
cmp rdi, rsi
je 0x1409d96c0
cmp word [rdi + 0x38], 3
jb 0x1409d9680
mov rdx, qword [rdi + 0x50]
movzx r8d, word [rdi + 0x48]
shr r8, 1
mov rcx, rbp
call r15
test eax, eax
jne 0x1409d9680
mov r14, qword [rdi + 0x20]
test r14, r14
jne 0x1409d96d5
jmp 0x1409d9580
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test r14, r14
je 0x1409d9580
mov eax, dword [r12]
mov esi, dword [r12 + 0x10]
test eax, eax
mov edi, esi
cmovne edi, eax
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + rdi]
test rdx, rdx
je 0x1409d9580
mov rbx, qword [rsp + 0x40]
jmp 0x1409d9724
add rdx, r13
mov rcx, r14
mov r8, rbp
call fcn.1409d9930
mov qword [rbx + rsi], rax
mov rdx, qword [rbx + rdi + 8]
add rbx, 8
test rdx, rdx
je 0x1409d9580
test rdx, rdx
jns 0x1409d9700
movzx edx, dx
jmp 0x1409d9703
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret