Function at 0x430ae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4e7018]
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.0040f160
push 0x20a
lea eax, [ebp - 0x404]
mov dword [ebp - 0x408], 0x64
push 0
push eax
call fcn.0040f160
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0040f160
push 0xc8
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.0040f160
add esp, 0x30
test esi, esi
jne 0x430b73
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_invalid_parameter
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.0041a970
mov ebx, eax
add esp, 4
test ebx, ebx
jns 0x430ba6
push esi
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_invalid_vnet_name:__s
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
call fcn.0041aef0
test eax, eax
je 0x430bca
push edi
push esi
call fcn.004307f0
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
call fcn.0041af30
test eax, eax
je 0x430bee
push edi
push esi
call fcn.00430e00
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call fcn.00423260
add esp, 0xc
test eax, eax
jne 0x430c2b
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_Could_not_locate_adapter_guid
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push 0x32
lea eax, [ebp - 0x68]
push eax
push 0x4b6574
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x430c62
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_cant_convert_guid_to_string
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
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.004159a0
add esp, 0x14
lea eax, [ebp - 0x40c]
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 0x430cf5
nop word [eax + eax]
mov ecx, esi
inc esi
cmp ecx, 5
jge 0x430cf5
push esi
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_cant_open_instance_key__wait_1_second_for_it_to_appear:__d
push 1
call fcn.004439a0
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x40c]
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 0x430cb0
test eax, eax
je 0x430d1c
push eax
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_cant_open_adapter_instance_key:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x430d3f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430d25
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
jmp 0x430d7e
push ebx
push str.VMware_Network_Adapter_VMnet_d
lea eax, [ebp - 0x130]
push 0x64
push eax
call fcn.004159a0
lea ecx, [ebp - 0x130]
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x430d60
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 - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x430dc6
push eax
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_couldnt_set_connection_name:_0x_08x
push 1
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x40c]
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.00401bf1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_Successfully_set_connection_name:__S
push 0x10
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x40c]
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.00401bf1
mov esp, ebp
pop ebp
ret