Function at 0x10011e60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004198a
mov eax, dword fs:[0]
push eax
sub esp, 0x35c
mov eax, dword [0x100590e0]
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 esi, ecx
mov dword [ebp - 0x32c], esi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x340]
push 0
push 0
mov dword [ebp - 0x350], edi
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x33c], 0
call fcn.10015770
mov dword [ebp - 0x340], eax
push 0
push 0
lea ecx, [ebp - 0x338]
mov dword [ebp - 4], 0
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x334], 0
call fcn.10015770
mov dword [ebp - 0x338], eax
push 0
push 0
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x348], 0
call fcn.10015770
mov dword [ebp - 0x34c], eax
lea eax, [esi + 4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x354], eax
mov al, byte [eax]
test al, al
je 0x10011f5d
xor bl, bl
jmp 0x1001286e
lea ebx, [esi + 0x48]
push edi
mov ecx, ebx
mov dword [ebp - 0x328], ebx
call fcn.10016df0
test al, al
je 0x10011f79
mov bl, 1
jmp 0x1001286e
mov dword [ebp - 0x324], 0
lea eax, [ebp - 0x324]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x88]
call fcn.100137b0
test al, al
je 0x10011fc1
nop dword [eax]
mov ecx, dword [ebp - 0x324]
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x324]
push eax
lea ecx, [esi + 0x88]
call fcn.100137b0
test al, al
jne 0x10011fa0
mov eax, dword [ebp - 0x324]
mov byte [ebp - 4], 4
test eax, eax
je 0x10011fe0
mov ecx, dword [eax + 4]
add eax, 4
mov ecx, dword [ecx + 4]
add eax, ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 0x320], 0
mov eax, dword [ebp - 0x32c]
lea ecx, [ebp - 0x320]
add eax, 8
mov byte [ebp - 4], 5
push ecx
xor edi, edi
mov dword [ebp - 0x330], 0
mov ecx, eax
mov dword [ebp - 0x324], edi
mov dword [ebp - 0x344], eax
call fcn.10016df0
test al, al
je 0x1001230b
mov esi, dword [ebp - 0x320]
test esi, esi
je 0x10012089
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x10012084
mov edi, dword [ebp - 0x34c]
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x34c]
push dword [edi + 4]
push edi
call fcn.1000e370
mov edx, dword [ebp - 0x348]
mov ecx, 0x15555554
sub ecx, edx
mov esi, eax
cmp ecx, 1
jb 0x10012301
mov dword [edi + 4], esi
inc edx
mov eax, dword [esi + 4]
mov dword [ebp - 0x348], edx
mov dword [eax], esi
jmp 0x10012265
lea eax, [esi + 0xc]
jmp 0x1001208e
mov eax, 0x1005a88c
cmp dword [eax], 0
jne 0x10012172
mov ebx, dword [ebp - 0x218]
xor edi, edi
test ebx, ebx
je 0x100120be
lea ecx, [ebp - 0x320]
call fcn.10017240
mov eax, dword [eax]
cmp dword [ebp + edi*4 - 0x214], eax
je 0x100120be
inc edi
cmp edi, ebx
jb 0x100120b0
cmp edi, ebx
jne 0x100120e2
cmp ebx, 0x40
jae 0x100120e2
lea eax, [esi + 0x10]
test esi, esi
jne 0x100120d3
mov eax, 0x1005900c
mov eax, dword [eax]
mov dword [ebp + edi*4 - 0x214], eax
inc dword [ebp - 0x218]
mov ebx, dword [ebp - 0x114]
xor edi, edi
test ebx, ebx
je 0x1001210e
lea ecx, [ebp - 0x320]
call fcn.10017240
mov eax, dword [eax]
nop dword [eax + eax]
cmp dword [ebp + edi*4 - 0x110], eax
je 0x1001210e
inc edi
cmp edi, ebx
jb 0x10012100
cmp edi, ebx
jne 0x10012132
cmp ebx, 0x40
jae 0x10012132
lea eax, [esi + 0x10]
test esi, esi
jne 0x10012123
mov eax, 0x1005900c
mov eax, dword [eax]
mov dword [ebp + edi*4 - 0x110], eax
inc dword [ebp - 0x114]
mov esi, dword [ebp - 0x340]
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x340]
push dword [esi + 4]
push esi
call fcn.1000e370
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [ebp - 0x33c]
sub ecx, eax
cmp ecx, 1
jb 0x10012301
inc eax
mov dword [ebp - 0x33c], eax
jmp 0x1001225d
lea eax, [esi + 0xc]
test esi, esi
jne 0x1001217e
mov eax, 0x1005a88c
cmp dword [eax], 1
jne 0x10012271
mov ebx, dword [ebp - 0x31c]
xor edi, edi
test ebx, ebx
je 0x100121ae
lea ecx, [ebp - 0x320]
call fcn.10017240
mov eax, dword [eax]
cmp dword [ebp + edi*4 - 0x318], eax
je 0x100121ae
inc edi
cmp edi, ebx
jb 0x100121a0
cmp edi, ebx
jne 0x100121d2
cmp ebx, 0x40
jae 0x100121d2
lea eax, [esi + 0x10]
test esi, esi
jne 0x100121c3
mov eax, 0x1005900c
mov eax, dword [eax]
mov dword [ebp + edi*4 - 0x318], eax
inc dword [ebp - 0x31c]
mov ebx, dword [ebp - 0x114]
xor edi, edi
test ebx, ebx
je 0x100121fe
lea ecx, [ebp - 0x320]
call fcn.10017240
mov eax, dword [eax]
nop dword [eax + eax]
cmp dword [ebp + edi*4 - 0x110], eax
je 0x100121fe
inc edi
cmp edi, ebx
jb 0x100121f0
cmp edi, ebx
jne 0x10012222
cmp ebx, 0x40
jae 0x10012222
lea eax, [esi + 0x10]
test esi, esi
jne 0x10012213
mov eax, 0x1005900c
mov eax, dword [eax]
mov dword [ebp + edi*4 - 0x110], eax
inc dword [ebp - 0x114]
mov esi, dword [ebp - 0x338]
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x338]
push dword [esi + 4]
push esi
call fcn.1000e370
mov edx, eax
mov ecx, 0x15555554
mov eax, dword [ebp - 0x334]
sub ecx, eax
cmp ecx, 1
jb 0x10012301
inc eax
mov dword [ebp - 0x334], eax
mov dword [esi + 4], edx
mov eax, dword [edx + 4]
mov dword [eax], edx
mov esi, dword [ebp - 0x320]
mov edi, dword [ebp - 0x324]
lea eax, [esi + 0x10]
test esi, esi
jne 0x1001227d
mov eax, 0x1005900c
mov ecx, dword [ebp - 0x330]
cmp ecx, dword [eax]
jae 0x1001229b
lea eax, [esi + 0x10]
test esi, esi
jne 0x10012293
mov eax, 0x1005900c
mov eax, dword [eax]
mov dword [ebp - 0x330], eax
inc edi
mov dword [ebp - 0x324], edi
cmp edi, 0x3f
je 0x100122c7
mov ecx, dword [ebp - 0x344]
lea eax, [ebp - 0x320]
push eax
call fcn.10016df0
test al, al
jne 0x10012025
mov esi, dword [ebp - 0x320]
mov ebx, dword [ebp - 0x328]
mov edi, dword [ebp - 0x32c]
add edi, 0x88
mov ecx, edi
mov dword [ebp - 0x368], edi
mov eax, dword [edi]
call dword [eax]
mov eax, dword [edi + 0x1c]
mov byte [ebp - 4], 6
cmp eax, dword [edi + 0x20]
jne 0x10012313
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 7
call dword [eax + 4]
or edi, 0xffffffff
jmp 0x1001235e
push str.list_T__too_long
call fcn.1001e8fd
mov esi, dword [ebp - 0x320]
jmp 0x100122cd
mov eax, dword [0x1005a888]
test eax, eax
jne 0x10012326
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
jmp 0x10012328
call eax
mov ecx, eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax]
cmp edx, dword [eax + 0x14]
jb 0x1001233f
ja 0x1001233b
cmp ecx, dword [eax + 0x10]
jbe 0x1001233f
xor edi, edi
jmp 0x10012349
mov eax, dword [edi + 0x1c]
mov eax, dword [eax]
mov edi, dword [eax + 0x10]
sub edi, ecx
mov ecx, dword [ebp - 0x32c]
add ecx, 0x88
mov byte [ebp - 4], 8
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x33c], 0
mov byte [ebp - 4], 5
jne 0x100123cd
cmp dword [ebp - 0x334], 0
jne 0x100123cd
mov esi, dword [ebp - 0x32c]
lea ecx, [esi + 0xc8]
call fcn.100194c0
push edi
push dword [esi + 0xe0]
call fcn.1000bc50
mov esi, dword [ebp - 0x354]
add esp, 8
mov al, byte [esi]
test al, al
je 0x100123a7
xor bl, bl
jmp 0x1001285a
mov edi, dword [ebp - 0x34c]
mov esi, dword [edi]
cmp esi, edi
je 0x100123c6
push 1
lea eax, [esi + 8]
mov ecx, ebx
push eax
call fcn.10016f60
mov esi, dword [esi]
cmp esi, edi
jne 0x100123b3
mov ecx, ebx
jmp 0x1001284d
mov dword [ebp - 0x35c], 0
lea eax, [ebp - 0x35c]
mov dword [ebp - 0x358], 0
mov dword [ebp - 0x324], eax
cmp edi, 0xffffffff
jne 0x100123fe
mov dword [ebp - 0x324], 0
jmp 0x1001241e
push 0x3e8
push edi
call fcn.10030654
add esp, 8
mov dword [ebp - 0x35c], eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x358], eax
mov ebx, dword [ebp - 0x32c]
add ebx, 0xc8
mov ecx, ebx
call fcn.100194b0
test al, al
jne 0x1001244b
push str._select_tracker__udp_loopback_create_failed
push 4
call fcn.1001dae0
add esp, 8
xor bl, bl
jmp 0x10012860
mov ecx, ebx
call fcn.1000c1c0
mov edi, eax
xor ecx, ecx
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x1001246e
cmp dword [ebp + ecx*4 - 0x214], edi
je 0x1001246e
inc ecx
cmp ecx, eax
jb 0x10012460
cmp ecx, eax
jne 0x10012484
cmp eax, 0x40
jae 0x10012484
mov dword [ebp + ecx*4 - 0x214], edi
inc dword [ebp - 0x218]
mov ecx, dword [ebp - 0x114]
xor eax, eax
test ecx, ecx
je 0x1001249e
cmp dword [ebp + eax*4 - 0x110], edi
je 0x1001249e
inc eax
cmp eax, ecx
jb 0x10012490
cmp eax, ecx
jne 0x100124b4
cmp ecx, 0x40
jae 0x100124b4
mov dword [ebp + eax*4 - 0x110], edi
inc dword [ebp - 0x114]
push dword [ebp - 0x324]
mov eax, dword [ebp - 0x330]
lea ecx, [ebp - 0x114]
push ecx
cmp eax, edi
lea ecx, [ebp - 0x31c]
push ecx
cmovb eax, edi
lea ecx, [ebp - 0x218]
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test ebx, ebx
jns 0x10012582
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push ebx
push str._select_tracker__select_return__d__cause__u
push 2
call fcn.1001dae0
add esp, 0x10
cmp edi, 0x2736
je 0x10012514
xor bl, bl
jmp 0x10012860
mov ebx, dword [ebp - 0x340]
mov edi, dword [ebx]
cmp edi, ebx
je 0x1001253f
mov esi, dword [ebp - 0x344]
push 1
lea eax, [edi + 8]
mov ecx, esi
push eax
call fcn.10016f60
mov edi, dword [edi]
cmp edi, ebx
jne 0x10012526
mov esi, dword [ebp - 0x320]
mov ebx, dword [ebp - 0x338]
mov edi, dword [ebx]
cmp edi, ebx
je 0x1001256a
mov esi, dword [ebp - 0x344]
push 1
lea eax, [edi + 8]
mov ecx, esi
push eax
call fcn.10016f60
mov edi, dword [edi]
cmp edi, ebx
jne 0x10012551
mov esi, dword [ebp - 0x320]
push dword [ebp - 0x350]
mov ecx, dword [ebp - 0x328]
call fcn.10016df0
mov bl, 1
jmp 0x10012860
mov esi, dword [ebp - 0x354]
mov al, byte [esi]
test al, al
je 0x10012595
xor bl, bl
jmp 0x1001285a
lea eax, [ebp - 0x218]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100125d5
mov ecx, dword [ebp - 0x32c]
lea eax, [ebp - 0x360]
push 4
push eax
lea ecx, [ecx + 0xc8]
call fcn.100194e0
cmp eax, 4
jge 0x100125fc
push eax
push str._select_tracker__recv_event_failed__return__d
push 4
call fcn.1001dae0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001261f
push str._select_tracker__control_event_socket_be_closed
push 1
call fcn.1001dae0
add esp, 8
xor bl, bl
jmp 0x1001285a
cmp dword [ebp - 0x360], 0
jne 0x100125d5
mov al, 1
xchg byte [esi], al
push str._select_tracker__control_event_:_Stop
push 1
call fcn.1001dae0
add esp, 8
xor bl, bl
jmp 0x1001285a
mov ebx, dword [ebp - 0x340]
mov esi, dword [ebx]
cmp esi, ebx
je 0x100126be
nop
mov eax, dword [esi + 8]
lea edi, [esi + 8]
test eax, eax
je 0x1001263f
add eax, 0x10
jmp 0x10012644
mov eax, 0x1005900c
lea ecx, [ebp - 0x114]
push ecx
push dword [eax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov eax, dword [edi]
je 0x10012680
test eax, eax
je 0x1001266d
mov ecx, dword [ebp - 0x328]
add eax, 0x14
mov dword [eax], 2
jmp 0x100126ac
mov ecx, dword [ebp - 0x328]
mov eax, 0x10059010
mov dword [eax], 2
jmp 0x100126ac
test eax, eax
je 0x10012689
add eax, 0x10
jmp 0x1001268e
mov eax, 0x1005900c
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [ebp - 0x328]
test eax, eax
jne 0x100126ac
mov ecx, dword [ebp - 0x344]
push 1
push edi
call fcn.10016f60
mov esi, dword [esi]
cmp esi, ebx
jne 0x10012630
mov ebx, dword [ebp - 0x338]
mov esi, dword [ebx]
cmp esi, ebx
je 0x1001281a
nop
mov eax, dword [esi + 8]
lea edi, [esi + 8]
test eax, eax
je 0x100126df
add eax, 0x10
jmp 0x100126e4
mov eax, 0x1005900c
lea ecx, [ebp - 0x114]
push ecx
push dword [eax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov eax, dword [edi]
je 0x10012726
test eax, eax
je 0x10012710
mov ecx, dword [ebp - 0x328]
add eax, 0x14
mov dword [eax], 2
jmp 0x10012808
mov ecx, dword [ebp - 0x328]
mov eax, 0x10059010
mov dword [eax], 2
jmp 0x10012808
test eax, eax
je 0x1001272f
add eax, 0x10
jmp 0x10012734
mov eax, 0x1005900c
lea ecx, [ebp - 0x31c]
push ecx
push dword [eax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10012802
mov eax, dword [edi]
test eax, eax
je 0x10012755
add eax, 0x14
jmp 0x1001275a
mov eax, 0x10059010
cmp dword [eax], 4
jne 0x100127fa
mov eax, dword [edi]
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x364], 4
test eax, eax
je 0x10012782
add eax, 0x10
jmp 0x10012787
mov eax, 0x1005900c
lea ecx, [ebp - 0x364]
push ecx
lea ecx, [ebp - 0x330]
push ecx
push 0x1007
push 0xffff
push dword [eax]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jns 0x100127c2
mov eax, dword [edi]
test eax, eax
je 0x100127e2
mov ecx, dword [ebp - 0x328]
add eax, 0x14
mov dword [eax], 2
jmp 0x10012808
cmp dword [ebp - 0x330], 0
je 0x100127f5
mov eax, dword [edi]
test eax, eax
je 0x100127e2
mov ecx, dword [ebp - 0x328]
add eax, 0x14
mov dword [eax], 2
jmp 0x10012808
mov ecx, dword [ebp - 0x328]
mov eax, 0x10059010
mov dword [eax], 2
jmp 0x10012808
call fcn.1002eb0f
mov ecx, dword [ebp - 0x328]
jmp 0x10012808
mov ecx, dword [ebp - 0x344]
push 1
push edi
call fcn.10016f60
mov esi, dword [esi]
cmp esi, ebx
jne 0x100126d0
mov edi, dword [ebp - 0x34c]
mov esi, dword [edi]
cmp esi, edi
je 0x10012847
nop word [eax + eax]
mov ecx, dword [ebp - 0x328]
lea eax, [esi + 8]
push 1
push eax
call fcn.10016f60
mov esi, dword [esi]
cmp esi, edi
jne 0x10012830
mov ecx, dword [ebp - 0x328]
push dword [ebp - 0x350]
call fcn.10016df0
mov bl, 1
mov esi, dword [ebp - 0x320]
mov byte [ebp - 4], 0xb
test esi, esi
je 0x1001286e
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [ebp - 0x34c]
call fcn.10015ed0
push 0xc
push 1
push dword [ebp - 0x34c]
call fcn.10015830
add esp, 0xc
lea ecx, [ebp - 0x338]
call fcn.10015ed0
push 0xc
push 1
push dword [ebp - 0x338]
call fcn.10015830
add esp, 0xc
lea ecx, [ebp - 0x340]
call fcn.10015ed0
push 0xc
push 1
push dword [ebp - 0x340]
call fcn.10015830
add esp, 0xc
mov al, bl
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.1001ff0d
mov esp, ebp
pop ebp
ret 4