Function at 0x46464d
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
mov byte [ebp - 0x2c], 0
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x30], 0
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, ecx
stosw word es:[edi], ax
mov edx, esi
mov dword [ebp - 0x3c], esi
stosb byte es:[edi], al
call fcn.004c3b34
test eax, eax
jne 0x46483f
mov al, byte [esi]
test al, al
je 0x4646af
mov ecx, esi
cmp al, 0x2e
je 0x4646af
cmp al, 0x3f
je 0x46470e
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4646a0
mov eax, esi
call fcn.0046743d
test eax, eax
mov ebx, str._._._._
je 0x464830
mov eax, ebx
call fcn.0046743d
test eax, eax
je 0x464830
xor esi, esi
push esi
lea eax, [ebp - 0x30]
push eax
push esi
mov dword [ebp - 0x30], esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
jne 0x4647e5
push 1
push dword [ebp - 0x30]
call fcn.00511988
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
pop ecx
jne 0x464736
push 1
push dword [ebp - 0x30]
push str.:8:DeleteRoute___FAILED:_calloc__d___d___FAILED:_Out_of_memory_
jmp 0x464837
cmp byte [0x5dbfba], 0
jne 0x46472a
push str._._._._
push esi
push str.:3:DeleteRoute___s_____s___FAILED:_The_first_field_of_the_ip_address_cannot_contain_a_wild_card_
call fcn.00426c01
add esp, 0xc
mov byte [0x5dbfba], 1
jmp 0x46483f
push edi
lea eax, [ebp - 0x30]
push eax
push esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp dword [esi], edi
jne 0x464750
push str.:DeleteRoute___encountered_an_exception:_The_routing_table_is_empty.__Not_even_one_entry_was_detected.__This_should_never_happen_
call fcn.00426c01
pop ecx
cmp dword [esi], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
jle 0x4647d9
lea edi, [esi + 4]
mov ecx, dword [edi]
lea eax, [ebp - 0x2c]
call fcn.00467c17
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x18]
call fcn.00467c17
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x2c]
call fcn.00467515
test eax, eax
je 0x4647cc
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.00467515
test eax, eax
je 0x4647cc
push edi
call sub.iphlpapi.dll_DeleteIpForwardEntry
test eax, eax
jne 0x46479e
inc dword [ebp - 0x34]
jmp 0x4647cc
cmp byte [0x5dbfbb], 0
jne 0x4647c5
push str._GetLastError_
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x3c]
push str.:1:DeleteRoute___s_____s___encountered_a_problem:_DeleteIpForwardEntry___s_____s___FAILED:__s
call fcn.00426c01
add esp, 0x18
mov byte [0x5dbfbb], 1
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add edi, 0x38
cmp eax, dword [esi]
jl 0x46475d
push esi
call fcn.00511758
mov eax, dword [ebp - 0x34]
pop ecx
jmp 0x464842
cmp eax, esi
je 0x464829
cmp eax, 0x32
je 0x46481c
cmp eax, 0x57
je 0x464805
push str._GetLastError_
push str.:7:DeleteRoute___FAILED:__s
call fcn.004265da
pop ecx
jmp 0x464826
push dword [ebp - 0x30]
lea eax, [ebp - 0x30]
push eax
push esi
push str.:8:DeleteRoute__p___p__d___0__FAILED:_ERROR_INVALID_PARAMETER:_The_pdwSize_parameter_is_NULL__or_GetIpForwardTable_is_unable_to_write_to_the_memory_pointed_to_by_the_pdwSize_parameter.
call fcn.004265da
add esp, 0x10
jmp 0x46483f
push str.:9:DeleteRoute___FAILED:_This_function_is_not_supported_on_the_operating_system_in_use_on_the_local_system.
call fcn.004265da
pop ecx
jmp 0x46483f
push str.:9:DeleteRoute___encountered_a_SERIOUS_EXCEPTION____FAILED:_GetIpForwardTable___returned_success_when_the_given_destination_table_size_was_zero.__This_should_be_impossible_and_is_a_serious_problem___
jmp 0x464821
push ebx
push esi
push str.:5:DeleteRoute___s_____s___FAILED:_Invalid_parameter.
call fcn.004265da
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret