Function at 0x42e700
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push str.VNL_UpdateNATFromConfig:
call fcn.00447210
test edi, edi
mov esi, 0x49f3cc
cmovne esi, edi
push esi
push str.VNL_UpdateNATFromConfig:_v__s
push 0x80
call fcn.00446b80
push edi
call fcn.0041e5e0
add esp, 0x20
test eax, eax
jne 0x42e778
push edi
push str.VNL_UpdateNATFromConfig:_invalid_vnet_name:__s
push 1
call fcn.00446b80
add esp, 0xc
call fcn.00446aa0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret 4
call fcn.004351e0
test eax, eax
je 0x42e7a9
push str.VNL_UpdateNATFromConfig:_This_call_is_not_supported_when_called_from_64_bit_process
push 2
call fcn.00446b80
add esp, 8
call fcn.00446aa0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret 4
push ebx
call fcn.004305a0
push eax
push str.VMware_NAT_Service
call fcn.00434ec0
push 0
push 0
push 0
push str.VNL_GetVnetUseNAT:
call fcn.00447210
push esi
push str.VNL_GetVnetUseNAT:_v__s
push 0x80
call fcn.00446b80
push edi
call fcn.00430510
add esp, 0x28
mov esi, eax
call fcn.00446aa0
test esi, esi
je 0x42e81a
push 0
push edi
call fcn.00439ca0
test eax, eax
jne 0x42e80a
push edi
push str.VNL_UpdateNATFromConfig:_probe_failed:__s
push 1
call fcn.00446b80
add esp, 0xc
push edi
call fcn.0042d170
add esp, 4
mov ebx, eax
jmp 0x42e97d
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00411960
add esp, 0xc
mov dword [ebp - 0x214], 0x105
test edi, edi
jne 0x42e854
push str.VNLRemoveVnetFromNATConfigFile:_invalid_parameter
push 1
call fcn.00446b80
add esp, 8
xor ebx, ebx
jmp 0x42e97d
push 0
push 0
push 0
push str.VNL_GetNATConfigFilePath:
call fcn.00447210
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push str.VNL_GetNATConfigFilePath:_p_0x_08x_pL_0x_08x
push 0x80
call fcn.00446b80
push 0
push str.vmnetnat.conf
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0042cf50
add esp, 0x30
mov esi, eax
call fcn.00446aa0
test esi, esi
jne 0x42e8bf
push str.VNLRemoveVnetFromNATConfigFile:_could_not_obtain_config_file_path
push 1
call fcn.00446b80
add esp, 8
xor ebx, ebx
jmp 0x42e97d
lea eax, [ebp - 0x210]
push eax
push str.VNLRemoveVnetFromNATConfigFile:_configuration_file_path:__S
push 0x20
call fcn.00446b80
add esp, 0xc
call fcn.004305a0
test eax, eax
je 0x42e8f4
push str.VNLRemoveVnetFromNATConfigFile:_NAT_still_in_use__not_deleting_config_file
push 1
call fcn.00446b80
add esp, 8
xor ebx, ebx
jmp 0x42e97d
lea eax, [ebp - 0x210]
push eax
call fcn.0041a410
add esp, 4
test eax, eax
lea eax, [ebp - 0x210]
push eax
je 0x42e921
push str.VNLRemoveVnetFromNATConfigFile:_This_file_is_a_symlink_to_some_other_file__so_cannot_delete:__S
push 1
call fcn.00446b80
add esp, 0xc
xor ebx, ebx
jmp 0x42e97d
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
jne 0x42e96e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42e956
lea ecx, [ebp - 0x210]
push ecx
push eax
push str.VNLRemoveVnetFromNATConfigFile:_failed_to_delete_config_file:_0x_08x__S
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x42e97d
lea eax, [ebp - 0x210]
push eax
push str.VNLRemoveVnetFromNATConfigFile:_config_file_not_deleted_since_not_present:__S
push 4
call fcn.00446b80
add esp, 0xc
jmp 0x42e97d
push str.VNLRemoveVnetFromNATConfigFile:_deleted_config_file
push 0x10
call fcn.00446b80
add esp, 8
call fcn.00446aa0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00401bd5
mov esp, ebp
pop ebp
ret 4