Function at 0x40f9d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x4a39f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 0x62
mov dword [ebp - 0xe0], eax
push edx
lea eax, [ebp - 0x66]
push eax
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], 0
mov word [ebp - 0x68], dx
call fcn.00405300
add esp, 0xc
test esi, esi
je 0x40ffea
cmp dword [ebp - 0xe0], 0
je 0x40ffea
cmp dword [ebp - 0xdc], 0
je 0x40ffea
push 0x32
lea ecx, [ebp - 0x68]
push ecx
push esi
call fcn.00413190
add esp, 0xc
test eax, eax
jne 0x40fa78
push esi
push str.GetVnetParameter:_couldnt_convert_parameter__s_to_wide_string
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
mov ecx, ebx
test ebx, ebx
jne 0x40fa83
mov ecx, 0x465a90
mov eax, edi
test edi, edi
jne 0x40fa8e
mov eax, 0x465a90
push esi
push ecx
push eax
push str.GetVnetParameter:_vmnet:__s__s__s
push 0x20
call fcn.004343f0
add esp, 0x14
cmp dword [ebp + 0x14], 0
jne 0x40fad6
mov eax, dword [ebp - 0xdc]
cmp dword [eax], 4
je 0x40fad6
push eax
push 4
push str.GetVnetParameter:_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
lea edx, [ebp - 0xd0]
push edx
push 1
push 0
push str.SOFTWAREVMware__Inc.VMnetLibVMnetConfig
push 0x80000002
call dword [0x4650cc]
mov esi, eax
test esi, esi
je 0x40fb48
call dword [0x4651b0]
cmp esi, 2
jne 0x40fb24
push str.GetVnetParameter:_vnetlib_path_doesnt_exist_so_cant_open
push 4
call fcn.004343f0
add esp, 8
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
push eax
push esi
push str.GetVnetParameter:_could_not_open_vnetlib_path:_0x_08x_0x_08x
push 4
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
push str.GetVnetParameter:_opened_vnetlib_path
push 0x10
call fcn.004343f0
add esp, 8
test edi, edi
je 0x40fc6a
xor eax, eax
push 0x62
push eax
lea ecx, [ebp - 0xca]
push ecx
mov word [ebp - 0xcc], ax
call fcn.00405300
add esp, 0xc
test ebx, ebx
je 0x40fb9d
cmp byte [ebx], 0
je 0x40fb9d
push ebx
push edi
push str._S_S
lea edx, [ebp - 0xcc]
push 0x32
push edx
call fcn.00457d45
add esp, 0x14
jmp 0x40fbb4
push edi
push 0x466fcc
lea eax, [ebp - 0xcc]
push 0x32
push eax
call fcn.00457d45
add esp, 0x10
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd4]
push ecx
push 1
push 0
lea edx, [ebp - 0xcc]
push edx
push eax
call dword [0x4650cc]
mov esi, eax
test esi, esi
je 0x40fc52
call dword [0x4651b0]
cmp esi, 2
jne 0x40fc1a
lea ecx, [ebp - 0xcc]
push ecx
push str.GetVnetParameter:_vmnet_config_not_found:__S
push 4
call fcn.004343f0
mov eax, dword [ebp - 0xd0]
add esp, 0xc
push eax
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
lea edx, [ebp - 0xcc]
push edx
push eax
push esi
push str.GetVnetParameter:_could_not_open_vmnet:_0x_08x_0x_08x__S
push 1
call fcn.004343f0
mov eax, dword [ebp - 0xd0]
add esp, 0x14
push eax
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
lea ecx, [ebp - 0xcc]
push ecx
push str.GetVnetParameter:_opened_vmnet:__S
push 0x10
call fcn.004343f0
add esp, 0xc
jmp 0x40fc79
push str.GetVnetParameter:_not_opening_vmnet_since_not_provided
push 0x20
call fcn.004343f0
add esp, 8
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xe4], 0
test edi, edi
jne 0x40fc93
mov eax, dword [ebp - 0xd0]
mov esi, dword [0x4650c4]
lea edx, [ebp - 0xe4]
push edx
push 0
lea ecx, [ebp - 0xd8]
push ecx
push 0
lea edx, [ebp - 0x68]
push edx
push eax
call esi
test eax, eax
je 0x40fd13
cmp eax, 2
jne 0x40fcd0
lea eax, [ebp - 0x68]
push eax
push str.GetVnetParameter:_registry_value__S_not_found
push 4
call fcn.004343f0
add esp, 0xc
jmp 0x40fce4
push eax
lea ecx, [ebp - 0x68]
push ecx
push str.GetVnetParameter:_could_not_query_type_of__S:_0x_08x
push 1
call fcn.004343f0
add esp, 0x10
mov esi, dword [0x4650d0]
test edi, edi
je 0x40fcf7
mov edx, dword [ebp - 0xd4]
push edx
call esi
mov eax, dword [ebp - 0xd0]
push eax
call esi
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, dword [ebp - 0xd8]
push ecx
lea edx, [ebp - 0x68]
push edx
push str.GetVnetParameter:_type_of__S:_0x_08x
push 0x20
call fcn.004343f0
mov eax, dword [ebp - 0xd8]
add esp, 0x10
cmp dword [ebp + 0x14], 0
jne 0x40fe4d
cmp eax, 4
je 0x40fd86
cmp eax, 5
je 0x40fd86
push eax
push str.GetVnetParameter:_DWORD_requested__but_registry_type_is_not_a_DWORD:_0x_08x
push 1
call fcn.004343f0
mov esi, dword [0x4650d0]
add esp, 0xc
test edi, edi
je 0x40fd6a
mov eax, dword [ebp - 0xd4]
push eax
call esi
mov ecx, dword [ebp - 0xd0]
push ecx
call esi
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 eax, dword [ebp - 0xd4]
test edi, edi
jne 0x40fd96
mov eax, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xdc]
mov ebx, dword [ebp - 0xe0]
push edx
push ebx
lea ecx, [ebp - 0xd8]
push ecx
push 0
lea edx, [ebp - 0x68]
push edx
push eax
call esi
mov esi, eax
test esi, esi
je 0x40fe04
call dword [0x4651b0]
push eax
push esi
lea eax, [ebp - 0x68]
push eax
push str.GetVnetParameter:_could_not_query__S:_0x_08x_0x_08x
push 1
call fcn.004343f0
mov esi, dword [0x4650d0]
add esp, 0x14
test edi, edi
je 0x40fde8
mov ecx, dword [ebp - 0xd4]
push ecx
call esi
mov edx, dword [ebp - 0xd0]
push edx
call esi
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
movsx eax, byte [ebx]
push eax
lea ecx, [ebp - 0x68]
push ecx
push str.GetVnetParameter:_queried__S_as_DWORD:_0x_08x
push 0x10
call fcn.004343f0
add esp, 0x10
mov esi, dword [0x4650d0]
test edi, edi
je 0x40fe2e
mov edx, dword [ebp - 0xd4]
push edx
call esi
mov eax, dword [ebp - 0xd0]
push eax
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
cmp eax, 4
je 0x40fef5
cmp eax, 5
je 0x40fef5
mov eax, dword [ebp - 0xd4]
test edi, edi
jne 0x40fe6f
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ebp - 0xe0]
push ecx
push edx
lea ecx, [ebp - 0xd8]
push ecx
push 0
lea edx, [ebp - 0x68]
push edx
push eax
call esi
mov esi, eax
test esi, esi
je 0x40fedd
call dword [0x4651b0]
push eax
push esi
lea eax, [ebp - 0x68]
push eax
push str.GetVnetParameter:_could_not_query__S:_0x_08x_0x_08x
push 1
call fcn.004343f0
mov esi, dword [0x4650d0]
add esp, 0x14
test edi, edi
je 0x40fec1
mov ecx, dword [ebp - 0xd4]
push ecx
call esi
mov edx, dword [ebp - 0xd0]
push edx
call esi
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
lea eax, [ebp - 0x68]
push eax
push str.GetVnetParameter:_queried__S_as_string_binary
push 0x10
call fcn.004343f0
add esp, 0xc
jmp 0x40fe1b
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe8], 4
test edi, edi
jne 0x40ff19
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xe8]
push ecx
lea edx, [ebp - 0xe4]
push edx
lea ecx, [ebp - 0xd8]
push ecx
push 0
lea edx, [ebp - 0x68]
push edx
push eax
call esi
mov esi, eax
test esi, esi
je 0x40ff87
call dword [0x4651b0]
push eax
push esi
lea eax, [ebp - 0x68]
push eax
push str.GetVnetParameter:_could_not_query__S:_0x_08x_0x_08x
push 1
call fcn.004343f0
mov esi, dword [0x4650d0]
add esp, 0x14
test edi, edi
je 0x40ff6b
mov ecx, dword [ebp - 0xd4]
push ecx
call esi
mov edx, dword [ebp - 0xd0]
push edx
call esi
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 eax, dword [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x68]
push ecx
push str.GetVnetParameter:_queried__S__converting_to_string:__d
push 0x30
call fcn.004343f0
mov edx, dword [ebp - 0xe4]
mov ebx, dword [ebp - 0xdc]
mov eax, dword [ebx]
mov esi, dword [ebp - 0xe0]
push edx
push 0x469d58
shr eax, 1
push eax
push esi
call fcn.00457d45
mov eax, esi
add esp, 0x20
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ffd0
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov dword [ebx], ecx
jmp 0x40fe1b
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ebp - 0xe0]
push ecx
push edx
push esi
push str.GetVnetParameter:_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