Function at 0x100343e9
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x22c], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x10034433
cmp dword [ebp + 0xc], 0xffffffff
jne 0x10034433
cmp dword [ebp + 0x10], 0xffffffff
jne 0x10034433
mov eax, dword [ebp + 0x14]
push eax
call fcn.100343a0
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x100349ee
cmp dword [ebp + 0x14], 0
jle 0x1003444d
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x22c], ecx
call fcn.10041620
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x228], 0xffffffff
mov dword [ebp - 0x110], 0
cmp dword [ebp + 8], 0xffffffff
je 0x1003457a
xor edx, edx
test edx, edx
jne 0x10034475
mov dword [ebp - 0x338], 0
jmp 0x10034496
mov eax, dword [ebp - 0x338]
add eax, 1
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x338]
cmp ecx, dword [ebp - 0x110]
jae 0x100344ba
mov edx, dword [ebp - 0x338]
mov eax, dword [ebp + edx*4 - 0x10c]
cmp eax, dword [ebp + 8]
jne 0x100344b8
jmp 0x100344ba
jmp 0x10034487
mov ecx, dword [ebp - 0x338]
cmp ecx, dword [ebp - 0x110]
jne 0x100344f0
cmp dword [ebp - 0x110], 0x40
jae 0x100344f0
mov edx, dword [ebp - 0x338]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
xor edx, edx
test edx, edx
jne 0x1003447b
mov dword [ebp - 0x33c], 0
jmp 0x10034511
mov eax, dword [ebp - 0x33c]
add eax, 1
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
cmp ecx, dword [ebp - 0x220]
jae 0x10034535
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp + edx*4 - 0x21c]
cmp eax, dword [ebp + 8]
jne 0x10034533
jmp 0x10034535
jmp 0x10034502
mov ecx, dword [ebp - 0x33c]
cmp ecx, dword [ebp - 0x220]
jne 0x1003456b
cmp dword [ebp - 0x220], 0x40
jae 0x1003456b
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x21c], eax
mov ecx, dword [ebp - 0x220]
add ecx, 1
mov dword [ebp - 0x220], ecx
xor edx, edx
test edx, edx
jne 0x100344f6
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x10034694
xor ecx, ecx
test ecx, ecx
jne 0x10034584
mov dword [ebp - 0x340], 0
jmp 0x100345a5
mov edx, dword [ebp - 0x340]
add edx, 1
mov dword [ebp - 0x340], edx
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x110]
jae 0x100345c9
mov ecx, dword [ebp - 0x340]
mov edx, dword [ebp + ecx*4 - 0x10c]
cmp edx, dword [ebp + 0xc]
jne 0x100345c7
jmp 0x100345c9
jmp 0x10034596
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x110]
jne 0x100345ff
cmp dword [ebp - 0x110], 0x40
jae 0x100345ff
mov ecx, dword [ebp - 0x340]
mov edx, dword [ebp + 0xc]
mov dword [ebp + ecx*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
test ecx, ecx
jne 0x1003458a
mov dword [ebp - 0x344], 0
jmp 0x10034620
mov edx, dword [ebp - 0x344]
add edx, 1
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x220]
jae 0x10034644
mov ecx, dword [ebp - 0x344]
mov edx, dword [ebp + ecx*4 - 0x21c]
cmp edx, dword [ebp + 0xc]
jne 0x10034642
jmp 0x10034644
jmp 0x10034611
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x220]
jne 0x1003467a
cmp dword [ebp - 0x220], 0x40
jae 0x1003467a
mov ecx, dword [ebp - 0x344]
mov edx, dword [ebp + 0xc]
mov dword [ebp + ecx*4 - 0x21c], edx
mov eax, dword [ebp - 0x220]
add eax, 1
mov dword [ebp - 0x220], eax
xor ecx, ecx
test ecx, ecx
jne 0x10034605
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x228]
jbe 0x10034694
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x334], 0
cmp dword [ebp + 0x10], 0xffffffff
je 0x100347b8
xor ecx, ecx
test ecx, ecx
jne 0x100346a8
mov dword [ebp - 0x348], 0
jmp 0x100346c9
mov edx, dword [ebp - 0x348]
add edx, 1
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp - 0x334]
jae 0x100346ed
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp + ecx*4 - 0x330]
cmp edx, dword [ebp + 0x10]
jne 0x100346eb
jmp 0x100346ed
jmp 0x100346ba
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp - 0x334]
jne 0x10034723
cmp dword [ebp - 0x334], 0x40
jae 0x10034723
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp + 0x10]
mov dword [ebp + ecx*4 - 0x330], edx
mov eax, dword [ebp - 0x334]
add eax, 1
mov dword [ebp - 0x334], eax
xor ecx, ecx
test ecx, ecx
jne 0x100346ae
mov dword [ebp - 0x34c], 0
jmp 0x10034744
mov edx, dword [ebp - 0x34c]
add edx, 1
mov dword [ebp - 0x34c], edx
mov eax, dword [ebp - 0x34c]
cmp eax, dword [ebp - 0x220]
jae 0x10034768
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ebp + ecx*4 - 0x21c]
cmp edx, dword [ebp + 0x10]
jne 0x10034766
jmp 0x10034768
jmp 0x10034735
mov eax, dword [ebp - 0x34c]
cmp eax, dword [ebp - 0x220]
jne 0x1003479e
cmp dword [ebp - 0x220], 0x40
jae 0x1003479e
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ebp + 0x10]
mov dword [ebp + ecx*4 - 0x21c], edx
mov eax, dword [ebp - 0x220]
add eax, 1
mov dword [ebp - 0x220], eax
xor ecx, ecx
test ecx, ecx
jne 0x10034729
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x228]
jbe 0x100347b8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x228], eax
xor ecx, ecx
cmp dword [ebp + 0x14], 0
setl cl
dec ecx
lea edx, [ebp - 0x118]
and ecx, edx
mov dword [ebp - 0x224], ecx
cmp dword [ebp + 0x14], 0
jle 0x10034806
mov eax, dword [ebp - 0x22c]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x22c]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x114], edx
jmp 0x10034820
cmp dword [ebp + 0x14], 0
jne 0x10034820
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov edx, dword [ebp - 0x224]
push edx
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x334]
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x334]
and ecx, edx
push ecx
mov eax, dword [ebp - 0x110]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x110]
and eax, ecx
push eax
mov edx, dword [ebp - 0x228]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x1003486f
jmp 0x100348df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x1003489b
cmp dword [0x1006afe8], 0
jne 0x10034899
cmp dword [ebp - 0x230], 0x2714
je 0x1003489b
jmp 0x100348df
cmp dword [ebp + 0x14], 0
jle 0x100348d5
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10041620
push edx
push eax
call fcn.1004165d
add esp, 0x10
mov edx, dword [ebp + 0x14]
sub edx, eax
mov dword [ebp - 0x22c], edx
cmp dword [ebp - 0x22c], 0
jg 0x100348d5
mov dword [ebp - 4], 0
jmp 0x100348df
cmp dword [ebp - 4], 0xffffffff
je 0x100347d0
cmp dword [ebp - 4], 0
jge 0x100348ed
or eax, 0xffffffff
jmp 0x100349ee
cmp dword [ebp - 4], 0
jne 0x100348fa
xor eax, eax
jmp 0x100349ee
mov dword [ebp - 0x11c], 0
cmp dword [ebp + 8], 0xffffffff
je 0x10034950
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1003492d
mov edx, dword [ebp - 0x11c]
or edx, 1
mov dword [ebp - 0x11c], edx
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10034950
mov edx, dword [ebp - 0x11c]
or edx, 4
mov dword [ebp - 0x11c], edx
cmp dword [ebp + 0xc], 0xffffffff
je 0x1003499c
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10034979
mov edx, dword [ebp - 0x11c]
or edx, 8
mov dword [ebp - 0x11c], edx
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1003499c
mov edx, dword [ebp - 0x11c]
or edx, 4
mov dword [ebp - 0x11c], edx
cmp dword [ebp + 0x10], 0xffffffff
je 0x100349e8
lea eax, [ebp - 0x334]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100349c5
mov edx, dword [ebp - 0x11c]
or edx, 2
mov dword [ebp - 0x11c], edx
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100349e8
mov edx, dword [ebp - 0x11c]
or edx, 4
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
mov esp, ebp
pop ebp
ret