Function at 0x100349f2
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0x230], 0
cmp dword [ebp + 8], 0
je 0x10034a60
mov dword [ebp - 0x120], 0
jmp 0x10034a3b
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
cmp ecx, dword [ebp + 0xc]
jae 0x10034a60
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + 8]
cmp dword [eax + edx*8], 0xffffffff
je 0x10034a5e
mov dword [ebp - 8], 0
jmp 0x10034a60
jmp 0x10034a2c
cmp dword [ebp - 8], 0
je 0x10034a7d
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.100343a0
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10034ffb
cmp dword [ebp + 0x10], 0
jle 0x10034a97
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x230], edx
call fcn.10041620
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x22c], 0xffffffff
mov dword [ebp - 0x120], 0
jmp 0x10034ada
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
cmp ecx, dword [ebp + 0xc]
jae 0x10034d52
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + 8]
mov word [eax + edx*8 + 6], 0
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp + 8]
cmp dword [edx + ecx*8], 0xffffffff
jne 0x10034b0a
jmp 0x10034acb
xor eax, eax
test eax, eax
jne 0x10034b0a
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp + 8]
movsx eax, word [edx + ecx*8 + 4]
and eax, 7
test eax, eax
je 0x10034d4d
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*8]
cmp eax, dword [ebp - 0x22c]
jbe 0x10034b4f
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*8]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp + 8]
movsx eax, word [edx + ecx*8 + 4]
and eax, 1
test eax, eax
je 0x10034bf9
mov dword [ebp - 0x33c], 0
jmp 0x10034b83
mov ecx, dword [ebp - 0x33c]
add ecx, 1
mov dword [ebp - 0x33c], ecx
mov edx, dword [ebp - 0x33c]
cmp edx, dword [ebp - 0x114]
jae 0x10034bb0
mov eax, dword [ebp - 0x33c]
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + eax*4 - 0x110]
cmp eax, dword [edx + ecx*8]
jne 0x10034bae
jmp 0x10034bb0
jmp 0x10034b74
mov ecx, dword [ebp - 0x33c]
cmp ecx, dword [ebp - 0x114]
jne 0x10034bef
cmp dword [ebp - 0x114], 0x40
jae 0x10034bef
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*8]
mov dword [ebp + edx*4 - 0x110], eax
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
xor edx, edx
test edx, edx
jne 0x10034b68
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + eax*8 + 4]
and edx, 4
test edx, edx
je 0x10034ca3
mov dword [ebp - 0x340], 0
jmp 0x10034c2d
mov eax, dword [ebp - 0x340]
add eax, 1
mov dword [ebp - 0x340], eax
mov ecx, dword [ebp - 0x340]
cmp ecx, dword [ebp - 0x338]
jae 0x10034c5a
mov edx, dword [ebp - 0x340]
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + edx*4 - 0x334]
cmp edx, dword [ecx + eax*8]
jne 0x10034c58
jmp 0x10034c5a
jmp 0x10034c1e
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x338]
jne 0x10034c99
cmp dword [ebp - 0x338], 0x40
jae 0x10034c99
mov ecx, dword [ebp - 0x340]
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*8]
mov dword [ebp + ecx*4 - 0x334], edx
mov eax, dword [ebp - 0x338]
add eax, 1
mov dword [ebp - 0x338], eax
xor ecx, ecx
test ecx, ecx
jne 0x10034c12
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + 8]
movsx ecx, word [eax + edx*8 + 4]
and ecx, 2
test ecx, ecx
je 0x10034d4d
mov dword [ebp - 0x344], 0
jmp 0x10034cd7
mov edx, dword [ebp - 0x344]
add edx, 1
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x224]
jae 0x10034d04
mov ecx, dword [ebp - 0x344]
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + ecx*4 - 0x220]
cmp ecx, dword [eax + edx*8]
jne 0x10034d02
jmp 0x10034d04
jmp 0x10034cc8
mov edx, dword [ebp - 0x344]
cmp edx, dword [ebp - 0x224]
jne 0x10034d43
cmp dword [ebp - 0x224], 0x40
jae 0x10034d43
mov eax, dword [ebp - 0x344]
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx*8]
mov dword [ebp + eax*4 - 0x220], ecx
mov edx, dword [ebp - 0x224]
add edx, 1
mov dword [ebp - 0x224], edx
xor eax, eax
test eax, eax
jne 0x10034cbc
jmp 0x10034acb
cmp dword [ebp - 0x114], 0
jne 0x10034d84
cmp dword [ebp - 0x338], 0
jne 0x10034d84
cmp dword [ebp - 0x224], 0
jne 0x10034d84
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.100343a0
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10034ffb
xor edx, edx
cmp dword [ebp + 0x10], 0
setl dl
dec edx
lea eax, [ebp - 0x11c]
and edx, eax
mov dword [ebp - 0x228], edx
cmp dword [ebp + 0x10], 0
jle 0x10034dd2
mov eax, dword [ebp - 0x230]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x230]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x118], edx
jmp 0x10034dec
cmp dword [ebp + 0x10], 0
jne 0x10034dec
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x224]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x224]
and eax, ecx
push eax
mov edx, dword [ebp - 0x338]
neg edx
sbb edx, edx
lea eax, [ebp - 0x338]
and edx, eax
push edx
mov ecx, dword [ebp - 0x114]
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x114]
and ecx, edx
push ecx
mov eax, dword [ebp - 0x22c]
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x10034e47
jmp 0x10034eb7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x10034e73
cmp dword [0x1006afe8], 0
jne 0x10034e71
cmp dword [ebp - 0x234], 0x2714
je 0x10034e73
jmp 0x10034eb7
cmp dword [ebp + 0x10], 0
jle 0x10034ead
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10041620
push edx
push eax
call fcn.1004165d
add esp, 0x10
mov ecx, dword [ebp + 0x10]
sub ecx, eax
mov dword [ebp - 0x230], ecx
cmp dword [ebp - 0x230], 0
jg 0x10034ead
mov dword [ebp - 4], 0
jmp 0x10034eb7
cmp dword [ebp - 4], 0xffffffff
je 0x10034d9c
cmp dword [ebp - 4], 0
jge 0x10034ec5
or eax, 0xffffffff
jmp 0x10034ffb
cmp dword [ebp - 4], 0
jne 0x10034ed2
xor eax, eax
jmp 0x10034ffb
mov dword [ebp - 4], 0
mov dword [ebp - 0x120], 0
jmp 0x10034ef4
mov edx, dword [ebp - 0x120]
add edx, 1
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp + 0xc]
jae 0x10034ff8
mov ecx, dword [ebp - 0x120]
mov edx, dword [ebp + 8]
mov word [edx + ecx*8 + 6], 0
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*8], 0xffffffff
jne 0x10034f24
jmp 0x10034ee5
lea edx, [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10034f60
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + eax*8 + 6]
or dl, 1
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*8 + 6], dx
lea edx, [ebp - 0x338]
push edx
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10034f9c
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + eax*8 + 6]
or dl, 4
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*8 + 6], dx
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10034fd8
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov dx, word [ecx + eax*8 + 6]
or dl, 2
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov word [ecx + eax*8 + 6], dx
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + 8]
movsx ecx, word [eax + edx*8 + 6]
test ecx, ecx
je 0x10034ff3
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x10034ee5
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret