Function at 0x431060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a39f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0xc6
push eax
lea ecx, [ebp - 0x1f6]
push ecx
mov dword [ebp - 0x40c], ebx
mov word [ebp - 0x1f8], ax
call fcn.00405300
xor edx, edx
push 0x208
push edx
lea eax, [ebp - 0x402]
push eax
mov dword [ebp - 0x414], 0x64
mov word [ebp - 0x404], dx
call fcn.00405300
xor ecx, ecx
push 0x62
push ecx
lea edx, [ebp - 0x66]
push edx
mov word [ebp - 0x68], cx
call fcn.00405300
xor eax, eax
push 0xc6
push eax
lea ecx, [ebp - 0x12e]
push ecx
mov word [ebp - 0x130], ax
call fcn.00405300
add esp, 0x30
test esi, esi
jne 0x431116
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_invalid_parameter
push 1
call fcn.004343f0
add esp, 8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push esi
call fcn.00412b30
add esp, 4
mov dword [ebp - 0x410], eax
test eax, eax
jge 0x43114b
push esi
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_invalid_vnet_name:__s
push 1
call fcn.004343f0
add esp, 0xc
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
call fcn.00412ab0
test eax, eax
je 0x43116e
push ebx
push esi
call fcn.00430a30
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
call fcn.00412a50
test eax, eax
je 0x431191
push ebx
push esi
call fcn.00430520
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x1f8]
push eax
push esi
call fcn.00422510
add esp, 0xc
test eax, eax
jne 0x4311cd
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_Could_not_locate_adapter_guid
push 1
call fcn.004343f0
add esp, 8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push 0x32
lea ecx, [ebp - 0x68]
push ecx
push 0x478b08
call dword [0x4653b0]
test eax, eax
jne 0x431203
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_cant_convert_guid_to_string
push 1
call fcn.004343f0
add esp, 8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push edi
lea edx, [ebp - 0x1f8]
push edx
lea eax, [ebp - 0x68]
push eax
push str.SYSTEMCurrentControlSetControlNetwork_s_sConnection
lea ecx, [ebp - 0x404]
push 0x105
push ecx
call fcn.00457d45
mov edi, dword [0x4650cc]
add esp, 0x14
lea edx, [ebp - 0x408]
push edx
push 2
push 0
lea eax, [ebp - 0x404]
push eax
push 0x80000002
call edi
xor esi, esi
cmp eax, 2
jne 0x431297
mov ebx, dword [0x4651d8]
mov ecx, esi
inc esi
cmp ecx, 5
jge 0x431291
push esi
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_cant_open_instance_key__wait_1_second_for_it_to_appear:__d
push 1
call fcn.004343f0
add esp, 0xc
push 0x3e8
call ebx
lea edx, [ebp - 0x408]
push edx
push 2
push 0
lea eax, [ebp - 0x404]
push eax
push 0x80000002
call edi
cmp eax, 2
je 0x431254
mov ebx, dword [ebp - 0x40c]
pop edi
test eax, eax
je 0x4312be
push eax
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_cant_open_adapter_instance_key:_0x_08x
push 1
call fcn.004343f0
add esp, 0xc
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4312ee
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4312c7
sub eax, edx
mov edx, dword [ebp - 0x408]
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.Name
push edx
jmp 0x43133f
mov eax, dword [ebp - 0x410]
push eax
push str.VMware_Network_Adapter_VMnet_d
lea ecx, [ebp - 0x130]
push 0x64
push ecx
call fcn.00457d45
lea eax, [ebp - 0x130]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x431314
mov ecx, dword [ebp - 0x408]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x130]
push eax
push 1
push 0
push str.Name
push ecx
call dword [0x465094]
test eax, eax
je 0x431378
push eax
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_couldnt_set_connection_name:_0x_08x
push 1
call fcn.004343f0
mov edx, dword [ebp - 0x408]
add esp, 0xc
push edx
call dword [0x4650d0]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push str.VNLSetVnetAdapterUserSpecifiedNameW2K:_Successfully_set_connection_name:__S
push 0x10
call fcn.004343f0
mov ecx, dword [ebp - 0x408]
add esp, 0xc
push ecx
call dword [0x4650d0]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040506e
mov esp, ebp
pop ebp
ret