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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, eax
push esi
call fcn.10001c10
test eax, eax
je 0x10001e96
mov ebx, dword [sym.imp.KERNEL32.DLL_Sleep]
push 1
call ebx
push esi
call fcn.10001c10
test eax, eax
jne 0x10001e88
mov eax, dword [edi + 0x1c]
push 4
push esi
push 0x700b
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x1c]
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x34]
push edx
push 0x98000004
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 0x7530
mov dword [esp + 0x48], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov ebx, dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea ebp, [esi + 8]
push ebp
call ebx
inc dword [esi + 4]
push ebp
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x1c]
push ecx
push 0
push 0
push 1
push edx
push esi
call dword [0x10005034]
cmp byte [esp + 0x2c], 0
je 0x10001f90
push ebp
call ebx
or ebx, 0xffffffff
add dword [esi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x1c]
push eax
push 0
push 0
push 3
push ecx
push esi
call dword [0x10005034]
mov esi, dword [edi + 0x1c]
cmp esi, ebx
je 0x10001f87
push 4
lea ecx, [esp + 0x30]
push ecx
push 0x80
push 0xffff
mov edx, 1
xor eax, eax
push esi
mov word [esp + 0x40], dx
mov word [esp + 0x42], ax
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 edx, dword [edi + 0x20]
push edx
jmp 0x1000205c
mov dword [edi + 0x18], 2
cmp dword [esi + 0x20], 0
je 0x10001fdb
mov eax, dword [edi + 0x20]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 4
mov dword [edi + 0x30], 0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [edi + 0x30]
lea edx, [ecx + eax]
mov dword [edi + 0x20], eax
mov eax, 4
add esp, 4
sub eax, ecx
mov dword [edi + 0x2c], 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jmp 0x10001fec
mov ecx, dword [edi + 0x20]
mov edx, dword [0x10005010]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
xor eax, eax
push eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x10002077
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x10002077
cmp eax, 0x3e5
je 0x10002077
push ebp
call ebx
or ebx, 0xffffffff
add dword [esi + 4], ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [esi + 4]
mov edx, dword [edi + 0x1c]
push ecx
push 0
push 0
push 3
push edx
push esi
call dword [0x10005034]
mov esi, dword [edi + 0x1c]
call fcn.100016d0
mov eax, dword [edi + 0x20]
push eax
mov dword [edi + 0x1c], ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
mov dword [edi + 0x20], 0
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4