Function at 0x46d1a1
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5f2e68]
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.004ccc0d
test eax, eax
jne 0x46d393
mov al, byte [esi]
test al, al
je 0x46d203
mov ecx, esi
cmp al, 0x2e
je 0x46d203
cmp al, 0x3f
je 0x46d262
inc ecx
mov al, byte [ecx]
test al, al
jne 0x46d1f4
mov eax, esi
call fcn.0046ffa0
test eax, eax
mov ebx, str._._._._
je 0x46d384
mov eax, ebx
call fcn.0046ffa0
test eax, eax
je 0x46d384
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 0x46d339
push 1
push dword [ebp - 0x30]
call fcn.00530848
mov esi, eax
xor edi, edi
cmp esi, edi
pop ecx
pop ecx
jne 0x46d28a
push 1
push dword [ebp - 0x30]
push str.:8:DeleteRoute___FAILED:_calloc__d___d___FAILED:_Out_of_memory_
jmp 0x46d38b
cmp byte [0x60a002], 0
jne 0x46d27e
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.0042bd38
add esp, 0xc
mov byte [0x60a002], 1
jmp 0x46d393
push edi
lea eax, [ebp - 0x30]
push eax
push esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp dword [esi], edi
jne 0x46d2a4
push str.:DeleteRoute___encountered_an_exception:_The_routing_table_is_empty.__Not_even_one_entry_was_detected.__This_should_never_happen_
call fcn.0042bd38
pop ecx
cmp dword [esi], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
jle 0x46d32d
lea edi, [esi + 4]
mov ecx, dword [edi]
lea eax, [ebp - 0x2c]
call fcn.0047077a
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x18]
call fcn.0047077a
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x2c]
call fcn.00470078
test eax, eax
je 0x46d320
lea edx, [ebp - 0x18]
mov ecx, ebx
call fcn.00470078
test eax, eax
je 0x46d320
push edi
call sub.iphlpapi.dll_DeleteIpForwardEntry
test eax, eax
jne 0x46d2f2
inc dword [ebp - 0x34]
jmp 0x46d320
cmp byte [0x60a003], 0
jne 0x46d319
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.0042bd38
add esp, 0x18
mov byte [0x60a003], 1
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add edi, 0x38
cmp eax, dword [esi]
jl 0x46d2b1
push esi
call fcn.0053061e
mov eax, dword [ebp - 0x34]
pop ecx
jmp 0x46d396
cmp eax, esi
je 0x46d37d
cmp eax, 0x32
je 0x46d370
cmp eax, 0x57
je 0x46d359
push str._GetLastError_
push str.:7:DeleteRoute___FAILED:__s
call fcn.0042b70b
pop ecx
jmp 0x46d37a
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.0042b70b
add esp, 0x10
jmp 0x46d393
push str.:9:DeleteRoute___FAILED:_This_function_is_not_supported_on_the_operating_system_in_use_on_the_local_system.
call fcn.0042b70b
pop ecx
jmp 0x46d393
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 0x46d375
push ebx
push esi
push str.:5:DeleteRoute___s_____s___FAILED:_Invalid_parameter.
call fcn.0042b70b
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret