Function at 0x429c10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1f8]
push edi
mov edi, dword [ebp + 0xc]
push 0xc8
push 0
push eax
call fcn.00411960
push 0x20a
lea eax, [ebp - 0x404]
mov dword [ebp - 0x40c], 0x64
push 0
push eax
call fcn.00411960
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00411960
push 0xc8
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00411960
add esp, 0x30
test esi, esi
jne 0x429ca3
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_invalid_parameter
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.0041e620
mov ebx, eax
add esp, 4
test ebx, ebx
jns 0x429cd9
push esi
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_invalid_vnet_name:__s
push 1
lfence
call fcn.00446b80
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
call fcn.0041ebd0
test eax, eax
je 0x429d00
push edi
push esi
lfence
call fcn.00429920
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
call fcn.0041ec10
lfence
test eax, eax
je 0x429d27
push edi
push esi
call fcn.00429f40
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call fcn.004269a0
add esp, 0xc
test eax, eax
jne 0x429d64
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_Could_not_locate_adapter_guid
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push 0x32
lea eax, [ebp - 0x68]
push eax
push 0x4bdf2c
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x429d9b
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_cant_convert_guid_to_string
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x68]
push eax
push str.SYSTEMCurrentControlSetControlNetwork_s_sConnection
lea eax, [ebp - 0x404]
push 0x105
push eax
call fcn.00419510
add esp, 0x14
lea eax, [ebp - 0x408]
push eax
push 2
push 0
lea eax, [ebp - 0x404]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
cmp eax, 2
jne 0x429e28
mov ecx, esi
inc esi
cmp ecx, 5
jge 0x429e2c
push esi
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_cant_open_instance_key__wait_1_second_for_it_to_appear:__d
push 1
call fcn.00446b80
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x408]
push eax
push 2
push 0
lea eax, [ebp - 0x404]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x429de3
test eax, eax
je 0x429e4f
push eax
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_cant_open_adapter_instance_key:_0x_08x
push 1
call fcn.00446b80
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x429e7a
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429e60
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
jmp 0x429ebe
push ebx
push str.VMware_Network_Adapter_VMnet_d
lea eax, [ebp - 0x130]
push 0x64
push eax
lfence
call fcn.00419510
lea ecx, [ebp - 0x130]
add esp, 0x10
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429ea0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x130]
push eax
push 1
push 0
push str.Name
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x429f06
push eax
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_couldnt_set_connection_name:_0x_08x
push 1
call fcn.00446b80
add esp, 0xc
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_Successfully_set_connection_name:__S
push 0x10
call fcn.00446b80
add esp, 0xc
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00401bd5
mov esp, ebp
pop ebp
ret