Function at 0x1400327ac
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x3538]
mov eax, 0x3620
call fcn.14005ba50
sub rsp, rax
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x3510], rax
xor edx, edx
lea rcx, [rsp + 0x54]
mov dword [rsp + 0x50], 0x20
lea r8d, [rdx + 0x1c]
call fcn.14005bab0
lea rcx, str.SetNetMtuForAllNetConn:_waiting_for_critical_section_n
call fcn.1400300fc
lea rcx, [0x1400db7d0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x70]
call fcn.1400261f4
lea rcx, [rsp + 0x70]
mov qword [rbp + 0x388], 0xffffffff80000002
call fcn.140022d94
mov edx, dword [rbp + 0x31bc]
lea rcx, str.SetNetMtuForAllNetConn:_m_dwNetMtu_d_n
call fcn.1400300fc
mov edi, dword [rbp + 0x31bc]
mov eax, 0x5c5
test edi, edi
cmove edi, eax
cmp qword [0x1400dbf70], 0
jne 0x140032872
lea rcx, str._SetNetMtuForAllNetConn:_no_bt_device_n
call fcn.1400300fc
jmp 0x140032c34
lea rcx, [0x14009e750]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rsi, rax
test rax, rax
jne 0x1400328ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._SetNetMtuForAllNetConn:_SetupDiGetClassDevs_failed._err_d_n
mov edx, eax
call fcn.1400300fc
jmp 0x140032c34
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rax
xor r12d, r12d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140032c0a
mov r14d, 0x100
lea rax, [rsp + 0x40]
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x3210]
lea r8d, [r9 + 1]
mov rcx, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x140032917
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._SetNetMtuForAllNetConn:_SetupDiGetDeviceRegistryProperty_failed._err_d_n
jmp 0x140032be7
lea rcx, [rbp + 0x3210]
mov rdx, r14
call fcn.14005d740
lea rdx, [0x1400a3f78]
lea rcx, [rbp + 0x3210]
call fcn.14005c79c
test rax, rax
jne 0x14003295a
lea rdx, [0x1400a3f48]
lea rcx, [rbp + 0x3210]
call fcn.14005c79c
test rax, rax
je 0x140032bee
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rcx, rsi
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400329a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._SetNetMtuForAllNetConn:_SetupDiOpenDevRegKey_failed._err_d_HWID_hs_n
mov edx, eax
lea r8, [rbp + 0x3210]
call fcn.1400300fc
jmp 0x140032bee
lea rax, [rsp + 0x40]
lea rdx, str.NetLuidIndex
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140032a01
lea r8, [rbp + 0x3210]
lea rcx, str.SetNetMtuForAllNetConn:_RegQueryValueEx_NetLuidIndex__failed._err_d_HWID_hs_n
mov edx, eax
call fcn.1400300fc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140032bee
lea rax, [rsp + 0x40]
lea rdx, str.NetCfgInstanceId
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3210]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140032a46
lea rcx, str.SetNetMtuForAllNetConn:_no_value_NetCfgInstanceId._RegQueryValueEx_returned__d_n
mov edx, eax
call fcn.1400300fc
jmp 0x1400329f3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
lea r8, [rbp + 0x3210]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
lea rdx, str.SoftwareWidcommBTConfigNetMtu
xor r9d, r9d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x140032a9d
mov edx, dword [rsp + 0x4c]
lea rcx, str.SetNetMtuForAllNetConn:_already_set._previous_MTU0x_x__hs_n
jmp 0x140032997
cmp eax, 2
je 0x140032ab0
lea rcx, str._SetNetMtuForAllNetConn:_SHGetValue_failed._err_d_n
mov edx, eax
call fcn.1400300fc
mov edx, dword [rsp + 0x48]
xor ecx, ecx
call fcn.14003256c
mov dword [rsp + 0x44], eax
test eax, eax
jne 0x140032ad4
lea rcx, str._SetNetMtuForAllNetConn:_GetNetMtu_IPv4__failed_n
call fcn.1400300fc
jmp 0x140032bee
mov edx, dword [rsp + 0x48]
mov cl, 1
call fcn.14003256c
mov ebx, eax
test eax, eax
jne 0x140032aee
lea rcx, str._SetNetMtuForAllNetConn:_GetNetMtu_IPv6__failed_n
jmp 0x140032aca
cmp dword [rsp + 0x44], edi
jne 0x140032afc
cmp eax, edi
je 0x140032b9d
lea r9, [rbp + 0x3210]
lea r8, str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_hsConnection
lea rcx, [rbp + 0x3310]
mov rdx, r14
call fcn.14005ce1c
lea rax, [rsp + 0x40]
lea r8, [0x1400981a8]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3310]
lea rdx, [rbp + 0x3310]
xor r9d, r9d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x140032b65
lea rcx, str._SetNetMtuForAllNetConn:_SHGetValue_Connection_Name__failed._err_d_n
jmp 0x140032be7
cmp dword [rsp + 0x44], edi
jne 0x140032c6f
lea rdx, [rbp + 0x3310]
lea rcx, str.SetNetMtuForAllNetConn:_current_MTU_is_correct_for_IPv4.__ls_n
call fcn.1400300fc
cmp ebx, edi
jne 0x140032ca2
lea rdx, [rbp + 0x3310]
lea rcx, str.SetNetMtuForAllNetConn:_current_MTU_is_correct_for_IPv6.__ls_n
call fcn.1400300fc
movzx eax, word [rsp + 0x44]
shl ebx, 0x10
lea r8, [rbp + 0x3210]
or ebx, eax
lea rax, [rsp + 0x44]
lea rdx, str.SoftwareWidcommBTConfigNetMtu
mov dword [rsp + 0x44], ebx
mov ebx, 4
mov rcx, 0xffffffff80000002
mov r9d, ebx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
je 0x140032bee
lea rcx, str._SetNetMtuForAllNetConn:_SHSetValue_failed._err_d_n
mov edx, eax
call fcn.1400300fc
inc r12d
lea r8, [rsp + 0x50]
mov rcx, rsi
mov edx, r12d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x1400328cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x140032c2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._SetNetMtuForAllNetConn:_SetupDiEnumDeviceInfo_failed._err_d_n
mov edx, eax
call fcn.1400300fc
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea rcx, [0x1400db7d0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rbp + 0x3510]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x3620]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
lea r8, [rbp + 0x3310]
mov edx, edi
mov ecx, 4
call fcn.14003264c
test al, al
jne 0x140032b82
lea rcx, str._SetNetMtuForAllNetConn:_SetNetMtu_v4__failed.__ls_n
lea rdx, [rbp + 0x3310]
call fcn.1400300fc
jmp 0x140032bee
lea r8, [rbp + 0x3310]
mov edx, edi
mov ecx, 6
call fcn.14003264c
test al, al
jne 0x140032b9d
lea rcx, str._SetNetMtuForAllNetConn:_SetNetMtu_v6__failed.__ls_n
jmp 0x140032c91