Function at 0x10059fd0
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
push ebx
mov ebx, ecx
mov al, dl
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x10a], al
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], ecx
push esi
mov esi, dword [ebp + 0x18]
cmp ebx, 0xffffffff
jne 0x1005a06f
mov ecx, dword [0x103447d0]
mov eax, dword [0x103447d4]
cmp ecx, 0x257edfd1
jne 0x1005a020
cmp eax, 0xb2ab117a
je 0x1005a02f
cmp ecx, 0x257edfd0
jne 0x1005a033
cmp eax, 0xb2ab117a
jne 0x1005a033
mov al, 1
jmp 0x1005a047
mov eax, dword [0x103447c8]
mov ecx, 0x103447c8
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [esi], 0x2719
add eax, 2
mov dword [esi + 4], 0x103447c8
mov dword [esi + 8], eax
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1026af9a
mov esp, ebp
pop ebp
ret
and al, 0x10
cmp byte [ebp + 0x14], 0
mov byte [ebp - 0x109], al
je 0x1005a0a1
test al, al
je 0x1005a0a7
xorps xmm0, xmm0
xor eax, eax
movq qword [esi], xmm0
mov dword [esi + 8], 0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1026af9a
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x109], al
push edi
push esi
push ecx
push dword [ebp + 0xc]
mov edx, ecx
mov ecx, ebx
call fcn.10059dc0
add esp, 0xc
cmp byte [ebp - 0x109], 0
je 0x1005a0ca
test eax, eax
je 0x1005a217
test eax, eax
jns 0x1005a2cd
test byte [ebp - 0x10a], 1
jne 0x1005a2cb
mov ebx, dword [0x103447d0]
mov edi, dword [0x103447d4]
cmp ebx, 0x257edfd1
jne 0x1005a0fb
cmp edi, 0xb2ab117a
je 0x1005a10b
cmp ebx, 0x257edfd0
jne 0x1005a10f
cmp edi, 0xb2ab117a
jne 0x1005a10f
mov al, 1
jmp 0x1005a12f
mov eax, dword [0x103447c8]
mov ecx, 0x103447c8
push 0x2733
mov eax, dword [eax + 0x18]
call eax
mov edi, dword [0x103447d4]
mov ebx, dword [0x103447d0]
movzx eax, al
lea edx, [ebp - 0x120]
add eax, 2
mov dword [ebp - 0x120], 0x2733
mov ecx, esi
mov dword [ebp - 0x11c], 0x103447c8
mov dword [ebp - 0x118], eax
call fcn.100580b0
test al, al
jne 0x1005a1cd
cmp ebx, 0x257edfd1
jne 0x1005a170
cmp edi, 0xb2ab117a
je 0x1005a180
cmp ebx, 0x257edfd0
jne 0x1005a184
cmp edi, 0xb2ab117a
jne 0x1005a184
mov al, 1
jmp 0x1005a198
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, esi
mov dword [ebp - 0x128], 0x103447c8
mov dword [ebp - 0x124], eax
call fcn.100580b0
test al, al
je 0x1005a2cb
mov ebx, dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push 0
push 0
push 0
push eax
lea eax, [ebx + 1]
mov dword [ebp - 0x104], ebx
push eax
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1005a271
mov ecx, dword [ebp - 0x114]
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
jmp 0x1005a0a8
mov ecx, dword [0x10344780]
mov eax, dword [0x10344784]
cmp ecx, 0x257edfd1
jne 0x1005a231
cmp eax, 0xb2ab117a
je 0x1005a240
cmp ecx, 0x257edfd0
jne 0x1005a251
cmp eax, 0xb2ab117a
jne 0x1005a251
mov dword [esi], 2
mov al, 1
mov dword [esi + 4], 0x10344778
jmp 0x1005a2c2
mov eax, dword [0x10344778]
mov ecx, 0x10344778
push 2
mov eax, dword [eax + 0x18]
call eax
mov dword [esi], 2
mov dword [esi + 4], 0x10344778
jmp 0x1005a2c2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [0x103447d0]
mov edi, eax
mov eax, dword [0x103447d4]
cmp ecx, 0x257edfd1
jne 0x1005a293
cmp eax, 0xb2ab117a
je 0x1005a2a2
cmp ecx, 0x257edfd0
jne 0x1005a2a9
cmp eax, 0xb2ab117a
jne 0x1005a2a9
test edi, edi
setne al
jmp 0x1005a2b9
mov eax, dword [0x103447c8]
mov ecx, 0x103447c8
push edi
mov eax, dword [eax + 0x18]
call eax
mov dword [esi], edi
mov dword [esi + 4], 0x103447c8
movzx eax, al
add eax, 2
mov dword [esi + 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