Function at 0x412db0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x64
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xcc]
push 0
push eax
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd0], 0
call fcn.0040f160
mov eax, dword [ebp + 0x1c]
add esp, 0xc
test esi, esi
je 0x4130ef
cmp dword [ebp - 0xdc], 0
je 0x4130ef
test eax, eax
je 0x4130ef
push 0x32
lea eax, [ebp - 0xcc]
push eax
push esi
call fcn.004181c0
add esp, 0xc
test eax, eax
jne 0x412e58
push esi
push str.SetVnetParameter:_cant_convert__s_to_wide_char
push 1
call fcn.004439a0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x14], 0
jne 0x412eb0
mov eax, dword [ebp + 0x1c]
cmp eax, 4
je 0x412e8b
push eax
push 4
push str.SetVnetParameter:_parameter_length_is_not__d:__d
push 1
call fcn.004439a0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xdc]
test ebx, ebx
push dword [eax]
push esi
mov esi, 0x4975e2
mov eax, esi
cmovne eax, ebx
test edi, edi
push eax
mov eax, esi
cmovne eax, edi
push eax
push str.SetVnetParameter:_parameters__DWORD_:__s______s__s__0x_08x
jmp 0x412ed1
push dword [ebp - 0xdc]
test ebx, ebx
push esi
mov esi, 0x4975e2
mov eax, esi
cmovne eax, ebx
test edi, edi
push eax
mov eax, esi
cmovne eax, edi
push eax
push str.SetVnetParameter:_parameters__STRING_:__s______s__s__S
push 0x20
call fcn.004439a0
add esp, 0x18
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xd4]
push eax
push 7
push str.SOFTWAREVMware__Inc.VMnetLibVMnetConfig
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004139c0
add esp, 0x14
mov dword [ebp - 0xe0], eax
test eax, eax
je 0x412f23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xe0]
push str.SOFTWAREVMware__Inc.VMnetLibVMnetConfig
push str.SetVnetParameter:_Could_not_create_vnetlib_key__S_:_0x_08x_0x_08x
jmp 0x4130fc
cmp dword [ebp - 0xd0], 1
jne 0x412f35
push str.SetVnetParameter:_Created_vnetlib_key
push 2
jmp 0x412f3c
push str.SetVnetParameter:_Opened_existing_vnetlib_key
push 0x10
call fcn.004439a0
add esp, 8
test edi, edi
je 0x413042
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0040f160
add esp, 0xc
test ebx, ebx
je 0x412f81
cmp byte [ebx], 0
je 0x412f81
push ebx
push edi
push str._S_S
lea eax, [ebp - 0x68]
push 0x32
push eax
call fcn.004159a0
add esp, 0x14
mov ebx, 1
jmp 0x412f97
push edi
push 0x497f38
lea eax, [ebp - 0x68]
xor ebx, ebx
push 0x32
push eax
call fcn.004159a0
add esp, 0x10
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xd8]
push eax
push 3
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0xd4]
call fcn.004139c0
add esp, 0x14
mov dword [ebp - 0xe0], eax
test eax, eax
je 0x413002
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0xe0]
lea eax, [ebp - 0x68]
push eax
push str.SetVnetParameter:_Could_not_create_key__S:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x14
push dword [ebp - 0xd4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0xd0], 1
lea eax, [ebp - 0x68]
push eax
mov eax, 0x497f84
jne 0x41302b
test ebx, ebx
cmove eax, esi
push eax
push str.SetVnetParameter:_Created_vmnet__skey__S
push 2
call fcn.004439a0
add esp, 0x10
jmp 0x413051
test ebx, ebx
cmove eax, esi
push eax
push str.SetVnetParameter:_Opened_existing_vmnet__skey__S
push 0x10
call fcn.004439a0
add esp, 0x10
jmp 0x413051
push str.SetVnetParameter:_did_not_open_vmnet_key_since_name_not_provided
push 0x20
call fcn.004439a0
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
test edx, edx
lea eax, [ecx + ecx]
cmove eax, ecx
mov ecx, 1
push eax
push dword [ebp - 0xdc]
mov eax, 4
cmovne eax, ecx
test edi, edi
push eax
push 0
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0xd4]
cmovne eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x4130bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
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.004439a0
add esp, 0x14
xor ebx, ebx
jmp 0x4130c0
mov ebx, 1
test edi, edi
je 0x4130d0
push dword [ebp - 0xd8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xd4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push eax
push dword [ebp - 0xdc]
push esi
push str.SetVnetParameter:_invalid_parameters:_0x_08x_0x_08x_0x_08x
push 1
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret