Function at 0x10007bdf
Capabilities:
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
push ebx
push esi
mov esi, dword [0x10056840]
push edi
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x64
cmp esi, edi
je 0x10007e78
jmp 0x10007c10
mov esi, dword [ebp - 4]
cmp dword [esi + 4], 2
jne 0x10007e60
push dword [esi]
call sub.WS2_32.dll_htonl
mov dword [ebp - 8], eax
mov dword [ebp - 0x360], edi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x150], edi
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x35c], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 0x360], ebx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x258], ebx
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x150]
push eax
push edi
mov dword [ebp - 0x150], ebx
call dword [sym.imp.WS2_32.dll_select]
mov eax, dword [esi + 0x10]
cmp eax, 2
jne 0x10007d44
lea eax, [ebp - 0x150]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007e60
push edi
push edi
push dword [esi + 0x1c]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_accept]
lea ecx, [ebp - 0xc]
push ecx
push 0x8004667e
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x10007e70
call fcn.10007bc9
push ebx
push edi
push edi
push 0x2bf20
push dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], eax
call fcn.100075e5
add esp, 0x14
lea eax, [ebp - 0x1c]
push 0x80
push eax
call fcn.10001371
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.100013c1
push dword [esi + 0x14]
lea eax, [ebp - 0x1c]
push eax
call fcn.100013c1
add esp, 0x18
push 0x17
lea eax, [ebp - 0x1c]
call fcn.1000152d
push eax
lea eax, [ebp - 0x1c]
call fcn.1000152a
push eax
call fcn.100012c1
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.1000150a
pop ecx
jmp 0x10007e60
cmp eax, 3
jne 0x10007d9f
lea eax, [ebp - 0x150]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007e60
push edi
push edi
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
lea esi, [ebp - 0x48]
call fcn.10006f1c
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.100066f5
mov esi, dword [ebp - 4]
add esp, 0x24
xor edi, edi
jmp 0x10007e60
cmp eax, 4
lea eax, [ebp - 0x258]
push eax
push dword [esi + 0x1c]
jne 0x10007dd5
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10007e4d
lea eax, [ebp - 0x360]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007e3f
mov dword [esi + 4], ebx
push 6
jmp 0x10007e52
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10007e4d
lea eax, [ebp - 0x360]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10007dce
lea eax, [ebp - 0x150]
push eax
push dword [esi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007e3f
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 0x10007e25
mov dword [esi + 4], edi
push 4
jmp 0x10007e2a
mov dword [esi + 4], ebx
push 6
push 4
push eax
call fcn.100012c1
add esp, 0xc
push dword [ebp - 4]
call sub.WS2_32.dll_closesocket
jmp 0x10007e60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x18]
cmp eax, dword [esi + 8]
jbe 0x10007e60
push 4
mov dword [esi + 4], edi
lea eax, [ebp - 8]
push 4
push eax
call fcn.100012c1
add esp, 0xc
mov eax, dword [esi + 0x20]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x10007c0d
jmp 0x10007e78
push dword [ebp - 4]
call sub.WS2_32.dll_closesocket
pop edi
pop esi
pop ebx
leave
ret