Function at 0x140050330
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x14004ce15
xor al, al
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
cmp qword [0x1400baf78], 0
jne 0x14004cf1b
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0xa
lea rdx, str.ExFreePool
lea rcx, [rsp + 0x40]
call fcn.1400508d0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8d, 0xc
lea rdx, str.ntoskrnl.exe
lea rcx, [rsp + 0x20]
call fcn.1400508d0
nop
lea rcx, [rsp + 0x20]
call fcn.140055550
mov rdx, rax
lea r8, [rsp + 0x40]
mov rcx, rdi
call fcn.14004cf40
mov qword [0x1400baf78], rax
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14004cecf
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ceca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004cf39
call fcn.14005b6d4
movdqa xmm0, xmmword [0x1400a71d0]
movdqu xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x20], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14004cf1b
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004cf16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004cf33
call fcn.14005b6d4
mov r9, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
jmp 0x140050330
call fcn.14006cb58
nop
call fcn.14006cb58
nop
int3
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x1400b8100]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r14, r9
mov rbx, rcx
mov rax, qword [0x1400baf78]
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140050501
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x4c]
call fcn.140089530
mov dword [rbp - 0x50], 0x114
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea r8, [rbp - 0x78]
lea rdx, str.kernel32.dll
mov ecx, 2
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
xorps xmm0, xmm0
mov edi, eax
movdqu xmmword [rbp - 0x70], xmm0
xor r15d, r15d
mov qword [rbp - 0x60], r15
mov esi, r15d
test eax, eax
je 0x140050420
cmp rdi, 0x1000
jb 0x1400503fb
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1400508bc
call fcn.14005b9a8
mov rcx, rax
test rax, rax
je 0x1400508c2
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140050403
mov rcx, rdi
call fcn.14005b9a8
mov qword [rbp - 0x70], rax
lea rsi, [rax + rdi]
mov qword [rbp - 0x60], rsi
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.140089530
mov qword [rbp - 0x68], rsi
mov rax, qword [rbp - 0x70]
sub esi, eax
mov qword [rsp + 0x20], rax
mov r9d, esi
mov r8d, dword [rbp - 0x78]
lea rdx, str.kernel32.dll
mov ecx, 2
call qword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
mov qword [rsp + 0x70], r15
mov dword [rbp - 0x74], r15d
lea r9, [rbp - 0x74]
lea r8, [rsp + 0x70]
lea rdx, [0x1400a6874]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rax, qword [rsp + 0x70]
movzx ecx, word [rax + 0xe]
mov eax, 0x4a61
cmp cx, ax
jb 0x1400506b5
lea rcx, [0x1400a6af8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtQueryInformationAtom
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x140050527
lea rdx, str.Failed_to_export_ntdll.NtQueryInformationAtom
lea rcx, [0x1400b9570]
call fcn.14004fa40
mov rcx, rax
call fcn.14004fcf0
xor bl, bl
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400504fe
mov rdx, qword [rbp - 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400504f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400508c2
call fcn.14005b6d4
movzx eax, bl
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14005b390
mov rbx, qword [rsp + 0x248]
add rsp, 0x210
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov word [rbp + 0xd0], 0xb848
mov word [rbp + 0xda], 0xe0ff
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0xd2], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov r8d, 0x16
lea rdx, str.NtQueryInformationAtom
lea rcx, [rsp + 0x50]
call fcn.1400508d0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, 0xc
lea rdx, str.ntoskrnl.exe
lea rcx, [rsp + 0x30]
call fcn.1400508d0
nop
lea rcx, [rsp + 0x30]
call fcn.140055550
mov rdx, rax
lea r8, [rsp + 0x50]
mov rcx, rbx
call fcn.14004cf40
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400505f0
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400505eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400508c8
call fcn.14005b6d4
movdqa xmm0, xmmword [0x1400a71d0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140050640
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005063b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400508b6
call fcn.14005b6d4
test rdi, rdi
jne 0x140050651
lea rdx, str.Failed_to_export_ntoskrnl.NtQueryInformationAtom
jmp 0x1400504ae
mov r9d, 0xc
mov r8, rdi
lea rdx, [rbp + 0xe0]
mov rcx, rbx
call fcn.14004c8b0
test al, al
je 0x1400504c2
mov r9d, 0xc
lea r8, [rbp + 0xd0]
mov rdx, rdi
mov rcx, rbx
call fcn.14004ca00
test al, al
je 0x1400504c2
mov rcx, r14
call rsi
mov r9d, 0xc
lea r8, [rbp + 0xe0]
mov rdx, rdi
mov rcx, rbx
call fcn.14004ca00
mov bl, 1
jmp 0x1400504c4
mov eax, 0x47ba
cmp cx, ax
jb 0x140050809
lea rcx, str.gdi32full.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtGdiDdDDIReclaimAllocations2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtGdiGetCOPPCompatibleOPMInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rdi, rdi
jne 0x140050719
test rax, rax
jne 0x140050719
lea rdx, str.Failed_to_export_gdi32full.NtGdiDdDDIReclaimAllocations2___win32u.NtGdiGetCOPPCompatibleOPMInformation
jmp 0x1400504ae
mov qword [rsp + 0x78], r15
mov qword [rbp + 0xd0], 0xb848
mov dword [rbp + 0xd8], 0xe0ff0000
mov qword [rbp + 0xe0], r15
lea rdx, [rsp + 0x78]
mov rcx, rbx
test rdi, rdi
je 0x1400507a1
lea r8, [rbp + 0xe0]
call fcn.14004d280
test al, al
je 0x1400504c2
mov r9d, 8
lea r8, [rbp - 0x80]
mov rsi, qword [rsp + 0x78]
mov rdx, rsi
mov rcx, rbx
call fcn.14004ca00
test al, al
je 0x1400504c2
mov rcx, r14
call rdi
mov r9d, 8
lea r8, [rbp + 0xe0]
mov rdx, rsi
mov rcx, rbx
call fcn.14004ca00
mov bl, 1
jmp 0x1400504c4
lea r8, [rbp + 0xf0]
call fcn.14004d480
test al, al
je 0x1400504c2
mov rax, qword [rbp - 0x80]
mov qword [rbp + 0xd2], rax
mov r9d, 0xc
lea r8, [rbp + 0xd0]
mov rdi, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, rbx
call fcn.14004ca00
test al, al
je 0x1400504c2
mov rcx, r14
call rsi
mov r9d, 0xc
lea r8, [rbp + 0xf0]
mov rdx, rdi
mov rcx, rbx
call fcn.14004ca00
mov bl, 1
jmp 0x1400504c4
mov eax, 0x42ee
cmp cx, ax
jb 0x1400504c2
lea rcx, str.gdi32full.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.NtGdiDdDDIReclaimAllocations2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x140050848
lea rdx, str.Failed_to_get_export_gdi32full.NtGdiDdDDIReclaimAllocations2
jmp 0x1400504ae
mov qword [rbp + 0xe0], r15
mov qword [rsp + 0x78], r15
lea r8, [rsp + 0x78]
lea rdx, [rbp + 0xe0]
mov rcx, rbx
call fcn.14004d280
test al, al
je 0x1400504c2
mov r9d, 8
lea r8, [rbp - 0x80]
mov rdi, qword [rbp + 0xe0]
mov rdx, rdi
mov rcx, rbx
call fcn.14004ca00
test al, al
je 0x1400504c2
mov rcx, r14
call rsi
mov r9d, 8
lea r8, [rsp + 0x78]
mov rdx, rdi
mov rcx, rbx
call fcn.14004ca00
mov bl, 1
jmp 0x1400504c4
call fcn.14006cb58
nop
call fcn.14004b660
int3
call fcn.14006cb58
nop
call fcn.14006cb58
int3