Function at 0x44f36c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbbc
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x444], eax
xor eax, eax
mov dword [ebp - 0x138], eax
xor eax, eax
mov dword [ebp - 0x23c], eax
xor eax, eax
mov dword [ebp - 0x340], eax
movsx eax, word [ebp - 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov word [ebp - 2], 0
cmp dword [ebp - 0x30], 0
jl 0x44f42f
lea eax, [ebp - 0x444]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
jne 0x44f42f
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x1c]
jle 0x44f3e6
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
and eax, 1
dec eax
jne 0x44f3fd
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 0x30]
call fcn.0044f32c
mov eax, dword [ebp - 0x2c]
and eax, 4
cmp eax, 4
jne 0x44f416
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 0x30]
call fcn.0044f32c
mov eax, dword [ebp - 0x2c]
and eax, 2
cmp eax, 2
jne 0x44f42f
lea edx, [ebp - 0x340]
mov eax, dword [ebp - 0x30]
call fcn.0044f32c
cmp dword [ebp - 0xc], 0
jl 0x44f464
mov eax, dword [ebp - 0xc]
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, eax, 0x3e8
jno 0x44f45b
call fcn.00402d84
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x1c]
add eax, 1
jno 0x44f48a
call fcn.00402d84
push eax
call sub.wsock32.dll_select
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x44f4a4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x44f570
xor eax, eax
mov dword [ebp - 0x18], eax
mov ax, word [ebp - 4]
and ax, 7
movsx eax, ax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x44f55b
lea eax, [ebp - 0x444]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
je 0x44f4e4
mov dword [ebp - 0x34], 0x20
jmp 0x44f52c
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
jne 0x44f4fc
and dword [ebp - 0x34], 0xfffffffe
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
jne 0x44f514
and dword [ebp - 0x34], 0xfffffffb
lea eax, [ebp - 0x340]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.wsock32.dll___WSAFDIsSet
test eax, eax
jne 0x44f52c
and dword [ebp - 0x34], 0xfffffffd
mov eax, dword [ebp - 0x34]
add eax, 0x8000
cmp eax, 0xffff
jbe 0x44f540
call fcn.00402d7c
add eax, 0xffff8000
mov word [ebp - 2], ax
cmp word [ebp - 2], 0
je 0x44f55b
add dword [ebp - 0x18], 1
jno 0x44f55b
call fcn.00402d84
cmp dword [ebp - 0x18], 0
jle 0x44f569
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x44f570
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret