Function at 0x10108810
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
sub esp, 0x21c
mov eax, dword [0x101e5aec]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
mov ebp, dword [esp + 0x238]
push esi
mov esi, dword [esp + 0x230]
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebp
nop
mov edi, edi
mov edi, edi
mov edx, edx
cmp dword [0x101d3350], 0x369f
cmp dword [0x101d3354], 0xffff85bc
cmp dword [0x101d334c], 0xffff9387
cmp dword [0x101d335c], 0xffff9bf7
cmp dword [0x101d3358], 0xffffd980
mov ah, ah
cmp dword [0x101d3364], 0xffffd0a6
cmp dword [0x101d3348], 0xffffaed2
cmp dword [0x101d3360], 0xffffd25b
cmp dword [0x101d3360], 0x2da4
cmp dword [0x101d336c], 0xffffffd9
cmp dword [0x101d3360], 0xffffd25b
mov esi, esi
mov dword [esp + 0x18], 0xffffffff
cmp dword [0x101d334c], 0xffff9387
test ebp, ebp
je 0x10108d27
mov dword [ebp], 0
cmp dword [0x101d3360], 0xffffd25b
mov dword [esp + 0x1c], 4
cmp dword [0x101d3368], 0x1f0d
mov ebx, dword [esp + 0x230]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x1006
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x10108934
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp], eax
xchg ebx, eax
xchg ebx, eax
mov edx, edx
or esi, 0xffffffff
cmp dword [0x101d336c], 0x26
jmp 0x10108d3d
mov edx, dword [esp + 0x23c]
push 4
lea eax, [esp + 0x18]
push eax
push 0x1006
push 0xffff
push ebx
mov dword [esp + 0x28], edx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1010897b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp], eax
cmp dword [0x101d335c], 0x6408
mov edx, edx
or esi, 0xffffffff
mov esi, esi
jmp 0x10108d3d
test esi, esi
je 0x10108b37
mov eax, dword [esp + 0x238]
test eax, eax
je 0x10108b37
xor edi, edi
cmp dword [0x101d336c], 0x26
xor ebp, ebp
cmp dword [0x101d335c], 0x6408
lea ebx, [eax + 4]
cmp dword [0x101d334c], 0xffff9387
cmp ebx, 0x200
jb 0x101089c5
mov esi, 0x200
mov esi, esi
jmp 0x101089c9
mov esi, ebx
mov ebx, ebx
push 0x200
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.1012ea60
add esp, 0xc
push edx
pop edx
mov ebp, ebp
mov eax, dword [esp + 0x230]
push 0
push esi
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
push edx
pop edx
cmp esi, 0xffffffff
je 0x10108a9f
test esi, esi
je 0x10108b20
test ebp, ebp
jne 0x10108a42
mov eax, dword [esp + 0x24]
lea ecx, [esi - 4]
push ecx
lea edx, [esp + 0x30]
push edx
add eax, edi
push eax
call fcn.1012fbf0
add esp, 0xc
cmp dword [0x101d3368], 0x1f0d
lea edi, [edi + esi - 4]
cmp dword [0x101d3358], 0x267f
jmp 0x10108a65
mov edx, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x2c]
push ecx
add edx, edi
push edx
call fcn.1012fbf0
add esp, 0xc
mov dh, dh
add edi, esi
cmp dword [0x101d3354], 0x7a43
add ebp, 1
cmp dword [0x101d336c], 0xffffffd9
sub ebx, esi
cmp dword [0x101d3364], 0x2f59
test ebx, ebx
jg 0x101089b4
cmp dword [0x101d334c], 0x6c78
mov esi, edi
cmp dword [0x101d336c], 0xffffffd9
mov ebp, dword [esp + 0x20]
jmp 0x10108d36
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
cmp dword [0x101d3354], 0x7a43
mov eax, dword [ecx]
cmp eax, 0x2746
je 0x10108b08
cmp eax, 0x2745
je 0x10108b08
cmp eax, 0x274a
je 0x10108b08
cmp eax, 0x2744
je 0x10108b08
cmp eax, 0x274c
jne 0x10108aea
mov dh, dh
mov esi, 0xfffffffb
mov dl, dl
mov ebp, ecx
jmp 0x10108d36
cmp dword [0x101d3354], 0xffff85bc
or esi, 0xffffffff
cmp dword [0x101d3358], 0x267f
mov ebp, ecx
jmp 0x10108d36
cmp dword [0x101d334c], 0xffff9387
mov esi, 0xfffffffa
push ebx
pop ebx
mov ebp, ecx
jmp 0x10108d36
cmp dword [0x101d3350], 0x369f
xor esi, esi
push eax
pop eax
mov ebp, dword [esp + 0x20]
jmp 0x10108d36
mov edi, dword [sym.imp.WS2_32.dll_recv]
lea ecx, [ecx]
xor esi, esi
mov esi, esi
mov dword [esp + 0x10], 0
cmp dword [0x101d3350], 0xffffc960
push 2
push 4
lea eax, [esp + 0x18]
push eax
push ebx
call edi
cmp dword [0x101d3350], 0xffffc960
cmp eax, 0xffffffff
je 0x10108bde
test eax, eax
je 0x10108c57
cmp eax, 4
jae 0x10108b8e
cmp esi, 3
jge 0x10108c6a
add esi, 1
mov dl, dl
jmp 0x10108b44
jne 0x10108c7e
mov esi, dword [esp + 0x10]
cmp dword [0x101d3354], 0xffff85bc
cmp esi, 0xc521974f
jne 0x10108d02
push 0
push 4
lea ecx, [esp + 0x18]
push ecx
push ebx
call edi
cmp eax, 0xffffffff
je 0x10108c92
test eax, eax
jne 0x10108b40
push ecx
pop ecx
xor esi, esi
cmp dword [0x101d3360], 0x2da4
jmp 0x10108d3d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp], eax
push ecx
pop ecx
mov eax, dword [ebp]
cmp eax, 0x2746
je 0x10108c39
cmp eax, 0x2745
je 0x10108c39
cmp eax, 0x274a
je 0x10108c39
cmp eax, 0x2744
je 0x10108c39
cmp eax, 0x274c
jne 0x10108c25
cmp dword [0x101d3360], 0x2da4
mov esi, 0xfffffffb
push ecx
pop ecx
jmp 0x10108d3d
xchg ebx, eax
xchg ebx, eax
or esi, 0xffffffff
cmp dword [0x101d3368], 0xffffe0f2
jmp 0x10108d3d
cmp dword [0x101d3358], 0xffffd980
mov esi, 0xfffffffa
cmp dword [0x101d3348], 0x512d
jmp 0x10108d3d
cmp dword [0x101d334c], 0x6c78
xor esi, esi
mov edx, edx
jmp 0x10108d3d
mov ch, ch
or esi, 0xffffffff
cmp dword [0x101d3350], 0xffffc960
jmp 0x10108d3d
cmp dword [0x101d3348], 0xffffaed2
or esi, 0xffffffff
push ecx
pop ecx
jmp 0x10108d3d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp], eax
cmp dword [0x101d335c], 0xffff9bf7
mov eax, dword [ebp]
cmp eax, 0x2746
je 0x10108cef
cmp eax, 0x2745
je 0x10108cef
cmp eax, 0x274a
je 0x10108cef
cmp eax, 0x2744
je 0x10108cef
cmp eax, 0x274c
jne 0x10108cde
cmp dword [0x101d3364], 0x2f59
mov esi, 0xfffffffb
mov ecx, ecx
jmp 0x10108d3d
cmp dword [0x101d3348], 0xffffaed2
or esi, 0xffffffff
mov ch, ch
jmp 0x10108d3d
cmp dword [0x101d3368], 0xffffe0f2
mov esi, 0xfffffffa
mov edx, edx
jmp 0x10108d3d
test esi, esi
jg 0x10108d19
cmp dword [0x101d3368], 0x1f0d
mov esi, 0xfffffff8
mov bl, bl
jmp 0x10108d3d
cmp dword [0x101d3358], 0x267f
mov dh, dh
jmp 0x10108d3d
cmp dword [0x101d3348], 0xffffaed2
or esi, 0xffffffff
push ecx
pop ecx
mov ebx, dword [esp + 0x230]
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x10108d96
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea esp, [esp]
mov dword [esp + 0x14], eax
mov ah, ah
push 4
lea edx, [esp + 0x18]
push edx
push 0x1006
push 0xffff
push ebx
call edi
cmp eax, 0xffffffff
jne 0x10108d96
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp], eax
mov bl, bl
cmp dword [0x101d3350], 0x369f
or esi, 0xffffffff
cmp dword [0x101d336c], 0xffffffd9
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x10108d50
mov ecx, dword [esp + 0x228]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1012e3ba
add esp, 0x21c
ret