Function at 0x42a0e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x20a
mov dword [ebp - 0x2bc], eax
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.0040f160
push 0x32
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.0040f160
push 0x64
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x2b4], 0x32
push 0
push eax
call fcn.0040f160
push 0
push 0
push 0
push str.VNL_EnumNATPrivPort:
mov dword [ebp - 0x2b0], 0x64
mov dword [ebp - 0x2ac], 0
call fcn.00443be0
add esp, 0x34
test edi, edi
je 0x42a171
mov eax, dword [edi]
jmp 0x42a173
xor eax, eax
push eax
push edi
push dword [ebp - 0x2bc]
test esi, esi
mov eax, 0x498014
cmovne eax, esi
push eax
push str.VNL_EnumNATPrivPort:_v__s_t__d_e__0x_08x_____d_
push 0x80
call fcn.004439a0
add esp, 0x18
test esi, esi
je 0x42a37e
test edi, edi
je 0x42a37e
test ebx, ebx
je 0x42a37e
push esi
call fcn.0041a930
add esp, 4
test eax, eax
jne 0x42a1d2
push esi
push str.VNL_EnumNATPrivPort:_invalid_vnet_name:__s
push 1
call fcn.004439a0
add esp, 0xc
jmp 0x42a390
cmp dword [ebp - 0x2bc], 0
mov ecx, str.PrivUDP
mov eax, str.PrivTCP
cmove eax, ecx
push eax
push 0x498d28
push esi
push str.SOFTWAREVMware__Inc.VMnetLibVMnetConfig
push str._s_S_S_S
lea eax, [ebp - 0x2a8]
push 0x105
push eax
call fcn.004159a0
add esp, 0x1c
lea eax, [ebp - 0x2b8]
push eax
push 1
push 0
lea eax, [ebp - 0x2a8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2bc], eax
test eax, eax
je 0x42a277
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, dword [ebp - 0x2bc]
push ecx
cmp eax, 2
jne 0x42a25a
lea eax, [ebp - 0x2a8]
push eax
push esi
push str.VNL_EnumNATPrivPort:_key_not_found__s__S:_0x_08x
push 4
jmp 0x42a388
push eax
lea eax, [ebp - 0x2a8]
push eax
push esi
push str.VNL_EnumNATPrivPort:_couldnt_open__s__S_for_priv_port:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x18
jmp 0x42a390
push esi
push str.VNL_EnumNATPrivPort:_opened__s_for_priv_port
push 0x10
call fcn.004439a0
mov ecx, dword [edi]
lea eax, [ecx + 1]
mov dword [edi], eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x2ac]
push eax
push 0
lea eax, [ebp - 0x2b4]
push eax
lea eax, [ebp - 0x38]
push eax
push ecx
push dword [ebp - 0x2b8]
call fcn.00455d60
mov ecx, dword [ebp - 0x2ac]
add esp, 0x2c
test eax, eax
jne 0x42a33b
cmp ecx, 1
jne 0x42a35f
push str.VNL_EnumNATPrivPort:_read_priv_port_entry
push 0x10
call fcn.004439a0
lea eax, [ebp - 0x38]
push eax
call fcn.0041a630
add esp, 0xc
cmp eax, 0xffff
ja 0x42a31a
push dword [ebp - 0x2b8]
mov word [ebx], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004437c0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x38]
push eax
push str.VNL_EnumNATPrivPort:_invalid_host_port:__s
push 1
call fcn.004439a0
add esp, 0xc
push dword [ebp - 0x2b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42a390
cmp eax, 0x103
jne 0x42a35f
push str.VNL_EnumNATPrivPort:_all_values_have_been_enumereated
push 0x10
call fcn.004439a0
add esp, 8
push dword [ebp - 0x2b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42a390
push ecx
push eax
push str.VNL_EnumNATPrivPort:_failed_to_read_value__or_not_a_string:_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
push dword [ebp - 0x2b8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42a390
push ebx
push edi
push esi
push str.VNL_EnumNATPrivPort:_invalid_parameters:_0x_08x_0x_08x_0x_08x
push 1
call fcn.004439a0
add esp, 0x14
call fcn.004437c0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret 0x10