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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x4e7018]
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.0040f160
push 0x20a
lea eax, [ebp - 0x480]
push 0
push eax
call fcn.0040f160
add esp, 0x18
mov dword [ebp - 0x88c], 0x105
test edi, edi
jne 0x4253fe
push str.VNLRemoveVnetFromDHCPConfigFile:_invalid_parameter
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.0041a970
mov esi, eax
add esp, 4
test esi, esi
jns 0x425419
push edi
push str.VNLRemoveVnetFromDHCPConfigFile:_invalid_vnet_name:__s
jmp 0x42568b
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0040f160
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.004159a0
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.00423fc0
add esp, 0x34
test eax, eax
je 0x4254b7
cmp dword [ebp - 0x884], 0
je 0x4254b7
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.00424770
add esp, 0x14
test eax, eax
jne 0x4254b7
push str.VNLRemoveVnetFromDHCPConfigFile:_Error_writing_DHCP_registry_service_parameters
push 1
call fcn.004439a0
add esp, 8
lea eax, [ebp - 0x88c]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.004256b0
test eax, eax
jne 0x4254ef
push str.VNLRemoveVnetFromDHCPConfigFile:_could_not_get_path_to_configuration_file
push 1
call fcn.004439a0
add esp, 8
xor eax, eax
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.VNLRemoveVnetFromDHCPConfigFile:_obtained_path_to_configuration_file
push 0x10
call fcn.004439a0
add esp, 8
call fcn.00428c40
test eax, eax
jne 0x4255f9
push 0x20a
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.0040f160
push str.VNLRemoveVnetFromDHCPConfigFile:_Last_reference_to_DHCP_server__deleting_configuration_file
push 2
mov dword [ebp - 0x888], 0x105
call fcn.004439a0
add esp, 0x14
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x425581
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42556b
push eax
lea eax, [ebp - 0x480]
push eax
push str.VNLRemoveVnetFromDHCPConfigFile:_DeleteFile__S__failed__error_0x_08x
push 1
call fcn.004439a0
add esp, 0x10
jmp 0x425581
lea eax, [ebp - 0x480]
push eax
push str.VNLRemoveVnetFromDHCPConfigFile:_DeleteFile__S__failed_since_file_not_present
push 4
call fcn.004439a0
add esp, 0xc
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.00425820
test eax, eax
je 0x4255e4
lea eax, [ebp - 0x274]
push eax
push str.VNLRemoveVnetFromDHCPConfigFile:_Removing_DHCP_leases_file__S
push 2
call fcn.004439a0
add esp, 0xc
lea eax, [ebp - 0x274]
push eax
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 0x4255c4
mov eax, dword [0x4a0cb0]
mov dword [edi], eax
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push esi
push str._Virtual_ethernet_segment__d_n
lea eax, [ebp - 0x880]
push 0x400
push eax
call fcn.004516e0
add esp, 0x10
test eax, eax
js 0x425685
cmp eax, 0x400
jae 0x425685
push str._End_n
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00424200
add esp, 0xc
test eax, eax
jne 0x425661
push str.VNLRemoveVnetFromDHCPConfigFile:_failed_to_delete_block_from_file
push 1
call fcn.004439a0
add esp, 8
mov eax, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push str.VNLRemoveVnetFromDHCPConfigFile:_successfully_deleted_block_from_file
push 0x10
call fcn.004439a0
add esp, 8
mov eax, 1
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push esi
push str.VNLRemoveVnetFromDHCPConfigFile:_unable_to_build_the_begin_marker_for_hub__d_n
push 1
call fcn.004439a0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
xor eax, eax
pop esi
pop edi
call fcn.00401bf1
mov esp, ebp
pop ebp
ret