Function at 0x405620
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x49d980]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 0x18]
mov al, dl
push esi
mov esi, ecx
mov byte [ebp - 0x116], al
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], ecx
push edi
cmp esi, 0xffffffff
jne 0x4056b9
mov ecx, dword [0x49da58]
mov eax, dword [0x49da5c]
cmp ecx, 0x257edfd1
jne 0x405671
cmp eax, 0xb2ab117a
je 0x405680
cmp ecx, 0x257edfd0
jne 0x405684
cmp eax, 0xb2ab117a
jne 0x405684
mov al, 1
jmp 0x405698
mov eax, dword [0x49da50]
mov ecx, 0x49da50
push 0x2719
mov eax, dword [eax + 0x18]
call eax
mov dword [ebp - 0x138], 0x2719
mov dword [ebp - 0x134], 0x49da50
movq xmm0, qword [ebp - 0x138]
jmp 0x405950
and al, 0x10
cmp byte [ebp + 0x14], 0
mov byte [ebp - 0x115], al
je 0x4056ec
test al, al
je 0x4056f2
xorps xmm0, xmm0
xor eax, eax
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047cd55
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x115], al
push ebx
push ecx
push dword [ebp + 0xc]
mov edx, ecx
mov ecx, esi
call fcn.004053f0
add esp, 0xc
cmp byte [ebp - 0x115], 0
je 0x405714
test eax, eax
je 0x405885
test eax, eax
jns 0x40595f
test byte [ebp - 0x116], 1
jne 0x40595d
mov edi, dword [0x49da58]
mov esi, dword [0x49da5c]
cmp edi, 0x257edfd1
jne 0x405745
cmp esi, 0xb2ab117a
je 0x405755
cmp edi, 0x257edfd0
jne 0x405759
cmp esi, 0xb2ab117a
jne 0x405759
mov al, 1
jmp 0x405779
mov eax, dword [0x49da50]
mov ecx, 0x49da50
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x49da5c]
mov edi, dword [0x49da58]
movzx eax, al
lea edx, [ebp - 0x144]
add eax, 2
mov dword [ebp - 0x138], 0x2733
mov dword [ebp - 0x134], 0x49da50
mov ecx, ebx
movq xmm0, qword [ebp - 0x138]
movq qword [ebp - 0x144], xmm0
mov dword [ebp - 0x13c], eax
call fcn.00402aa0
test al, al
jne 0x405837
cmp edi, 0x257edfd1
jne 0x4057ca
cmp esi, 0xb2ab117a
je 0x4057da
cmp edi, 0x257edfd0
jne 0x4057de
cmp esi, 0xb2ab117a
jne 0x4057de
mov al, 1
jmp 0x4057f2
mov eax, dword [0x49da50]
mov ecx, 0x49da50
push 0x4d5
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
lea edx, [ebp - 0x124]
add eax, 2
mov dword [ebp - 0x150], 0x4d5
mov dword [ebp - 0x14c], 0x49da50
mov ecx, ebx
movq xmm0, qword [ebp - 0x150]
movq qword [ebp - 0x124], xmm0
mov dword [ebp - 0x11c], eax
call fcn.00402aa0
test al, al
je 0x40595d
mov esi, dword [ebp - 0x128]
lea eax, [ebp - 0x114]
push 0
push 0
push 0
push eax
lea eax, [esi + 1]
mov dword [ebp - 0x110], esi
push eax
mov dword [ebp - 0x114], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x4058f0
mov ecx, dword [ebp - 0x12c]
xorps xmm0, xmm0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
jmp 0x4056f2
mov ecx, dword [0x49da08]
mov eax, dword [0x49da0c]
cmp ecx, 0x257edfd1
jne 0x40589f
cmp eax, 0xb2ab117a
je 0x4058ae
cmp ecx, 0x257edfd0
jne 0x4058c9
cmp eax, 0xb2ab117a
jne 0x4058c9
mov al, 1
mov dword [ebp - 0x124], 2
mov dword [ebp - 0x120], 0x49da00
jmp 0x405948
mov eax, dword [0x49da00]
mov ecx, 0x49da00
push 2
mov eax, dword [eax + 0x18]
call eax
mov dword [ebp - 0x124], 2
mov dword [ebp - 0x120], 0x49da00
jmp 0x405948
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x49da58]
mov esi, eax
mov eax, dword [0x49da5c]
cmp ecx, 0x257edfd1
jne 0x405912
cmp eax, 0xb2ab117a
je 0x405921
cmp ecx, 0x257edfd0
jne 0x405928
cmp eax, 0xb2ab117a
jne 0x405928
test esi, esi
setne al
jmp 0x405938
mov eax, dword [0x49da50]
mov ecx, 0x49da50
push esi
mov eax, dword [eax + 0x18]
call eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], 0x49da50
movq xmm0, qword [ebp - 0x124]
movzx eax, al
add eax, 2
movq qword [ebx], xmm0
mov dword [ebx + 8], eax
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047cd55
mov esp, ebp
pop ebp
ret