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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
cmp dword [esi], 0xffffffff
je 0x10002adc
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10002adc
cmp byte [ebp + 8], 0
je 0x10002711
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x2c]
mov ecx, 1
dec dword [esi + 4]
mov dword [ebp + 8], ecx
mov dword [ebp - 8], eax
mov edi, dword [eax]
mov edx, dword [edi]
inc edx
cmp edx, ecx
jle 0x100026af
mov eax, dword [edi + 4]
mov edi, dword [ebx + 0x1c]
nop word [eax + eax]
cmp dword [eax], edi
je 0x10002641
inc ecx
add eax, 4
mov dword [ebp + 8], ecx
cmp ecx, edx
jl 0x10002630
jmp 0x100026af
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ebx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 0xc], esi
lea eax, [ebx*4 - 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ecx, dword [ebp + 8]
mov edi, eax
lea ecx, [ecx*4 - 4]
push ecx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_memmove]
push edi
call esi
mov ecx, dword [ebp + 8]
mov eax, ebx
sub eax, ecx
shl eax, 2
push eax
mov eax, dword [ebp - 0xc]
lea eax, [eax + ecx*4]
dec ecx
push eax
lea eax, [edi + ecx*4]
push eax
call esi
mov edx, dword [ebp - 8]
lea ecx, [ebx - 1]
add esp, 0x18
mov eax, dword [edx]
push dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [edx]
mov dword [eax + 4], edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push dword [esi + 0x28]
push dword [esi + 4]
push 0
push 0
push 3
push dword [ebx + 0x1c]
push esi
call dword [0x10005028]
mov esi, dword [ebx + 0x1c]
cmp esi, 0xffffffff
je 0x10002705
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 0x80
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 0x1c], 0xffffffff
jmp 0x10002ac2
cmp dword [esi + 0x20], 0
je 0x1000296a
mov eax, dword [ebx + 0x28]
add dword [ebx + 0x30], eax
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x20]
cmp edx, ecx
jae 0x100027e8
mov dword [ebx + 0x18], 2
cmp dword [esi + 0x20], 0
je 0x1000274b
add eax, edx
sub ecx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10002756
mov dword [ebp - 0x20], eax
mov eax, dword [0x10005010]
mov dword [ebp - 0x24], eax
push 0
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10002adc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x10002adc
cmp eax, 0x3e5
je 0x10002adc
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x2c]
mov ecx, 1
dec dword [esi + 4]
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], eax
mov edi, dword [eax]
mov edx, dword [edi]
inc edx
cmp edx, ecx
jle 0x10002aa2
mov eax, dword [edi + 4]
mov edi, dword [ebx + 0x1c]
cmp dword [eax], edi
je 0x10002a34
inc ecx
add eax, 4
mov dword [ebp + 8], ecx
cmp ecx, edx
jl 0x100027d0
jmp 0x10002aa2
mov edi, dword [eax]
cmp edi, 0x3e80000
jbe 0x10002838
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x2c]
mov ecx, 1
dec dword [esi + 4]
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], eax
mov edi, dword [eax]
mov edx, dword [edi]
inc edx
cmp edx, ecx
jle 0x10002aa2
mov eax, dword [edi + 4]
mov edi, dword [ebx + 0x1c]
cmp dword [eax], edi
je 0x10002a34
inc ecx
add eax, 4
mov dword [ebp + 8], ecx
cmp ecx, edx
jl 0x10002820
jmp 0x10002aa2
lea eax, [edi + 4]
cmp edx, eax
jae 0x10002928
mov eax, dword [ebx + 0x20]
push eax
call fcn.10003abc
lea eax, [edi + 4]
push eax
call fcn.10003acf
mov dword [ebx + 0x20], eax
lea ecx, [edi + 4]
mov dword [ebx + 0x2c], ecx
add esp, 8
mov dword [ebx + 0x30], 4
mov dword [eax], edi
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x18], 2
cmp dword [esi + 0x20], 0
je 0x10002888
add eax, dword [ebx + 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebx + 0x30]
jmp 0x10002890
mov dword [ebp - 0x20], eax
mov eax, dword [0x10005010]
push 0
push ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 1
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10002adc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x10002adc
cmp eax, 0x3e5
je 0x10002adc
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x2c]
mov ecx, 1
dec dword [esi + 4]
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], eax
mov edi, dword [eax]
mov edx, dword [edi]
inc edx
cmp edx, ecx
jle 0x10002aa2
mov eax, dword [edi + 4]
mov edi, dword [ebx + 0x1c]
nop dword [eax]
cmp dword [eax], edi
je 0x10002a34
inc ecx
add eax, 4
mov dword [ebp + 8], ecx
cmp ecx, edx
jl 0x10002910
jmp 0x10002aa2
lea eax, [ecx - 4]
test eax, eax
je 0x1000294c
push dword [esi + 0x28]
lea eax, [ecx - 4]
push dword [esi + 4]
push eax
mov eax, dword [ebx + 0x20]
add eax, 4
push eax
push 2
push dword [ebx + 0x1c]
push esi
call dword [0x10005028]
push dword [ebx + 0x20]
call fcn.10003abc
push 4
call fcn.10003acf
add esp, 8
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x2c], 4
jmp 0x10002982
push dword [esi + 0x28]
push dword [esi + 4]
push dword [ebx + 0x28]
push dword [ebx + 0x20]
push 2
push dword [ebx + 0x1c]
push esi
call dword [0x10005028]
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x18], 2
cmp dword [esi + 0x20], 0
mov dword [ebp - 0x28], eax
je 0x100029a1
mov eax, dword [ebx + 0x2c]
jmp 0x100029a6
mov eax, dword [0x10005010]
push 0
push ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push eax
push dword [ebx + 0x1c]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10002adc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x10002adc
cmp eax, 0x3e5
je 0x10002adc
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x2c]
mov ecx, 1
dec dword [esi + 4]
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], eax
mov edi, dword [eax]
mov edx, dword [edi]
inc edx
cmp edx, ecx
jle 0x10002aa2
mov eax, dword [edi + 4]
mov edi, dword [ebx + 0x1c]
cmp dword [eax], edi
je 0x10002a34
inc ecx
add eax, 4
mov dword [ebp + 8], ecx
cmp ecx, edx
jl 0x10002a23
jmp 0x10002aa2
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 8], esi
lea eax, [ebx*4 - 4]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ecx, dword [ebp + 8]
mov edi, eax
lea ecx, [ecx*4 - 4]
push ecx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_memmove]
push edi
call esi
mov ecx, dword [ebp + 8]
mov eax, ebx
sub eax, ecx
shl eax, 2
push eax
mov eax, dword [ebp - 8]
lea eax, [eax + ecx*4]
dec ecx
push eax
lea eax, [edi + ecx*4]
push eax
call esi
mov edx, dword [ebp - 0xc]
lea ecx, [ebx - 1]
add esp, 0x18
mov eax, dword [edx]
push dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [edx]
mov dword [eax + 4], edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 4]
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push dword [esi + 0x28]
push dword [esi + 4]
push 0
push 0
push 3
push dword [ebx + 0x1c]
push esi
call dword [0x10005028]
push dword [ebx + 0x20]
call fcn.10003abc
push 0x34
push ebx
mov dword [ebx + 0x20], 0
call fcn.10003ac1
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8