Function at 0x411030
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b14b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x44a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x38], ebx
push 0
push 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.004143e0
mov edi, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x40], edi
push 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
call fcn.004143e0
mov dword [ebp - 0x50], eax
push 0x2000
mov byte [ebp - 4], 1
call fcn.00423370
add esp, 4
mov dword [ebp - 0x6c], 0x400
mov esi, eax
mov dword [ebp - 0x54], esi
push 0x1000
call fcn.00423370
add esp, 4
mov dword [ebp - 0x44], eax
push 0
call fcn.004230b2
add esp, 4
mov dword [ebp - 0x88], eax
xor ecx, ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x5c], ecx
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx + 0x40], 0
jge 0x411127
mov ecx, ebx
call fcn.00410f00
mov dword [ebx + 0x40], eax
test eax, eax
jns 0x411127
cmp byte [ebx + 0x10], 0
jne 0x411127
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00410f00
mov dword [ebx + 0x40], eax
test eax, eax
js 0x411108
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebx + 0x10], 0
jne 0x411767
mov edx, 0x300
mov dword [ebp - 0x90], edx
nop word [eax + eax]
mov ecx, dword [ebp - 0x4c]
lea eax, [ecx*2 + 1]
cmp eax, dword [ebp - 0x6c]
jle 0x411191
lea eax, [ecx + 0x800]
mov dword [ebp - 0x6c], eax
shl eax, 3
push eax
push esi
call fcn.00424864
mov esi, eax
mov eax, dword [ebp - 0x6c]
shl eax, 2
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x54], esi
call fcn.00424864
add esp, 0x10
mov dword [ebp - 0x44], eax
mov edx, 0x300
mov eax, dword [ebx + 0x40]
test eax, eax
jns 0x4111a8
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x411745
xor ecx, ecx
mov dword [esi], eax
lea eax, [esi + 6]
mov word [esi + 4], dx
mov word [eax], cx
mov dword [ebp - 0x70], eax
lea ebx, [ecx + 1]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx]
cmp eax, ecx
je 0x4112c0
mov edi, ecx
nop dword [eax + eax]
mov edx, dword [eax + 8]
mov ecx, dword [edx + 0x18]
cmp ecx, 1
je 0x41128b
cmp ecx, 2
je 0x41128b
cmp ecx, 3
jne 0x4111fd
mov dword [esi + ebx*8 + 4], 0x10
mov ecx, dword [edx + 4]
jmp 0x4112a9
cmp ecx, 4
jne 0x4112b3
mov ecx, dword [ebp - 0x44]
mov dword [ecx + ebx*4 + 4], edx
mov dword [ecx + ebx*4], edx
xor ecx, ecx
mov dword [esi + ebx*8 + 4], ecx
mov dword [esi + ebx*8 + 0xc], ecx
mov ecx, dword [edx]
mov dword [esi + ebx*8], ecx
mov ecx, dword [edx + 4]
mov dword [esi + ebx*8 + 8], ecx
mov cl, byte [edx + 0x1c]
test cl, cl
je 0x411261
cmp byte [edx + 0x1d], 0
je 0x411247
mov ecx, 0x300
mov word [esi + ebx*8 + 0xc], cx
mov word [esi + ebx*8 + 4], cx
add ebx, 2
jmp 0x4112b3
test cl, cl
je 0x411261
cmp byte [edx + 0x1d], 0
jne 0x41125d
mov ecx, 0x310
mov word [esi + ebx*8 + 4], cx
jmp 0x4112b2
test cl, cl
jne 0x411277
cmp byte [edx + 0x1d], 0
je 0x411277
mov dword [esi + ebx*8 + 4], 0x310
mov ecx, dword [edx + 4]
mov dword [esi + ebx*8], ecx
jmp 0x4112b2
mov ecx, 0x10
mov word [esi + ebx*8 + 0xc], cx
mov word [esi + ebx*8 + 4], cx
add ebx, 2
jmp 0x4112b3
xor ecx, ecx
mov word [esi + ebx*8 + 6], cx
mov ecx, 0x10
cmp dword [edx + 0x18], 1
cmove ecx, dword [ebp - 0x90]
mov word [esi + ebx*8 + 4], cx
mov ecx, dword [edx]
mov dword [esi + ebx*8], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ecx + ebx*4], edx
inc ebx
mov eax, dword [eax]
cmp eax, edi
jne 0x4111d0
mov edi, dword [ebp - 0x34]
push 0x1388
mov edx, ebx
mov ecx, esi
call fcn.004014b0
add esp, 4
mov esi, eax
push 0
call fcn.004230b2
add esp, 4
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x48], edx
test esi, esi
jns 0x411314
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00422fff
push dword [eax]
call fcn.00425b09
add esp, 4
push eax
push str.poll_occur_error___s_._n
call fcn.0040eaf0
add esp, 8
jmp 0x411742
jne 0x41132e
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00411960
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x34], edi
jmp 0x411742
mov eax, dword [ebp - 0x70]
movzx eax, word [eax]
test al, 7
je 0x4114a7
call fcn.00422fff
push dword [eax]
call fcn.00425b09
add esp, 4
push eax
push str._accept_error___s_._n
call fcn.0040eaf0
mov edi, dword [ebp - 0x5c]
add esp, 8
inc edi
mov dword [ebp - 0x5c], edi
cmp edi, 0x1f4
jle 0x4113bf
mov edi, dword [ebp - 0x38]
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [edi + 0x40]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
mov dword [edi + 0x40], 0xffffffff
call fcn.00410f00
mov dword [edi + 0x40], eax
test eax, eax
jns 0x4113b6
cmp byte [edi + 0x10], 0
jne 0x4113b6
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.00410f00
mov dword [edi + 0x40], eax
test eax, eax
js 0x411397
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov byte [ebp - 4], 2
mov ecx, 1
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], ecx
mov esi, dword [eax]
mov dword [ebp - 0x68], esi
cmp ebx, ecx
jle 0x41160a
mov eax, dword [ebp - 0x70]
mov edi, dword [esi + 8]
shl ecx, 3
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x78], ecx
movzx eax, word [ecx + eax]
test al, 7
jne 0x411549
test eax, 0x300
je 0x41143e
mov eax, dword [ebp - 0x74]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x54]
push edi
mov dword [edi + 0x14], edx
push dword [ecx + eax]
mov ecx, dword [ebp - 0x38]
call fcn.00411c00
test eax, eax
js 0x411549
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x70]
test byte [ecx + eax], 0x10
je 0x41146a
mov eax, dword [ebp - 0x74]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x54]
push edi
push dword [ecx + eax]
mov ecx, dword [ebp - 0x38]
call fcn.00412090
test eax, eax
js 0x411549
cmp dword [edi + 8], 0
je 0x411482
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x84]
call fcn.00413200
mov esi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x60]
inc ecx
mov dword [ebp - 0x60], ecx
cmp ecx, ebx
jge 0x411602
mov eax, dword [ebp - 0x44]
cmp edi, dword [eax + ecx*4]
je 0x4115f0
mov esi, dword [esi]
mov dword [ebp - 0x68], esi
jmp 0x4115f0
test eax, 0x300
je 0x41153f
mov edi, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x58], 0x10
mov word [ebp - 0x1e], ax
mov dword [ebp - 0x1c], eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x54]
push dword [eax]
call dword [sym.imp.WS2_32.dll_accept]
push dword [edi + 0x20]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
js 0x411535
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x10
push eax
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
cmovs ecx, edx
push eax
sub esp, 8
mov dword [ebp - 0x2c], ecx
push esi
call fcn.00411840
test eax, eax
jns 0x41152f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
jmp 0x4113bf
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
jmp 0x4113c2
mov eax, dword [ebp - 0x64]
mov edi, esi
mov esi, dword [esi]
mov dword [ebp - 0x68], esi
mov ecx, dword [eax]
test ecx, ecx
js 0x411569
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x64]
mov dword [eax], 0xffffffff
mov eax, dword [eax + 4]
test eax, eax
js 0x411581
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x64]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [edi + 4]
mov eax, dword [edi]
dec dword [ebp - 0x4c]
push edi
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
call fcn.0041bea6
add esp, 4
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x34]
push dword [eax + 4]
push eax
call fcn.00414630
mov edx, dword [ebp - 0x3c]
mov ecx, 0x15555554
sub ecx, edx
mov edi, eax
cmp ecx, 1
jb 0x411758
mov eax, dword [ebp - 0x34]
inc edx
mov ecx, dword [ebp - 0x60]
inc ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x60], ecx
mov dword [eax + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
cmp ecx, ebx
jge 0x4115fc
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x58]
cmp eax, dword [edx + ecx*4]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
jne 0x4115f0
inc ecx
mov dword [ebp - 0x60], ecx
cmp ecx, ebx
jge 0x411602
mov edx, dword [ebp - 0x48]
jmp 0x4113f6
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x84]
jmp 0x41160c
xor ebx, ebx
mov eax, dword [ebp - 0x80]
sub eax, ebx
sar eax, 2
mov dword [ebp - 0x58], eax
test eax, eax
je 0x411698
xor edi, edi
test eax, eax
je 0x411698
mov esi, dword [ebx + edi*4]
mov ecx, dword [ebp - 0x38]
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 0x78], eax
call fcn.00412200
mov ecx, dword [esi + 4]
mov eax, dword [esi]
dec dword [ebp - 0x4c]
push esi
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
call fcn.0041bea6
add esp, 4
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x34]
push dword [eax + 4]
push eax
call fcn.00414630
mov edx, dword [ebp - 0x3c]
mov ecx, 0x15555554
sub ecx, edx
mov esi, eax
cmp ecx, 1
jb 0x411758
mov eax, dword [ebp - 0x34]
inc edx
inc edi
mov dword [ebp - 0x3c], edx
mov dword [eax + 4], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
cmp edi, dword [ebp - 0x58]
jae 0x411690
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
jmp 0x411621
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x34], edi
jmp 0x41169b
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x74]
mov ecx, esi
sub ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x48]
sbb eax, dword [ebp - 0x8c]
push eax
push ecx
call fcn.00409770
add esp, 8
test edx, edx
jl 0x4116e6
jg 0x4116c4
cmp eax, 0x1e
jb 0x4116e6
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x88], esi
push eax
call fcn.00411960
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 1
test ebx, ebx
je 0x411742
mov eax, dword [ebp - 0x7c]
sub eax, ebx
sar eax, 2
cmp eax, 0x3fffffff
ja 0x411762
shl eax, 2
cmp eax, 0x1000
jb 0x411721
test bl, 0x1f
jne 0x411762
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x411762
sub ebx, eax
cmp ebx, 4
jb 0x411762
cmp ebx, 0x23
ja 0x411762
mov ebx, eax
push ebx
call fcn.0041bea6
add esp, 4
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov ebx, dword [ebp - 0x38]
cmp byte [ebx + 0x10], 0
jne 0x411767
mov esi, dword [ebp - 0x54]
mov edx, 0x300
jmp 0x411150
push str.list_T__too_long
call fcn.0041be15
call fcn.00423320
mov esi, dword [edi]
cmp esi, edi
je 0x411781
nop dword [eax]
push dword [esi + 8]
call fcn.004230f4
mov esi, dword [esi]
add esp, 4
cmp esi, edi
jne 0x411770
mov ebx, dword [ebp - 0x50]
mov esi, dword [ebx]
cmp esi, ebx
je 0x4117c4
nop word [eax + eax]
mov edi, dword [esi + 8]
mov eax, dword [edi]
test eax, eax
js 0x4117a6
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
mov eax, dword [edi + 4]
test eax, eax
js 0x4117bb
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov esi, dword [esi]
cmp esi, ebx
jne 0x411790
mov edi, dword [ebp - 0x34]
push dword [ebp - 0x54]
call fcn.004230f4
mov eax, dword [ebx]
add esp, 4
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
cmp eax, ebx
je 0x4117f1
nop word [eax + eax]
mov esi, dword [eax]
push eax
call fcn.0041bea6
add esp, 4
mov eax, esi
cmp esi, ebx
jne 0x4117e0
push ebx
call fcn.0041bea6
mov eax, dword [edi]
add esp, 4
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x411816
mov esi, dword [eax]
push eax
call fcn.0041bea6
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x411805
push edi
call fcn.0041bea6
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041be62
mov esp, ebp
pop ebp
ret