Function at 0x411afa
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], esp
push 0
push 5
push 2
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x411b98
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.iphlpapi.dll_GetExtendedTcpTable]
nop
nop
cmp dword [ebp - 0x44], esp
je 0x411bbf
push 0xaf
push 0x401002b
push 6
call fcn.0043e37c
add esp, 0xc
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x1bc
call fcn.004415e0
add esp, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x411bf2
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], esp
push 0
push 5
push 2
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x411c1b
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.iphlpapi.dll_GetExtendedTcpTable]
nop
nop
cmp dword [ebp - 0x44], esp
je 0x411c42
push 0x122
push 0x401002b
push 6
call fcn.0043e37c
add esp, 0xc
push 0x80000301
push 0
push 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x411c61
mov eax, 0x46a40c
push eax
push 2
mov ebx, 0x1a0
call fcn.00440b10
add esp, 0x1c
mov dword [ebp - 0x44], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x411c9c
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x19c
call fcn.00440c70
add esp, 0x28
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x411cc8
push ebx
call fcn.0043e38e
add esp, 4
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
cmp ecx, 0x80000101
jne 0x411ce0
and eax, 0xff
jmp 0x411d35
cmp ecx, 0x80000201
jne 0x411ceb
cwde
jmp 0x411d35
cmp ecx, 0x80000301
je 0x411d35
cmp ecx, 0x80000401
je 0x411d35
mov dword [ebp - 0x58], eax
cmp ecx, 0x80000501
je 0x411d25
cmp ecx, 0x80000601
je 0x411d2a
push 0x19f
push 0x401002b
push 2
call fcn.0043e37c
add esp, 0xc
fld dword [ebp - 0x58]
jmp 0x411d30
mov dword [ebp - 0x54], edx
fld qword [ebp - 0x58]
call fcn.00401272
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 4
mov ebx, dword [0x46f969]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x411d60
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x411d5c
imul eax, dword [ebx]
jmp 0x411d51
mov ecx, eax
test ecx, ecx
je 0x411d8b
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0043e38e
add esp, 4
pop ebx
call fcn.0043e38e
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x411d66
call fcn.0043e38e
add esp, 4
mov eax, 0x46a40c
mov dword [0x46f969], eax
cmp dword [ebp - 0xc], 0
jne 0x411db1
mov eax, 0x46a2f3
jmp 0x412639
call fcn.00412681
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x411dcd
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
nop
cmp dword [ebp - 0x44], esp
je 0x411dfa
push 0x2a2
push 0x401002b
push 6
call fcn.0043e37c
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x412615
fild dword [ebp - 0x10]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x46e682]
fstp qword [ebp - 0x50]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x50]
call fcn.00401272
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x411e58
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x1a8
call fcn.00440e70
add esp, 0x28
mov dword [ebp - 0x54], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x411e93
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x19c
call fcn.00440c70
add esp, 0x28
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], ecx
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x411ebf
push ebx
call fcn.0043e38e
add esp, 4
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
cmp ecx, 0x80000101
jne 0x411ed7
and eax, 0xff
jmp 0x411f2c
cmp ecx, 0x80000201
jne 0x411ee2
cwde
jmp 0x411f2c
cmp ecx, 0x80000301
je 0x411f2c
cmp ecx, 0x80000401
je 0x411f2c
mov dword [ebp - 0x68], eax
cmp ecx, 0x80000501
je 0x411f1c
cmp ecx, 0x80000601
je 0x411f21
push 0x35f
push 0x401002b
push 2
call fcn.0043e37c
add esp, 0xc
fld dword [ebp - 0x68]
jmp 0x411f27
mov dword [ebp - 0x64], edx
fld qword [ebp - 0x68]
call fcn.00401272
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x46e905]
fstp qword [ebp - 0x50]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x50]
call fcn.00401272
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x411f70
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x1a8
call fcn.00440e70
add esp, 0x28
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x411f9a
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x46e90d]
fstp qword [ebp - 0x50]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x50]
call fcn.00401272
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x411fdf
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x1a8
call fcn.00440e70
add esp, 0x28
mov dword [ebp - 0x54], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x41201a
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x19c
call fcn.00440c70
add esp, 0x28
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], ecx
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x412046
push ebx
call fcn.0043e38e
add esp, 4
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
cmp ecx, 0x80000101
jne 0x41205e
and eax, 0xff
jmp 0x4120b3
cmp ecx, 0x80000201
jne 0x412069
cwde
jmp 0x4120b3
cmp ecx, 0x80000301
je 0x4120b3
cmp ecx, 0x80000401
je 0x4120b3
mov dword [ebp - 0x68], eax
cmp ecx, 0x80000501
je 0x4120a3
cmp ecx, 0x80000601
je 0x4120a8
push 0x43c
push 0x401002b
push 2
call fcn.0043e37c
add esp, 0xc
fld dword [ebp - 0x68]
jmp 0x4120ae
mov dword [ebp - 0x64], edx
fld qword [ebp - 0x68]
call fcn.00401272
mov dword [ebp - 0x28], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x46e915]
fstp qword [ebp - 0x50]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x50]
call fcn.00401272
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4120f7
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x1a8
call fcn.00440e70
add esp, 0x28
mov dword [ebp - 0x54], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x412132
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x19c
call fcn.00440c70
add esp, 0x28
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], ecx
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x41215e
push ebx
call fcn.0043e38e
add esp, 4
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
cmp ecx, 0x80000101
jne 0x412176
and eax, 0xff
jmp 0x4121cb
cmp ecx, 0x80000201
jne 0x412181
cwde
jmp 0x4121cb
cmp ecx, 0x80000301
je 0x4121cb
cmp ecx, 0x80000401
je 0x4121cb
mov dword [ebp - 0x68], eax
cmp ecx, 0x80000501
je 0x4121bb
cmp ecx, 0x80000601
je 0x4121c0
push 0x4b9
push 0x401002b
push 2
call fcn.0043e37c
add esp, 0xc
fld dword [ebp - 0x68]
jmp 0x4121c6
mov dword [ebp - 0x64], edx
fld qword [ebp - 0x68]
call fcn.00401272
mov dword [ebp - 0x2c], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x46e91d]
fstp qword [ebp - 0x50]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x50]
call fcn.00401272
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x41220f
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x1a8
call fcn.00440e70
add esp, 0x28
mov dword [ebp - 0x54], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x41224a
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x19c
call fcn.00440c70
add esp, 0x28
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], ecx
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x412276
push ebx
call fcn.0043e38e
add esp, 4
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
cmp ecx, 0x80000101
jne 0x41228e
and eax, 0xff
jmp 0x4122e3
cmp ecx, 0x80000201
jne 0x412299
cwde
jmp 0x4122e3
cmp ecx, 0x80000301
je 0x4122e3
cmp ecx, 0x80000401
je 0x4122e3
mov dword [ebp - 0x68], eax
cmp ecx, 0x80000501
je 0x4122d3
cmp ecx, 0x80000601
je 0x4122d8
push 0x536
push 0x401002b
push 2
call fcn.0043e37c
add esp, 0xc
fld dword [ebp - 0x68]
jmp 0x4122de
mov dword [ebp - 0x64], edx
fld qword [ebp - 0x68]
call fcn.00401272
mov dword [ebp - 0x30], eax
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x412311
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x1a8
call fcn.00440e70
add esp, 0x28
mov dword [ebp - 0x44], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x41234c
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x19c
call fcn.00440c70
add esp, 0x28
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x412378
push ebx
call fcn.0043e38e
add esp, 4
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
cmp ecx, 0x80000101
jne 0x412390
and eax, 0xff
jmp 0x4123e5
cmp ecx, 0x80000201
jne 0x41239b
cwde
jmp 0x4123e5
cmp ecx, 0x80000301
je 0x4123e5
cmp ecx, 0x80000401
je 0x4123e5
mov dword [ebp - 0x58], eax
cmp ecx, 0x80000501
je 0x4123d5
cmp ecx, 0x80000601
je 0x4123da
push 0x59a
push 0x401002b
push 2
call fcn.0043e37c
add esp, 0xc
fld dword [ebp - 0x58]
jmp 0x4123e0
mov dword [ebp - 0x54], edx
fld qword [ebp - 0x58]
call fcn.00401272
mov dword [ebp - 0x34], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x48]
fld qword [ebp - 0x48]
fadd qword [0x46e925]
fstp qword [ebp - 0x50]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x50]
call fcn.00401272
push 0x80000301
push 0
push eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x412429
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x1a8
call fcn.00440e70
add esp, 0x28
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x412453
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 1
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x412482
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x1a8
call fcn.00440e70
add esp, 0x28
mov dword [ebp - 0x44], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4124bd
mov eax, 0x46a40c
push eax
push 3
mov ebx, 0x19c
call fcn.00440c70
add esp, 0x28
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], ecx
mov ebx, dword [ebp - 0x44]
test ebx, ebx
je 0x4124e9
push ebx
call fcn.0043e38e
add esp, 4
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
cmp ecx, 0x80000101
jne 0x412501
and eax, 0xff
jmp 0x412556
cmp ecx, 0x80000201
jne 0x41250c
cwde
jmp 0x412556
cmp ecx, 0x80000301
je 0x412556
cmp ecx, 0x80000401
je 0x412556
mov dword [ebp - 0x58], eax
cmp ecx, 0x80000501
je 0x412546
cmp ecx, 0x80000601
je 0x41254b
push 0x659
push 0x401002b
push 2
call fcn.0043e37c
add esp, 0xc
fld dword [ebp - 0x58]
jmp 0x412551
mov dword [ebp - 0x54], edx
fld qword [ebp - 0x58]
call fcn.00401272
mov dword [ebp - 0x38], eax
push dword [ebp - 0x28]
call fcn.0041294e
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x3c], eax
jne 0x412609
push dword [ebp - 0x30]
call fcn.00412b18
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x41258f
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
push 0x46a2f3
push dword [ebp - 0x40]
call fcn.004010c1
add esp, 8
cmp eax, 0
jne 0x412604
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x46f8b9]
test eax, eax
jne 0x4125c1
mov eax, 0x46a2f3
push eax
push 1
mov ebx, 0x9dc
call fcn.004405b0
add esp, 0x10
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 6
jl 0x412604
push dword [ebp - 0x30]
call fcn.0041323d
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
push eax
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x412600
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
jmp 0x412615
add dword [ebp - 0x10], 0x18
pop eax
pop ebx
pop ecx
jmp 0x411e09
add esp, 0xc
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x412634
push eax
mov ebx, eax
call fcn.00401299
inc eax
push eax
call fcn.0043e388
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x412639
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41264a
push ebx
call fcn.0043e38e
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41265a
push ebx
call fcn.0043e38e
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x41266a
push ebx
call fcn.0043e38e
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x41267a
push ebx
call fcn.0043e38e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4