Function at 0x10056170
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008dd58
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x100a70c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
lea eax, [ebp - 0x98]
mov dword [ebp - 4], 0
push eax
call fcn.10056920
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x94]
je 0x10056707
push dword [eax + 0x108]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x10056200
sub edx, esi
lea ecx, [edi + 0x130]
push edx
push eax
call fcn.10002e20
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
lea eax, [ebp - 0x84]
push 1
push eax
push 0
mov dword [ebp - 0x84], 0
call esi
cmp eax, 0x7a
jne 0x10056707
push dword [ebp - 0x84]
call fcn.100635e2
add esp, 4
mov edi, eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0xa4], edi
push 1
push eax
push edi
call esi
test eax, eax
je 0x10056272
push 1
push edi
call fcn.100635d4
add esp, 8
jmp 0x10056707
mov esi, dword [ebp - 0x88]
lea eax, [esi + 0x14c]
push eax
mov dword [ebp - 0xa8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
mov dword [ebp - 0x7c], edx
cmp dword [edi], edx
jbe 0x100566f2
lea eax, [edi + 4]
mov dword [ebp - 0x78], eax
nop
mov edi, dword [ebp - 0x88]
mov ecx, dword [eax]
mov esi, dword [esi + 8]
mov dword [ebp - 0x9c], ecx
mov ecx, dword [eax + 4]
mov edi, dword [edi + 0xc]
mov dword [ebp - 0xa0], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x8c], ecx
cmp esi, edi
je 0x10056593
nop
push esi
lea ecx, [ebp - 0x40]
call fcn.10003d00
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
cmova eax, dword [ebp - 0x40]
mov dword [ebp - 0x74], eax
test ecx, ecx
je 0x10056303
push ecx
push 0x2f
push eax
call fcn.100657c0
add esp, 0xc
test eax, eax
je 0x10056303
sub eax, dword [ebp - 0x74]
jmp 0x10056306
or eax, 0xffffffff
xorps xmm0, xmm0
mov dword [ebp - 0x74], eax
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 3
cmp eax, 0xffffffff
jne 0x1005635e
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x70]
cmova eax, dword [ebp - 0x40]
push edx
push eax
call fcn.10002e20
jmp 0x10056434
cmp dword [ebp - 0x30], eax
mov ecx, eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], 0
cmovb ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0xf
push ecx
cmova eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
push eax
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
call fcn.10003170
movups xmm0, xmmword [ebp - 0x58]
mov edx, dword [ebp - 0x74]
or dword [ebp - 0x80], 2
inc edx
mov eax, dword [ebp - 0x30]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x60], xmm0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
cmp eax, edx
jb 0x10056732
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push ecx
add eax, edx
lea ecx, [ebp - 0x58]
push eax
call fcn.10003170
or dword [ebp - 0x80], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10056422
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10056418
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005672d
push ecx
push edx
call fcn.100635d4
add esp, 8
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ebp - 0x18], xmm0
cmp dword [ebp - 0x5c], 0xf
lea edx, [ebp - 0x70]
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
cmova edx, dword [ebp - 0x70]
mov eax, edx
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
lea ecx, [eax + 1]
mov dword [ebp - 0x74], ecx
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10056460
sub eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x58]
push eax
push edx
call fcn.10003170
lea ecx, [ebp - 0x58]
call fcn.1001a9b0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x74], eax
cmp ecx, 0xf
jbe 0x100564b6
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100564a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005672d
push ecx
push edx
call fcn.100635d4
mov eax, dword [ebp - 0x74]
add esp, 8
cmp dword [ebp - 0x9c], eax
je 0x100565f4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100564fa
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100564f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005672d
push ecx
push edx
call fcn.100635d4
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x10056544
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005653a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005672d
push ecx
push edx
call fcn.100635d4
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1005657c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10056572
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005672d
push ecx
push edx
call fcn.100635d4
add esp, 8
add esi, 0x18
cmp esi, edi
jne 0x100562d0
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x98]
mov edi, dword [ebp - 0x94]
cmp esi, edi
je 0x100565d1
cmp dword [esi + 0x108], ecx
jne 0x100565be
cmp dword [eax + 4], 0xffffffff
je 0x100565be
push eax
call dword [sym.imp.IPHLPAPI.DLL_DeleteIpForwardEntry]
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x78]
add esi, 0x110
cmp esi, edi
jne 0x100565a3
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
mov edi, dword [ebp - 0xa4]
inc edx
add eax, 0x38
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], eax
cmp edx, dword [edi]
jae 0x100566f2
mov esi, dword [ebp - 0x88]
jmp 0x100562a0
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.1006e643
mov ecx, 0x20
add esp, 4
sub ecx, eax
mov eax, 1
shl eax, cl
dec eax
not eax
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov byte [ebp - 4], 2
mov esi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1005665a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10056650
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005672d
push ecx
push edx
call fcn.100635d4
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0xf
jbe 0x100566a4
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005669a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005672d
push ecx
push edx
call fcn.100635d4
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x100566d8
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100566ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005672d
push ecx
push edx
call fcn.100635d4
add esp, 8
cmp dword [ebp - 0xa0], esi
jne 0x100565cb
push dword [ebp - 0x78]
call dword [sym.imp.IPHLPAPI.DLL_DeleteIpForwardEntry]
jmp 0x100565cb
push dword [ebp - 0xa8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call fcn.10063285
add esp, 4
lea ecx, [ebp - 0x98]
call fcn.100574b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10063277
mov esp, ebp
pop ebp
ret
call fcn.1006dc9f
call fcn.10003f90
int3