Function at 0x1005a4b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x10343c80]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], ecx
mov al, dl
mov edx, dword [ebp + 8]
mov byte [ebp - 0x109], al
mov dword [ebp - 0x114], edx
push ebx
mov ebx, dword [ebp + 0x18]
cmp ecx, 0xffffffff
jne 0x1005a54b
mov ecx, dword [0x103447d0]
mov eax, dword [0x103447d4]
cmp ecx, 0x257edfd1
jne 0x1005a4fd
cmp eax, 0xb2ab117a
je 0x1005a50c
cmp ecx, 0x257edfd0
jne 0x1005a510
cmp eax, 0xb2ab117a
jne 0x1005a510
mov al, 1
jmp 0x1005a524
mov eax, dword [0x103447c8]
mov ecx, 0x103447c8
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebx], 0x2719
add eax, 2
mov dword [ebx + 4], 0x103447c8
mov dword [ebx + 8], eax
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1026af9a
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x14], 0
je 0x1005a574
test al, 0x10
je 0x1005a574
xorps xmm0, xmm0
xor eax, eax
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1026af9a
mov esp, ebp
pop ebp
ret
push esi
push edi
push ebx
push ecx
push dword [ebp + 0xc]
call fcn.1005a2e0
add esp, 0xc
test eax, eax
jns 0x1005a757
test byte [ebp - 0x109], 1
jne 0x1005a755
nop dword [eax + eax]
mov edi, dword [0x103447d0]
mov esi, dword [0x103447d4]
cmp edi, 0x257edfd1
jne 0x1005a5bc
cmp esi, 0xb2ab117a
je 0x1005a5cc
cmp edi, 0x257edfd0
jne 0x1005a5d0
cmp esi, 0xb2ab117a
jne 0x1005a5d0
mov al, 1
jmp 0x1005a5f0
mov eax, dword [0x103447c8]
mov ecx, 0x103447c8
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x103447d4]
mov edi, dword [0x103447d0]
movzx eax, al
lea edx, [ebp - 0x120]
add eax, 2
mov dword [ebp - 0x120], 0x2733
mov ecx, ebx
mov dword [ebp - 0x11c], 0x103447c8
mov dword [ebp - 0x118], eax
call fcn.100580b0
test al, al
jne 0x1005a68e
cmp edi, 0x257edfd1
jne 0x1005a631
cmp esi, 0xb2ab117a
je 0x1005a641
cmp edi, 0x257edfd0
jne 0x1005a645
cmp esi, 0xb2ab117a
jne 0x1005a645
mov al, 1
jmp 0x1005a659
mov eax, dword [0x103447c8]
mov ecx, 0x103447c8
push 0x4d5
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
lea edx, [ebp - 0x12c]
add eax, 2
mov dword [ebp - 0x12c], 0x4d5
mov ecx, ebx
mov dword [ebp - 0x128], 0x103447c8
mov dword [ebp - 0x124], eax
call fcn.100580b0
test al, al
je 0x1005a755
mov esi, dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push 0
push 0
push eax
push 0
lea eax, [esi + 1]
mov dword [ebp - 0x104], esi
push eax
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1005a6fb
mov edx, dword [ebp - 0x114]
xorps xmm0, xmm0
push ebx
push ecx
push dword [ebp + 0xc]
movq qword [ebx], xmm0
mov ecx, esi
mov dword [ebx + 8], 0
call fcn.1005a2e0
add esp, 0xc
test eax, eax
js 0x1005a5a0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1026af9a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x103447d0]
mov esi, eax
mov eax, dword [0x103447d4]
cmp ecx, 0x257edfd1
jne 0x1005a71d
cmp eax, 0xb2ab117a
je 0x1005a72c
cmp ecx, 0x257edfd0
jne 0x1005a733
cmp eax, 0xb2ab117a
jne 0x1005a733
test esi, esi
setne al
jmp 0x1005a743
mov eax, dword [0x103447c8]
mov ecx, 0x103447c8
push esi
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebx], esi
add eax, 2
mov dword [ebx + 4], 0x103447c8
mov dword [ebx + 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1026af9a
mov esp, ebp
pop ebp
ret