Function at 0x412f20
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push ebx
push esi
push edi
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x328], 0
cmp dword [ebp + 8], 0xffffffff
jne 0x412f79
cmp dword [ebp + 0xc], 0xffffffff
jne 0x412f79
cmp dword [ebp + 0x10], 0xffffffff
jne 0x412f79
mov eax, dword [ebp + 0x14]
push eax
call fcn.00412ec0
add esp, 4
mov dword [ebp - 0x330], eax
mov eax, dword [ebp - 0x330]
jmp 0x41353d
cmp dword [ebp + 0x14], 0
jle 0x412f99
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x328], ecx
call fcn.00425ec0
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], edx
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x31c], 0xffffffff
mov dword [ebp - 0x110], 0
cmp dword [ebp + 8], 0xffffffff
je 0x4130c6
xor edx, edx
test edx, edx
jne 0x412fc1
mov dword [ebp - 0x338], 0
jmp 0x412fe2
mov eax, dword [ebp - 0x338]
add eax, 1
mov dword [ebp - 0x338], eax
mov ecx, dword [ebp - 0x338]
cmp ecx, dword [ebp - 0x110]
jae 0x413006
mov edx, dword [ebp - 0x338]
mov eax, dword [ebp + edx*4 - 0x10c]
cmp eax, dword [ebp + 8]
jne 0x413004
jmp 0x413006
jmp 0x412fd3
mov ecx, dword [ebp - 0x338]
cmp ecx, dword [ebp - 0x110]
jne 0x41303c
cmp dword [ebp - 0x110], 0x40
jae 0x41303c
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 0x412fc7
mov dword [ebp - 0x33c], 0
jmp 0x41305d
mov eax, dword [ebp - 0x33c]
add eax, 1
mov dword [ebp - 0x33c], eax
mov ecx, dword [ebp - 0x33c]
cmp ecx, dword [ebp - 0x318]
jae 0x413081
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp + edx*4 - 0x314]
cmp eax, dword [ebp + 8]
jne 0x41307f
jmp 0x413081
jmp 0x41304e
mov ecx, dword [ebp - 0x33c]
cmp ecx, dword [ebp - 0x318]
jne 0x4130b7
cmp dword [ebp - 0x318], 0x40
jae 0x4130b7
mov edx, dword [ebp - 0x33c]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x314], eax
mov ecx, dword [ebp - 0x318]
add ecx, 1
mov dword [ebp - 0x318], ecx
xor edx, edx
test edx, edx
jne 0x413042
mov eax, dword [ebp + 8]
mov dword [ebp - 0x31c], eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x4131e0
xor ecx, ecx
test ecx, ecx
jne 0x4130d0
mov dword [ebp - 0x340], 0
jmp 0x4130f1
mov edx, dword [ebp - 0x340]
add edx, 1
mov dword [ebp - 0x340], edx
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x110]
jae 0x413115
mov ecx, dword [ebp - 0x340]
mov edx, dword [ebp + ecx*4 - 0x10c]
cmp edx, dword [ebp + 0xc]
jne 0x413113
jmp 0x413115
jmp 0x4130e2
mov eax, dword [ebp - 0x340]
cmp eax, dword [ebp - 0x110]
jne 0x41314b
cmp dword [ebp - 0x110], 0x40
jae 0x41314b
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 0x4130d6
mov dword [ebp - 0x344], 0
jmp 0x41316c
mov edx, dword [ebp - 0x344]
add edx, 1
mov dword [ebp - 0x344], edx
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x318]
jae 0x413190
mov ecx, dword [ebp - 0x344]
mov edx, dword [ebp + ecx*4 - 0x314]
cmp edx, dword [ebp + 0xc]
jne 0x41318e
jmp 0x413190
jmp 0x41315d
mov eax, dword [ebp - 0x344]
cmp eax, dword [ebp - 0x318]
jne 0x4131c6
cmp dword [ebp - 0x318], 0x40
jae 0x4131c6
mov ecx, dword [ebp - 0x344]
mov edx, dword [ebp + 0xc]
mov dword [ebp + ecx*4 - 0x314], edx
mov eax, dword [ebp - 0x318]
add eax, 1
mov dword [ebp - 0x318], eax
xor ecx, ecx
test ecx, ecx
jne 0x413151
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x31c]
jbe 0x4131e0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x214], 0
cmp dword [ebp + 0x10], 0xffffffff
je 0x413304
xor ecx, ecx
test ecx, ecx
jne 0x4131f4
mov dword [ebp - 0x348], 0
jmp 0x413215
mov edx, dword [ebp - 0x348]
add edx, 1
mov dword [ebp - 0x348], edx
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp - 0x214]
jae 0x413239
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp + ecx*4 - 0x210]
cmp edx, dword [ebp + 0x10]
jne 0x413237
jmp 0x413239
jmp 0x413206
mov eax, dword [ebp - 0x348]
cmp eax, dword [ebp - 0x214]
jne 0x41326f
cmp dword [ebp - 0x214], 0x40
jae 0x41326f
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp + 0x10]
mov dword [ebp + ecx*4 - 0x210], edx
mov eax, dword [ebp - 0x214]
add eax, 1
mov dword [ebp - 0x214], eax
xor ecx, ecx
test ecx, ecx
jne 0x4131fa
mov dword [ebp - 0x34c], 0
jmp 0x413290
mov edx, dword [ebp - 0x34c]
add edx, 1
mov dword [ebp - 0x34c], edx
mov eax, dword [ebp - 0x34c]
cmp eax, dword [ebp - 0x318]
jae 0x4132b4
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ebp + ecx*4 - 0x314]
cmp edx, dword [ebp + 0x10]
jne 0x4132b2
jmp 0x4132b4
jmp 0x413281
mov eax, dword [ebp - 0x34c]
cmp eax, dword [ebp - 0x318]
jne 0x4132ea
cmp dword [ebp - 0x318], 0x40
jae 0x4132ea
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ebp + 0x10]
mov dword [ebp + ecx*4 - 0x314], edx
mov eax, dword [ebp - 0x318]
add eax, 1
mov dword [ebp - 0x318], eax
xor ecx, ecx
test ecx, ecx
jne 0x413275
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x31c]
jbe 0x413304
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x31c], eax
xor ecx, ecx
cmp dword [ebp + 0x14], 0
setl cl
dec ecx
lea edx, [ebp - 8]
and ecx, edx
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x14], 0
jle 0x413346
mov eax, dword [ebp - 0x328]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x328]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 4], edx
jmp 0x41335a
cmp dword [ebp + 0x14], 0
jne 0x41335a
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x214]
neg ecx
sbb ecx, ecx
lea edx, [ebp - 0x214]
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 - 0x31c]
add edx, 1
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x330], eax
cmp dword [ebp - 0x330], 0xffffffff
je 0x4133ac
jmp 0x413428
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0
je 0x4133d8
cmp dword [0x479810], 0
jne 0x4133d6
cmp dword [ebp - 0x32c], 0x2714
je 0x4133d8
jmp 0x413428
cmp dword [ebp + 0x14], 0
jle 0x41341b
mov eax, dword [ebp - 0x320]
push eax
mov ecx, dword [ebp - 0x324]
push ecx
call fcn.00425ec0
push edx
push eax
call fcn.00425f10
add esp, 0x10
mov edx, dword [ebp + 0x14]
sub edx, eax
mov dword [ebp - 0x328], edx
cmp dword [ebp - 0x328], 0
jg 0x41341b
mov dword [ebp - 0x330], 0
jmp 0x413428
cmp dword [ebp - 0x330], 0xffffffff
je 0x413316
cmp dword [ebp - 0x330], 0
jge 0x413439
or eax, 0xffffffff
jmp 0x41353d
cmp dword [ebp - 0x330], 0
jne 0x413449
xor eax, eax
jmp 0x41353d
mov dword [ebp - 0x334], 0
cmp dword [ebp + 8], 0xffffffff
je 0x41349f
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41347c
mov edx, dword [ebp - 0x334]
or edx, 1
mov dword [ebp - 0x334], edx
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41349f
mov edx, dword [ebp - 0x334]
or edx, 4
mov dword [ebp - 0x334], edx
cmp dword [ebp + 0xc], 0xffffffff
je 0x4134eb
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4134c8
mov edx, dword [ebp - 0x334]
or edx, 8
mov dword [ebp - 0x334], edx
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4134eb
mov edx, dword [ebp - 0x334]
or edx, 4
mov dword [ebp - 0x334], edx
cmp dword [ebp + 0x10], 0xffffffff
je 0x413537
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x413514
mov edx, dword [ebp - 0x334]
or edx, 2
mov dword [ebp - 0x334], edx
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x413537
mov edx, dword [ebp - 0x334]
or edx, 4
mov dword [ebp - 0x334], edx
mov eax, dword [ebp - 0x334]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret