Function at 0x420c07
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
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
jmp 0x420c6f
mov dword [ebp - 0x30], esp
push 0
push 5
push 2
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x420c94
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.iphlpapi.dll_GetExtendedTcpTable]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x420cb1
push 6
call fcn.0043896b
add esp, 4
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x1bc
call fcn.00439cf0
add esp, 0x10
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x420ce4
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], esp
push 0
push 5
push 2
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x420d0d
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.iphlpapi.dll_GetExtendedTcpTable]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x420d2a
push 6
call fcn.0043896b
add esp, 4
push 0x80000301
push 0
push 4
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x420d49
mov eax, 0x46c39b
push eax
push 2
mov ebx, 0x1a0
call fcn.00439f30
add esp, 0x1c
mov dword [ebp - 0x30], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x420d84
mov eax, 0x46c39b
push eax
push 3
mov ebx, 0x19c
call fcn.00439b50
add esp, 0x28
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x420db0
push ebx
call fcn.00438983
add esp, 4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
cmp ecx, 0x80000101
jne 0x420dc8
and eax, 0xff
jmp 0x420e13
cmp ecx, 0x80000201
jne 0x420dd3
cwde
jmp 0x420e13
cmp ecx, 0x80000301
je 0x420e13
cmp ecx, 0x80000401
je 0x420e13
mov dword [ebp - 0x44], eax
cmp ecx, 0x80000501
je 0x420e03
cmp ecx, 0x80000601
je 0x420e08
push 2
call fcn.0043896b
add esp, 4
fld dword [ebp - 0x44]
jmp 0x420e0e
mov dword [ebp - 0x40], edx
fld qword [ebp - 0x44]
call fcn.00402f03
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 4
cmp dword [ebp - 0xc], 0
jne 0x420e31
mov eax, 0
jmp 0x4215cf
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4215a1
fild dword [ebp - 0x10]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x46c3e3]
fstp qword [ebp - 0x3c]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x3c]
call fcn.00402f03
push 0x80000301
push 0
push eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x420e8c
mov eax, 0x46c39b
push eax
push 3
mov ebx, 0x1a8
call fcn.0043a330
add esp, 0x28
mov dword [ebp - 0x40], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x420ec7
mov eax, 0x46c39b
push eax
push 3
mov ebx, 0x19c
call fcn.00439b50
add esp, 0x28
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x420ef3
push ebx
call fcn.00438983
add esp, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
cmp ecx, 0x80000101
jne 0x420f0b
and eax, 0xff
jmp 0x420f56
cmp ecx, 0x80000201
jne 0x420f16
cwde
jmp 0x420f56
cmp ecx, 0x80000301
je 0x420f56
cmp ecx, 0x80000401
je 0x420f56
mov dword [ebp - 0x54], eax
cmp ecx, 0x80000501
je 0x420f46
cmp ecx, 0x80000601
je 0x420f4b
push 2
call fcn.0043896b
add esp, 4
fld dword [ebp - 0x54]
jmp 0x420f51
mov dword [ebp - 0x50], edx
fld qword [ebp - 0x54]
call fcn.00402f03
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x779da4]
fstp qword [ebp - 0x3c]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x3c]
call fcn.00402f03
push 0x80000301
push 0
push eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x420f9a
mov eax, 0x46c39b
push eax
push 3
mov ebx, 0x1a8
call fcn.0043a330
add esp, 0x28
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x420fc4
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x779dac]
fstp qword [ebp - 0x3c]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x3c]
call fcn.00402f03
push 0x80000301
push 0
push eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x421009
mov eax, 0x46c39b
push eax
push 3
mov ebx, 0x1a8
call fcn.0043a330
add esp, 0x28
mov dword [ebp - 0x40], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x421044
mov eax, 0x46c39b
push eax
push 3
mov ebx, 0x19c
call fcn.00439b50
add esp, 0x28
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x421070
push ebx
call fcn.00438983
add esp, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
cmp ecx, 0x80000101
jne 0x421088
and eax, 0xff
jmp 0x4210d3
cmp ecx, 0x80000201
jne 0x421093
cwde
jmp 0x4210d3
cmp ecx, 0x80000301
je 0x4210d3
cmp ecx, 0x80000401
je 0x4210d3
mov dword [ebp - 0x54], eax
cmp ecx, 0x80000501
je 0x4210c3
cmp ecx, 0x80000601
je 0x4210c8
push 2
call fcn.0043896b
add esp, 4
fld dword [ebp - 0x54]
jmp 0x4210ce
mov dword [ebp - 0x50], edx
fld qword [ebp - 0x54]
call fcn.00402f03
mov dword [ebp - 0x20], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x779db4]
fstp qword [ebp - 0x3c]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x3c]
call fcn.00402f03
push 0x80000301
push 0
push eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x421117
mov eax, 0x46c39b
push eax
push 3
mov ebx, 0x1a8
call fcn.0043a330
add esp, 0x28
mov dword [ebp - 0x40], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x421152
mov eax, 0x46c39b
push eax
push 3
mov ebx, 0x19c
call fcn.00439b50
add esp, 0x28
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x42117e
push ebx
call fcn.00438983
add esp, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x4c]
cmp ecx, 0x80000101
jne 0x421196
and eax, 0xff
jmp 0x4211e1
cmp ecx, 0x80000201
jne 0x4211a1
cwde
jmp 0x4211e1
cmp ecx, 0x80000301
je 0x4211e1
cmp ecx, 0x80000401
je 0x4211e1
mov dword [ebp - 0x54], eax
cmp ecx, 0x80000501
je 0x4211d1
cmp ecx, 0x80000601
je 0x4211d6
push 2
call fcn.0043896b
add esp, 4
fld dword [ebp - 0x54]
jmp 0x4211dc
mov dword [ebp - 0x50], edx
fld qword [ebp - 0x54]
call fcn.00402f03
mov dword [ebp - 0x24], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fadd qword [0x779dbc]
fstp qword [ebp - 0x3c]
push 0x80000301
push 0
push 4
fld qword [ebp - 0x3c]
call fcn.00402f03
push 0x80000301
push 0
push eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x421225
mov eax, 0x46c39b
push eax
push 3
mov ebx, 0x1a8
call fcn.0043a330
add esp, 0x28
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42124f
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push 1
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x42127e
mov eax, 0x46c39b
push eax
push 3
mov ebx, 0x1a8
call fcn.0043a330
add esp, 0x28
mov dword [ebp - 0x30], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4212b9
mov eax, 0x46c39b
push eax
push 3
mov ebx, 0x19c
call fcn.00439b50
add esp, 0x28
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4212e5
push ebx
call fcn.00438983
add esp, 4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
cmp ecx, 0x80000101
jne 0x4212fd
and eax, 0xff
jmp 0x421348
cmp ecx, 0x80000201
jne 0x421308
cwde
jmp 0x421348
cmp ecx, 0x80000301
je 0x421348
cmp ecx, 0x80000401
je 0x421348
mov dword [ebp - 0x44], eax
cmp ecx, 0x80000501
je 0x421338
cmp ecx, 0x80000601
je 0x42133d
push 2
call fcn.0043896b
add esp, 4
fld dword [ebp - 0x44]
jmp 0x421343
mov dword [ebp - 0x40], edx
fld qword [ebp - 0x44]
call fcn.00402f03
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x18], 5
jne 0x421595
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x24], eax
jne 0x421595
push dword [ebp - 0x28]
call fcn.0041d780
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.WSOCK32.dll_ntohs]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x42138e
push 6
call fcn.0043896b
add esp, 4
push 0x80000301
push 0
push eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4213a9
mov eax, 0x46c304
push eax
push 0x70002
push 0
push dword [0xa31958]
push 3
mov ebx, 0x20
mov eax, 0x446240
call fcn.00439280
add esp, 0x28
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4213de
push ebx
call fcn.00438983
add esp, 4
push 0x80000301
push 0
push 0x2710
push reloc.WSOCK32.dll_connect
push 0
push str._id_:1__jsonrpc_:_2.0___method_:_login___params_:_login_:_x___pass_:_x___agent_:_x__r_n
push 0x70002
push 0
push dword [0xa31958]
push 3
mov ebx, 0x2c
mov eax, 0x4463a0
call fcn.00439280
add esp, 0x28
push 0
push 0
push 0
push 0x80000301
push 0
push 0x2710
push 0x70002
push 0
push dword [0xa31958]
push 3
mov ebx, 0x28
mov eax, 0x4462f0
call fcn.00439280
add esp, 0x28
mov dword [ebp - 0x30], eax
push reloc.WSOCK32.dll_getpeername
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x421466
mov eax, 0x46c39b
push eax
push 1
mov ebx, 0x168
call fcn.0043a000
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x42148c
push ebx
call fcn.00438983
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4214a0
push ebx
call fcn.00438983
add esp, 4
pop eax
mov dword [ebp - 0x2c], eax
push 0x70002
push 0
push dword [0xa31958]
push 1
mov ebx, 0x24
mov eax, 0x4462d0
call fcn.00439280
add esp, 0x10
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4214db
mov eax, 0x46c304
push eax
push 1
mov ebx, 0x154
call fcn.0043ab20
add esp, 0x10
mov dword [ebp - 0x30], eax
push reloc.WSOCK32.dll_connect
push 0
push str._jsonrpc_:_2.0_
push 1
mov ebx, 0x154
call fcn.0043ab20
add esp, 0x10
mov dword [ebp - 0x34], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x421537
mov eax, 0x46c304
push eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x42154b
mov eax, 0x46c304
push eax
push 4
mov ebx, 0x148
call fcn.0043ab80
add esp, 0x34
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x421571
push ebx
call fcn.00438983
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x421581
push ebx
call fcn.00438983
add esp, 4
cmp dword [ebp - 0x38], 0xffffffff
je 0x421595
mov eax, 1
jmp 0x4215cf
add dword [ebp - 0x10], 0x18
pop eax
pop ebx
pop ecx
jmp 0x420e3d
add esp, 0xc
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
call fcn.00415fe0
mov eax, 0
jmp 0x4215cf
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4215e0
push ebx
call fcn.00438983
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4215f0
push ebx
call fcn.00438983
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x421600
push ebx
call fcn.00438983
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4