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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x880]
push 0x400
push 0
push eax
call fcn.00411960
push 0x20a
lea eax, [ebp - 0x480]
push 0
push eax
call fcn.00411960
add esp, 0x18
mov dword [ebp - 0x88c], 0x105
test edi, edi
jne 0x42bc4e
push str.VNLRemoveVnetFromDHCPConfigFile:_invalid_parameter
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0041e620
mov esi, eax
add esp, 4
lfence
test esi, esi
jns 0x42bc6c
push edi
push str.VNLRemoveVnetFromDHCPConfigFile:_invalid_vnet_name:__s
jmp 0x42bf68
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00411960
push esi
push str.VirtualEthernetSegments
push str._s_d
lea eax, [ebp - 0x68]
mov dword [ebp - 0x884], 0
push 0x32
push eax
mov dword [ebp - 0x888], 4
call fcn.00419510
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x884]
push eax
push 0
lea eax, [ebp - 0x68]
push str.ListenTo
push eax
call fcn.0042a7b0
add esp, 0x34
test eax, eax
je 0x42bd0a
cmp dword [ebp - 0x884], 0
je 0x42bd0a
push 4
lea eax, [ebp - 0x884]
mov dword [ebp - 0x884], 0
push eax
push 0
lea eax, [ebp - 0x68]
push str.ListenTo
push eax
call fcn.0042af90
add esp, 0x14
test eax, eax
jne 0x42bd0a
push str.VNLRemoveVnetFromDHCPConfigFile:_Error_writing_DHCP_registry_service_parameters
push 1
call fcn.00446b80
add esp, 8
lea eax, [ebp - 0x88c]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.0042bf90
test eax, eax
jne 0x42bd42
push str.VNLRemoveVnetFromDHCPConfigFile:_could_not_get_path_to_configuration_file
push 1
call fcn.00446b80
add esp, 8
xor eax, eax
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push str.VNLRemoveVnetFromDHCPConfigFile:_obtained_path_to_configuration_file
push 0x10
call fcn.00446b80
add esp, 8
call fcn.0042f580
test eax, eax
jne 0x42bec2
push 0x20a
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.00411960
push str.VNLRemoveVnetFromDHCPConfigFile:_Last_reference_to_DHCP_server__deleting_configuration_file
push 2
mov dword [ebp - 0x888], 0x105
call fcn.00446b80
lea eax, [ebp - 0x480]
push eax
call fcn.0041a410
add esp, 0x18
test eax, eax
lea eax, [ebp - 0x480]
push eax
je 0x42bdaa
push str.VNLRemoveVnetFromDHCPConfigFile:_This_file_is_a_symlink_to_some_other_file__so_cannot_delete:__S
jmp 0x42bf68
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42bdee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42bdd8
push eax
lea eax, [ebp - 0x480]
push eax
push str.VNLRemoveVnetFromDHCPConfigFile:_DeleteFile__S__failed__error_0x_08x
push 1
call fcn.00446b80
add esp, 0x10
jmp 0x42bdee
lea eax, [ebp - 0x480]
push eax
push str.VNLRemoveVnetFromDHCPConfigFile:_DeleteFile__S__failed_since_file_not_present
push 4
call fcn.00446b80
add esp, 0xc
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.0042c100
test eax, eax
je 0x42bead
lea eax, [ebp - 0x274]
push eax
push str.VNLRemoveVnetFromDHCPConfigFile:_Removing_DHCP_leases_file__S
push 2
call fcn.00446b80
lea eax, [ebp - 0x274]
push eax
call fcn.0041a410
add esp, 0x10
test eax, eax
lea eax, [ebp - 0x274]
push eax
je 0x42be47
push str.VNLRemoveVnetFromDHCPConfigFile:_This_file_is_a_symlink_to_some_other_file__so_cannot_delete:__S
push 1
call fcn.00446b80
add esp, 0xc
jmp 0x42be4d
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [ebp - 0x274]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x42be56
mov eax, dword [0x4a8108]
mov dword [edi], eax
lea eax, [ebp - 0x274]
push eax
call fcn.0041a410
add esp, 4
test eax, eax
lea eax, [ebp - 0x274]
push eax
je 0x42bea7
push str.VNLRemoveVnetFromDHCPConfigFile:_This_file_is_a_symlink_to_some_other_file__so_cannot_delete:__S
push 1
call fcn.00446b80
add esp, 0xc
mov eax, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push esi
push str._Virtual_ethernet_segment__d_n
lea eax, [ebp - 0x880]
push 0x400
push eax
lfence
call fcn.00457af0
add esp, 0x10
test eax, eax
js 0x42bf5f
cmp eax, 0x400
jae 0x42bf5f
push str._End_n
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.0042a9f0
add esp, 0xc
test eax, eax
jne 0x42bf36
mov ecx, str.VNLRemoveVnetFromDHCPConfigFile:_failed_to_delete_block_from_file
mov eax, 1
push ecx
push eax
call fcn.00446b80
add esp, 8
mov eax, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
mov ecx, str.VNLRemoveVnetFromDHCPConfigFile:_successfully_deleted_block_from_file
mov eax, 0x10
push ecx
push eax
call fcn.00446b80
add esp, 8
mov eax, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push esi
lfence
push str.VNLRemoveVnetFromDHCPConfigFile:_unable_to_build_the_begin_marker_for_hub__d_n
push 1
call fcn.00446b80
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop esi
pop edi
call fcn.00401bd5
mov esp, ebp
pop ebp
ret