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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
add esp, 0xffffff80
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], edx
mov dword [edx], 0
test eax, eax
je 0x1002b1ed
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x1002b170
mov eax, dword [esi + 0x38]
test eax, eax
je 0x1002ada0
mov edx, dword [ebp - 0x74]
cmp dword [esi + 0x40], edx
mov ebx, edx
cmovbe ebx, dword [esi + 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [esi + 0x40]
add dword [esi + 0x38], ebx
sub eax, ebx
mov dword [esi + 0x40], eax
test eax, eax
je 0x1002b324
mov eax, dword [ebp - 0x78]
mov dword [eax], ebx
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x54], esi
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 4
mov ebx, dword [ecx + 0x34]
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x40], edx
add eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x18]
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jbe 0x1002b503
test ebx, ebx
jne 0x1002afe8
mov dword [ebp - 0x58], 0
mov edi, dword [ebp - 0x5c]
mov edx, 1
mov ecx, dword [ebp - 0x68]
test ecx, ecx
setne al
and eax, edx
mov edx, dword [ebp - 0x54]
movzx esi, al
cmp esi, dword [edx + 8]
je 0x1002ae23
xor eax, 1
mov edx, dword [edx]
mov dword [esp + 4], 0x8004667e
movzx eax, al
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 8], eax
mov dword [esp], edx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
sub esp, 0xc
mov eax, dword [ebp - 0x54]
mov dword [eax + 8], esi
add ebx, dword [eax + 0x2c]
mov esi, dword [eax]
mov eax, dword [sym.imp.ws2_32.dll_recv]
mov dword [ebp - 0x50], eax
jmp 0x1002ae51
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1002af80
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call eax
sub esp, 0x10
cmp eax, 0xffffffff
je 0x1002ae40
test eax, eax
js 0x1002af80
add dword [ebp - 0x58], eax
jne 0x1002aeb0
test byte [0x100471b4], 8
jne 0x1002b2f0
mov dword [ebp - 0x58], 0
xor ebx, ebx
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x54]
mov ebx, dword [sym.imp.ws2_32.dll_WSAGetLastError]
add eax, 0xc
mov dword [ebp - 0x6c], eax
xor eax, eax
mov ecx, 9
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._DecryptMessage_16
sub esp, 0x10
mov edx, eax
test eax, eax
je 0x1002b120
cmp eax, 0x90317
je 0x1002b0d8
cmp eax, 0x80090318
je 0x1002b030
movzx eax, byte [0x100471b4]
test al, 4
jne 0x1002b270
mov dword [ebp - 0x58], 0
xor edi, edi
mov ebx, 0x2efe
test al, 8
je 0x1002ae94
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.received__Id_bytes_n
mov dword [esp + 8], str.NETCON_recv
mov dword [esp + 4], 0x100471b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x1002ae94
mov edx, dword [ebp - 0x58]
test edx, edx
jne 0x1002aeb0
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1002b343
movzx eax, byte [0x100471b4]
xor edi, edi
mov ebx, 0x2efe
test al, 4
je 0x1002af43
mov dword [esp + 0xc], str.recv_failed_n
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x100471b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_6
movzx eax, byte [0x100471b4]
xor edx, edx
mov ecx, eax
and ecx, 4
jmp 0x1002b2ad
mov edi, dword [ebp - 0x54]
mov edx, dword [edi + 0x30]
mov eax, dword [edi + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov ebx, dword [edi + 0x34]
mov eax, dword [edi + 0x30]
mov dword [edi + 0x34], 0
mov dword [ebp - 0x58], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [edi + 0x30], 0
mov edi, dword [ebp - 0x5c]
test ebx, ebx
sete dl
sub edi, ebx
jmp 0x1002ade8
mov ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x5c], ecx
jbe 0x1002b528
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [eax + 8]
je 0x1002b06e
xor edx, edx
test ecx, ecx
mov eax, dword [eax]
mov dword [esp + 4], 0x8004667e
sete dl
mov dword [ebp - 0x4c], edx
lea edx, [ebp - 0x4c]
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
sub esp, 0xc
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 8], esi
mov esi, dword [eax + 0x2c]
mov edi, dword [eax]
add esi, ecx
mov dword [ebp - 0x60], esi
mov esi, dword [ebp - 0x5c]
sub esi, ecx
mov dword [ebp - 0x64], esi
jmp 0x1002b09d
call ebx
cmp eax, 0x2714
jne 0x1002b200
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], 0
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
call eax
sub esp, 0x10
cmp eax, 0xffffffff
je 0x1002b090
mov edx, eax
test eax, eax
jle 0x1002b37e
add dword [ebp - 0x58], eax
jmp 0x1002aebf
test byte [0x100471b4], 8
je 0x1002ae8b
mov dword [esp + 0xc], str.context_expired_n
xor edi, edi
xor ebx, ebx
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x100471b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
mov dword [ebp - 0x58], 0
movzx eax, byte [0x100471b4]
jmp 0x1002af43
lea ebx, [ebp - 0x3c]
lea edi, [ebp - 0xc]
xor esi, esi
mov edx, ebx
cmp dword [edx + 4], 1
je 0x1002b39f
add edx, 0xc
cmp edi, edx
jne 0x1002b12a
cmp dword [ebx + 4], 5
je 0x1002b433
add ebx, 0xc
cmp edi, ebx
jne 0x1002b13b
test esi, esi
je 0x1002ada3
mov dword [ebp - 0x58], esi
movzx eax, byte [0x100471b4]
mov edi, esi
xor ebx, ebx
jmp 0x1002af43
cmp ecx, dword [esi + 8]
je 0x1002b19c
xor edx, edx
test ecx, ecx
mov eax, dword [esi]
mov dword [esp + 4], 0x8004667e
sete dl
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x3c]
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
sub esp, 0xc
mov eax, dword [ebp - 0x68]
mov ebx, dword [sym.imp.ws2_32.dll_recv]
mov edi, dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov esi, dword [esi]
jmp 0x1002b1c5
call edi
cmp eax, 0x2714
jne 0x1002b496
mov eax, dword [ebp - 0x74]
mov dword [esp + 0xc], 0
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 4], eax
call ebx
sub esp, 0x10
cmp eax, 0xffffffff
je 0x1002b1b8
mov esi, dword [ebp - 0x78]
mov dword [esi], eax
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x54]
mov edi, ebx
call edi
cmp eax, 0x2733
jne 0x1002b298
test byte [0x100471b4], 8
jne 0x1002b46d
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esi + 0x30], eax
test eax, eax
je 0x1002b4cf
mov edx, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x58]
mov dword [esi + 0x34], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov dword [ebp - 0x58], 0
movzx eax, byte [0x100471b4]
xor edi, edi
mov ebx, 0x2733
jmp 0x1002af43
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.failed:__08lx_n
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x100471b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_6
movzx eax, byte [0x100471b4]
xor edx, edx
xor edi, edi
mov ebx, 0x2efe
mov ecx, eax
and ecx, 4
test cl, cl
je 0x1002b520
mov dword [esp + 0xc], str.read_ssl_chunk_failed_n
mov dword [esp + 8], str.NETCON_recv
mov dword [esp + 4], 0x100471b4
mov dword [esp], 2
mov dword [ebp - 0x50], edx
call sym._wine_dbg_log.constprop.0_6
mov edx, dword [ebp - 0x50]
movzx eax, byte [0x100471b4]
mov dword [ebp - 0x58], edx
jmp 0x1002af43
mov dword [esp + 0xc], str.EOF_n
xor edi, edi
xor ebx, ebx
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x100471b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
movzx eax, byte [0x100471b4]
jmp 0x1002af43
mov eax, dword [esi + 0x3c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
jmp 0x1002ad86
mov ebx, 0x2733
test byte [0x100471b4], 8
je 0x1002ae94
mov dword [esp + 0xc], str.would_block_n
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x100471b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x1002b24f
mov esi, dword [ebp - 0x54]
jne 0x1002b545
movzx eax, byte [0x100471b4]
xor edi, edi
mov ebx, 0x2efe
mov ecx, eax
and ecx, 4
jmp 0x1002b2ad
mov ecx, dword [edx]
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x5c], edx
cmp eax, ecx
mov dword [ebp - 0x60], ecx
cmova eax, ecx
mov ecx, dword [edx + 8]
mov edx, dword [ebp - 0x70]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], eax
call sym._memcpy
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x5c]
jbe 0x1002b4aa
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 0x40]
test eax, eax
jne 0x1002b4b2
mov dword [ebp - 0x60], edx
mov edx, ecx
sub edx, dword [ebp - 0x50]
mov dword [ebp - 0x5c], edx
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], eax
test eax, eax
je 0x1002b4e9
mov edx, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x50]
mov dword [ecx + 0x40], edx
mov ecx, dword [ebp - 0x58]
mov dword [esp + 8], edx
add ecx, esi
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._memcpy
mov edx, dword [ebp - 0x60]
jmp 0x1002b134
mov edx, dword [ebx]
mov dword [esp], edx
mov dword [ebp - 0x50], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x30], eax
test eax, eax
je 0x1002b4e9
mov edx, dword [ebp - 0x50]
mov dword [ecx + 0x34], edx
mov ecx, dword [ebx + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
jmp 0x1002b145
mov dword [esp + 0xc], str.would_block_n
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x100471b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x1002b21f
mov eax, dword [ebp - 0x78]
mov dword [eax], 0xffffffff
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
jmp eax
mov esi, dword [ebp - 0x50]
jmp 0x1002b134
mov dword [esp + 8], 0x310
mov dword [esp + 4], str..._src_wine_dlls_wininet_netconnection.c
mov dword [esp], str._conn__peek_len
call dword [sym.imp.ucrtbase.dll__assert]
movzx eax, byte [0x100471b4]
xor edx, edx
xor edi, edi
mov ebx, 8
mov ecx, eax
and ecx, 4
jmp 0x1002b2ad
movzx eax, byte [0x100471b4]
mov edi, esi
mov edx, esi
mov ebx, 8
mov ecx, eax
and ecx, 4
jmp 0x1002b2ad
mov dword [esp + 8], 0x2bd
mov dword [esp + 4], str..._src_wine_dlls_wininet_netconnection.c
mov dword [esp], str.conn__extra_len___ssl_buf_size
call dword [sym.imp.ucrtbase.dll__assert]
mov dword [ebp - 0x58], edx
jmp 0x1002af43
mov dword [esp + 8], 0x2ee
mov dword [esp + 4], str..._src_wine_dlls_wininet_netconnection.c
mov dword [esp], str.buf_len___ssl_buf_size
call dword [sym.imp.ucrtbase.dll__assert]
mov edi, dword [sym.imp.ws2_32.dll_WSAGetLastError]
jmp 0x1002b205