Function at 0x413280
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push 0x20a
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040f160
add esp, 0xc
test esi, esi
je 0x413369
push esi
call fcn.0041a970
add esp, 4
test eax, eax
jns 0x4132f5
push str.VNLDeleteNetLibConfigKey:_invalid_vnet_name_parameter
push 1
call fcn.004439a0
add esp, 8
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
test ebx, ebx
je 0x413348
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x413326
push eax
push ebx
push esi
push str.SOFTWAREVMware__Inc.VMnetLibVMnetConfig
push str._s_S_S_S
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004159a0
add esp, 0x1c
jmp 0x413387
push ebx
push esi
push str.SOFTWAREVMware__Inc.VMnetLibVMnetConfig
push str._s_S_S
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004159a0
add esp, 0x18
jmp 0x413387
push esi
push str.SOFTWAREVMware__Inc.VMnetLibVMnetConfig
push str._s_S
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004159a0
add esp, 0x14
jmp 0x413387
push str.SOFTWAREVMware__Inc.VMnetLibVMnetConfig
push 0x498ac8
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.004159a0
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteNetLibConfigKey:_keyname:__S
push 0x20
call fcn.004439a0
add esp, 0xc
test edi, edi
je 0x413459
lea eax, [ebp - 0x214]
push eax
push 0x10002
push 0
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4133dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VNLDeleteNetLibConfigKey:_could_not_open_key_for_deleting_value:_0x_08x
push 4
jmp 0x4134bc
push edi
push dword [ebp - 0x214]
call fcn.00455c10
add esp, 8
test eax, eax
je 0x413448
cmp eax, 2
je 0x413423
push eax
push str.VNLDeleteNetLibConfigKey:_could_not_delete_value:_0x_08x
push 4
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x214]
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
push edi
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteNetLibConfigKey:_cant_delete_value_since_not_present:__S_s
push 0x20
call fcn.004439a0
add esp, 0x10
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4134c4
push edi
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteNetLibConfigKey:_deleted_value:__S_s
push 2
jmp 0x413432
lea eax, [ebp - 0x210]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x4134ae
cmp eax, 2
je 0x41349e
lea ecx, [ebp - 0x210]
push ecx
push eax
push str.VNLDeleteNetLibConfigKey:_could_not_delete_key:_0x_08x__S
push 4
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
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteNetLibConfigKey:_cant_delete_key_since_not_present:__S
push 0x20
jmp 0x4134bc
lea eax, [ebp - 0x210]
push eax
push str.VNLDeleteNetLibConfigKey:_deleted_key:__S
push 2
call fcn.004439a0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret