Function at 0x41f280
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x4635a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x318], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x320], eax
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x324], eax
or eax, 0xffffffff
mov dword [ebp - 0x32c], edi
mov dword [ebp - 0x314], eax
test edi, edi
je 0x41f2df
push edi
push 0
call sub.WS2_32.dll___WSAFDIsSet
mov dword [ebp - 0x31c], 1
test eax, eax
jne 0x41f2e9
mov dword [ebp - 0x31c], 0
test ebx, ebx
je 0x41f303
push ebx
push 0
call sub.WS2_32.dll___WSAFDIsSet
mov dword [ebp - 0x328], 1
test eax, eax
jne 0x41f30d
mov dword [ebp - 0x328], 0
mov eax, dword [ebp + 8]
mov esi, eax
test eax, eax
jle 0x41f35a
test edi, edi
je 0x41f325
push edi
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41f357
mov eax, dword [ebp - 0x318]
test eax, eax
je 0x41f33a
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41f357
test ebx, ebx
je 0x41f349
push ebx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x41f357
mov eax, dword [ebp + 8]
dec esi
dec eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x41f316
jmp 0x41f35a
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x31c], 0
mov esi, dword [ebp - 0x328]
jne 0x41f3d5
test esi, esi
jne 0x41f3d5
test eax, eax
jle 0x41f397
push dword [ebp - 0x320]
push ebx
push dword [ebp - 0x318]
push edi
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x320]
test ecx, ecx
jne 0x41f3b0
push 0x2710
call fcn.0041ff70
add esp, 4
jmp 0x41f3a1
imul eax, dword [ecx], 0xf4240
add eax, dword [ecx + 4]
push eax
call fcn.0041ff90
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044590e
mov esp, ebp
pop ebp
ret
cmp dword [0x464990], 0
jne 0x41f409
call fcn.00422fc0
test eax, eax
jne 0x41f3ff
push 0x19a
push str.nbase_misc.c
push 0x45d140
call dword [sym.imp.MSVCR120.dll__wassert]
add esp, 0xc
mov dword [0x464990], 1
cmp dword [ebp - 0x31c], 0
je 0x41f453
mov edx, dword [edi]
xor ecx, ecx
test edx, edx
je 0x41f453
lea eax, [edi + 4]
lea ecx, [ecx]
cmp dword [eax], 0
je 0x41f42f
inc ecx
add eax, 4
cmp ecx, edx
jb 0x41f420
jmp 0x41f453
lea eax, [edx - 1]
cmp ecx, eax
jae 0x41f451
lea edx, [edi + 4]
lea edx, [edx + ecx*4]
lea esp, [esp]
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc ecx
mov eax, dword [edi]
dec eax
cmp ecx, eax
jb 0x41f440
dec dword [edi]
test esi, esi
je 0x41f493
mov edx, dword [ebx]
xor ecx, ecx
test edx, edx
je 0x41f493
lea eax, [ebx + 4]
cmp dword [eax], 0
je 0x41f471
inc ecx
add eax, 4
cmp ecx, edx
jb 0x41f462
jmp 0x41f493
lea eax, [edx - 1]
cmp ecx, eax
jae 0x41f491
lea edx, [ebx + 4]
lea edx, [edx + ecx*4]
mov edi, edi
mov eax, dword [edx + 4]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc ecx
mov eax, dword [ebx]
dec eax
cmp ecx, eax
jb 0x41f480
dec dword [ebx]
mov eax, dword [ebp - 0x320]
test eax, eax
je 0x41f4d0
imul ecx, dword [eax], 0xf4240
add ecx, dword [eax + 4]
mov eax, 0x431bde83
imul ecx
sar edx, 0xf
mov esi, edx
shr esi, 0x1f
add esi, edx
imul eax, esi, 0x1e848
mov dword [ebp - 0x314], esi
sub ecx, eax
je 0x41f4d3
inc esi
mov dword [ebp - 0x314], esi
jmp 0x41f4d3
or esi, 0xffffffff
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x20c], 0
test esi, esi
je 0x41f613
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 0x1e848
test edi, edi
je 0x41f520
mov esi, edi
mov ecx, 0x41
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x318]
test eax, eax
je 0x41f539
mov ecx, 0x41
lea edi, [ebp - 0x310]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x41f54c
mov ecx, 0x41
lea edi, [ebp - 0x20c]
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x324], esi
cmp eax, 1
jle 0x41f58e
lea ecx, [ebp - 0x334]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x310]
push ecx
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov dword [ebp - 0x324], esi
cmp esi, 0xffffffff
jle 0x41f5f0
jmp 0x41f59b
push 0x1e848
call fcn.0041ff90
add esp, 4
cmp dword [ebp - 0x31c], 0
je 0x41f5f0
call fcn.00422f60
test eax, eax
je 0x41f5f0
mov ecx, dword [ebp - 0x108]
xor eax, eax
test ecx, ecx
je 0x41f5cf
lea esp, [esp]
cmp dword [ebp + eax*4 - 0x104], 0
je 0x41f5cf
inc eax
cmp eax, ecx
jb 0x41f5c0
cmp eax, ecx
jne 0x41f5e9
cmp ecx, 0x40
jae 0x41f5e9
mov dword [ebp + eax*4 - 0x104], 0
inc dword [ebp - 0x108]
inc esi
mov dword [ebp - 0x324], esi
cmp dword [ebp - 0x320], 0
je 0x41f5ff
dec dword [ebp - 0x314]
mov edi, dword [ebp - 0x32c]
test esi, esi
mov esi, dword [ebp - 0x314]
je 0x41f4f1
test edi, edi
je 0x41f624
mov ecx, 0x41
lea esi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x318]
test eax, eax
je 0x41f63d
mov ecx, 0x41
lea esi, [ebp - 0x310]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x41f650
mov ecx, 0x41
lea esi, [ebp - 0x20c]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x324]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0044590e
mov esp, ebp
pop ebp
ret