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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
mov rax, qword [0x1403c6400]
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 0x1400c5fb0
mov byte [rsp + 0x43], 1
jmp 0x1400c5fb5
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 0x1400c5feb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400c62c7
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 0x1400c60f7
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 0x1400c6087
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400c62c7
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 0x1400c60ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400c62c7
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x80]
lea rdx, [0x1402f421c]
mov rcx, qword [rsp + 0x58]
call sub.VERSION.dll_VerQueryValueW
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400c60f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400c62c7
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 0x1400c6147
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
jmp 0x1400c62c7
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 0x1400c6198
mov byte [rsp + 0x41], 1
movzx eax, byte [rsp + 0x41]
test eax, eax
jne 0x1400c61bd
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x1400c61bd
movzx eax, byte [rsp + 0x42]
test eax, eax
jne 0x1400c61bd
mov dword [rsp + 0x68], 0
jmp 0x1400c61c5
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 0x1400c61f4
movzx eax, byte [rsp + 0x40]
movzx ecx, byte [rsp + 0x42]
cmp eax, ecx
jne 0x1400c61f4
mov dword [rsp + 0x6c], 0
jmp 0x1400c61fc
mov dword [rsp + 0x6c], 1
movzx eax, byte [rsp + 0x6c]
mov byte [rsp + 0x49], al
cmp qword [rsp + 0x80], 0
je 0x1400c6279
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 0x1400c626f
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 8]
and rax, 0xffff
movzx eax, ax
cmp dword [rsp + 0xac], eax
jne 0x1400c626f
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 0x1400c6279
mov dword [rsp + 0x70], 1
jmp 0x1400c6281
mov dword [rsp + 0x70], 0
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0x4a], al
movzx eax, byte [rsp + 0x48]
test eax, eax
je 0x1400c62af
movzx eax, byte [rsp + 0x49]
test eax, eax
jne 0x1400c62a5
movzx eax, byte [rsp + 0x4a]
test eax, eax
je 0x1400c62af
mov dword [rsp + 0x74], 1
jmp 0x1400c62b7
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 0x1400c62e0
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x58], 0
je 0x1400c62fe
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 0x1400c6311
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x44], 0
jne 0x1400c6340
cmp dword [rsp + 0x78], 0
je 0x1400c6329
mov dword [rsp + 0x7c], 1
jmp 0x1400c6331
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.140263a60
add rsp, 0x2e0
pop rdi
ret