Function at 0x1400b7880
Capabilities:
Get common file path
Get file version info

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
mov rax, qword [0x14019cfa0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x60], 0xffffffffffffffff
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep stosb byte [rdi], al
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x80], 0
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x42], 0
mov byte [rsp + 0x41], 0
mov dword [rsp + 0x78], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesMRCBT
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1400b7930
mov byte [rsp + 0x43], 1
jmp 0x1400b7935
mov byte [rsp + 0x43], 0
movzx eax, byte [rsp + 0x43]
mov byte [rsp + 0x40], al
mov edx, 0x105
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jne 0x1400b796b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400b7c47
lea rdx, str.drivers
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.mrcbt.sys
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xc0]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
je 0x1400b7a77
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0xa0], rax
mov r8, qword [rsp + 0x98]
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400b7a07
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400b7c47
mov r9, qword [rsp + 0x58]
mov r8d, dword [rsp + 0x4c]
xor edx, edx
lea rcx, [rsp + 0xc0]
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400b7a3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400b7c47
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x80]
lea rdx, [0x14014e7fc]
mov rcx, qword [rsp + 0x58]
call sub.VERSION.dll_VerQueryValueW
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400b7a72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400b7c47
mov byte [rsp + 0x42], 1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str..C:
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x1400b7ac7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400b7c47
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.WS2_32.dll_inet_ntoa
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8cb700f8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x1400b7b18
mov byte [rsp + 0x41], 1
movzx eax, byte [rsp + 0x41]
test eax, eax
jne 0x1400b7b3d
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x1400b7b3d
movzx eax, byte [rsp + 0x42]
test eax, eax
jne 0x1400b7b3d
mov dword [rsp + 0x68], 0
jmp 0x1400b7b45
mov dword [rsp + 0x68], 1
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x48], al
movzx eax, byte [rsp + 0x41]
movzx ecx, byte [rsp + 0x40]
cmp eax, ecx
jne 0x1400b7b74
movzx eax, byte [rsp + 0x40]
movzx ecx, byte [rsp + 0x42]
cmp eax, ecx
jne 0x1400b7b74
mov dword [rsp + 0x6c], 0
jmp 0x1400b7b7c
mov dword [rsp + 0x6c], 1
movzx eax, byte [rsp + 0x6c]
mov byte [rsp + 0x49], al
cmp qword [rsp + 0x80], 0
je 0x1400b7bf9
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 8]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
cmp dword [rsp + 0xa8], eax
jne 0x1400b7bef
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 8]
and rax, 0xffff
movzx eax, ax
cmp dword [rsp + 0xac], eax
jne 0x1400b7bef
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0xc]
shr rax, 0x10
and rax, 0xffff
movzx eax, ax
cmp dword [rsp + 0xb0], eax
je 0x1400b7bf9
mov dword [rsp + 0x70], 1
jmp 0x1400b7c01
mov dword [rsp + 0x70], 0
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x4a], al
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x1400b7c2f
movzx eax, byte [rsp + 0x49]
test eax, eax
jne 0x1400b7c25
movzx eax, byte [rsp + 0x4a]
test eax, eax
je 0x1400b7c2f
mov dword [rsp + 0x74], 1
jmp 0x1400b7c37
mov dword [rsp + 0x74], 0
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x44], 0
cmp qword [rsp + 0x88], 0
je 0x1400b7c60
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x58], 0
je 0x1400b7c7e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x60], 0xffffffffffffffff
je 0x1400b7c91
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], 0
jne 0x1400b7cc0
cmp dword [rsp + 0x78], 0
je 0x1400b7ca9
mov dword [rsp + 0x7c], 1
jmp 0x1400b7cb1
mov dword [rsp + 0x7c], 0
mov rax, qword [rsp + 0x2f0]
movzx ecx, byte [rsp + 0x7c]
mov byte [rax], cl
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400dbfd0
add rsp, 0x2e0
pop rdi
ret