Function at 0x10006e8b
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
push ebx
push esi
mov esi, dword [0x10036800]
push edi
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0x64
cmp esi, edi
je 0x100070d1
jmp 0x10006eb9
mov esi, dword [ebp - 4]
cmp dword [esi + 4], 2
jne 0x100070c3
push dword [esi]
call sub.WS2_32.dll_htonl
mov dword [ebp - 8], eax
mov dword [ebp - 0x358], edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x148], edi
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x354], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 0x358], ebx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], ebx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x148]
push eax
push edi
mov dword [ebp - 0x148], ebx
call dword [sym.imp.WS2_32.dll_select]
mov eax, dword [esi + 0x10]
cmp eax, 2
jne 0x10006fcc
lea eax, [ebp - 0x148]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100070c3
push edi
push edi
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov ecx, eax
call fcn.10006e75
push ebx
push edi
push edi
push 0x2bf20
push ecx
mov ebx, eax
mov dword [ebp - 8], eax
call fcn.10006adc
add esp, 0x14
lea eax, [ebp - 0x18]
push 0x80
push eax
call fcn.100015e2
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.10001632
push dword [esi + 0x14]
lea eax, [ebp - 0x18]
push eax
call fcn.10001632
add esp, 0x18
push 0x17
lea eax, [ebp - 0x18]
call fcn.100016e7
push eax
lea eax, [ebp - 0x18]
call fcn.100016e4
push eax
call fcn.10001345
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.100016c4
pop ecx
jmp 0x100070c3
cmp eax, 3
jne 0x10007027
lea eax, [ebp - 0x148]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100070c3
push edi
push edi
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
lea esi, [ebp - 0x40]
call fcn.100064ca
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
sub esp, 0x20
push 8
pop ecx
or eax, 0x110000
mov edi, esp
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10005cb5
mov esi, dword [ebp - 4]
add esp, 0x24
xor edi, edi
jmp 0x100070c3
lea eax, [ebp - 0x250]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x100070b0
lea eax, [ebp - 0x358]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007054
mov dword [esi + 4], ebx
push 6
jmp 0x100070b5
lea eax, [ebp - 0x148]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100070a2
mov eax, dword [esi + 0x1c]
push edi
push edi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
lea eax, [ebp - 8]
jne 0x10007088
mov dword [esi + 4], edi
push 4
jmp 0x1000708d
mov dword [esi + 4], ebx
push 6
push 4
push eax
call fcn.10001345
add esp, 0xc
push dword [ebp - 4]
call sub.WS2_32.dll_closesocket
jmp 0x100070c3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x18]
cmp eax, dword [esi + 8]
jbe 0x100070c3
push 4
mov dword [esi + 4], edi
lea eax, [ebp - 8]
push 4
push eax
call fcn.10001345
add esp, 0xc
mov eax, dword [esi + 0x20]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x10006eb6
pop edi
pop esi
pop ebx
leave
ret