Function at 0x100484b0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x100f7080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0
jmp 0x100484ee
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
cmp ecx, dword [ebp - 0x108]
jae 0x10048517
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp + edx*4 - 0x104]
cmp ecx, dword [eax]
jne 0x10048515
jmp 0x10048517
jmp 0x100484df
mov edx, dword [ebp - 0x10c]
cmp edx, dword [ebp - 0x108]
jne 0x10048552
cmp dword [ebp - 0x108], 0x40
jae 0x10048552
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x114]
mov edx, dword [ecx]
mov dword [ebp + eax*4 - 0x104], edx
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
xor ecx, ecx
jne 0x100484d3
push 0
push 0x3e8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.1004f760
mov dword [ebp - 0x134], eax
push 0
push 0x3e8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.1004f850
push 0
push 0x3e8
push edx
push eax
call fcn.1004f810
mov dword [ebp - 0x130], eax
cmp dword [ebp + 0x10], 0
jl 0x100485b8
jg 0x100485aa
cmp dword [ebp + 0xc], 0
jb 0x100485b8
lea eax, [ebp - 0x134]
mov dword [ebp - 0x118], eax
jmp 0x100485c2
mov dword [ebp - 0x118], 0
cmp dword [ebp + 8], 1
jne 0x100485d6
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x11c], ecx
jmp 0x100485e0
mov dword [ebp - 0x11c], 0
cmp dword [ebp + 8], 0
jne 0x100485f4
lea edx, [ebp - 0x108]
mov dword [ebp - 0x120], edx
jmp 0x100485fe
mov dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x118]
push eax
push 0
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x120]
push edx
push 0
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
jne 0x100486cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x100486cd
cmp dword [ebp + 0x10], 0
jl 0x1004865d
jg 0x1004864f
cmp dword [ebp + 0xc], 0
jb 0x1004865d
lea eax, [ebp - 0x134]
mov dword [ebp - 0x124], eax
jmp 0x10048667
mov dword [ebp - 0x124], 0
cmp dword [ebp + 8], 1
jne 0x1004867b
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x128], ecx
jmp 0x10048685
mov dword [ebp - 0x128], 0
cmp dword [ebp + 8], 0
jne 0x10048699
lea edx, [ebp - 0x108]
mov dword [ebp - 0x12c], edx
jmp 0x100486a3
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x124]
push eax
push 0
mov ecx, dword [ebp - 0x128]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
push 0
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x110], eax
jmp 0x10048623
cmp dword [ebp - 0x110], 0xffffffff
jne 0x10048706
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.Failed_to_select_socket
push 0x100f7004
push eax
lea ecx, [ebp - 0x154]
call fcn.10045920
push 0x100f6294
lea eax, [ebp - 0x154]
push eax
call fcn.1005078a
nop
jmp 0x10048731
cmp dword [ebp - 0x110], 0
jne 0x10048731
push str.Request_timed_out
lea ecx, [ebp - 0x140]
call fcn.10045620
push 0x100f5518
lea ecx, [ebp - 0x140]
push ecx
call fcn.1005078a
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f727
mov esp, ebp
pop ebp
ret 0xc