Function at 0x411590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x4a39f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
xor edx, edx
push 0x62
mov dword [ebp - 0xd0], eax
push edx
lea eax, [ebp - 0xca]
push eax
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xe4], 1
mov dword [ebp - 0xdc], 0
mov word [ebp - 0xcc], dx
call fcn.00405300
add esp, 0xc
test esi, esi
je 0x4118ff
cmp dword [ebp - 0xd4], 0
je 0x4118ff
cmp dword [ebp + 0x14], 0
je 0x4118ff
push 0x32
lea ecx, [ebp - 0xcc]
push ecx
push esi
call fcn.00413190
add esp, 0xc
test eax, eax
jne 0x411644
push esi
push str.SetVnetParameter:_cant_convert__s_to_wide_char
push 1
call fcn.004343f0
add esp, 0xc
pop edi
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
jne 0x411675
mov eax, dword [ebp + 0x14]
cmp eax, 4
je 0x4116a0
push eax
push 4
push str.SetVnetParameter:_parameter_length_is_not__d:__d
push 1
call fcn.004343f0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
mov ecx, edi
test edi, edi
jne 0x411680
mov ecx, 0x465a90
mov eax, dword [ebp - 0xd0]
test eax, eax
jne 0x41168f
mov eax, 0x465a90
mov edx, dword [ebp - 0xd4]
push edx
push esi
push ecx
push eax
push str.SetVnetParameter:_parameters__STRING_:__s______s__s__S
jmp 0x4116cb
mov eax, dword [ebp - 0xd4]
mov edx, dword [eax]
mov ecx, edi
test edi, edi
jne 0x4116b3
mov ecx, 0x465a90
mov eax, dword [ebp - 0xd0]
test eax, eax
jne 0x4116c2
mov eax, 0x465a90
push edx
push esi
push ecx
push eax
push str.SetVnetParameter:_parameters__DWORD_:__s______s__s__0x_08x
push 0x20
call fcn.004343f0
add esp, 0x18
lea ecx, [ebp - 0xdc]
push ecx
lea edx, [ebp - 0xd8]
push edx
push 7
push str.SOFTWAREVMware__Inc.VMnetLibVMnetConfig
push 0x80000002
call fcn.00410720
mov esi, eax
add esp, 0x14
test esi, esi
je 0x411714
call dword [0x4651b0]
push eax
push esi
push str.SOFTWAREVMware__Inc.VMnetLibVMnetConfig
push str.SetVnetParameter:_Could_not_create_vnetlib_key__S_:_0x_08x_0x_08x
jmp 0x411910
mov esi, 1
cmp dword [ebp - 0xdc], esi
jne 0x41172a
push str.SetVnetParameter:_Created_vnetlib_key
push 2
jmp 0x411731
push str.SetVnetParameter:_Opened_existing_vnetlib_key
push 0x10
call fcn.004343f0
add esp, 8
cmp dword [ebp - 0xd0], 0
je 0x41184d
xor eax, eax
push 0x62
push eax
lea ecx, [ebp - 0x66]
push ecx
mov word [ebp - 0x68], ax
call fcn.00405300
add esp, 0xc
test edi, edi
je 0x411781
cmp byte [edi], 0
je 0x411781
mov edx, dword [ebp - 0xd0]
push edi
push edx
push str._S_S
lea eax, [ebp - 0x68]
push 0x32
push eax
call fcn.00457d45
add esp, 0x14
jmp 0x41179d
mov ecx, dword [ebp - 0xd0]
push ecx
push 0x466fcc
lea edx, [ebp - 0x68]
push 0x32
push edx
xor esi, esi
call fcn.00457d45
add esp, 0x10
lea eax, [ebp - 0xdc]
push eax
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xe0]
push ecx
push 3
lea edx, [ebp - 0x68]
push edx
push eax
call fcn.00410720
mov edi, eax
add esp, 0x14
test edi, edi
je 0x411801
call dword [0x4651b0]
push eax
push edi
lea ecx, [ebp - 0x68]
push ecx
push str.SetVnetParameter:_Could_not_create_key__S:_0x_08x_0x_08x
push 1
call fcn.004343f0
mov edx, dword [ebp - 0xd8]
add esp, 0x14
push edx
call dword [0x4650d0]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xdc], 1
mov eax, 0x46afa4
jne 0x41182e
test esi, esi
jne 0x411818
mov eax, 0x465a90
lea ecx, [ebp - 0x68]
push ecx
push eax
push str.SetVnetParameter:_Created_vmnet__skey__S
push 2
call fcn.004343f0
add esp, 0x10
jmp 0x41185c
test esi, esi
jne 0x411837
mov eax, 0x465a90
lea edx, [ebp - 0x68]
push edx
push eax
push str.SetVnetParameter:_Opened_existing_vmnet__skey__S
push 0x10
call fcn.004343f0
add esp, 0x10
jmp 0x41185c
push str.SetVnetParameter:_did_not_open_vmnet_key_since_name_not_provided
push 0x20
call fcn.004343f0
add esp, 8
mov ecx, dword [ebp + 0x14]
test ebx, ebx
je 0x411865
add ecx, ecx
cmp dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0xe0]
jne 0x41187a
mov eax, dword [ebp - 0xd8]
push ecx
mov ecx, dword [ebp - 0xd4]
neg ebx
sbb ebx, ebx
push ecx
and ebx, 0xfffffffd
add ebx, 4
push ebx
push 0
lea edx, [ebp - 0xcc]
push edx
push eax
call dword [0x465094]
mov esi, eax
test esi, esi
je 0x4118c5
call dword [0x4651b0]
push eax
push esi
lea eax, [ebp - 0xcc]
push eax
push str.SetVnetParameter:_Could_not_set__S_value:_0x_08x_0x_08x
push 1
call fcn.004343f0
add esp, 0x14
xor esi, esi
jmp 0x4118cb
mov esi, dword [ebp - 0xe4]
cmp dword [ebp - 0xd0], 0
mov edi, dword [0x4650d0]
je 0x4118e3
mov ecx, dword [ebp - 0xe0]
push ecx
call edi
mov edx, dword [ebp - 0xd8]
push edx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xd4]
push eax
push ecx
push esi
push str.SetVnetParameter:_invalid_parameters:_0x_08x_0x_08x_0x_08x
push 1
call fcn.004343f0
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040506e
mov esp, ebp
pop ebp
ret