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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], ecx
mov dword [ecx], 0
test eax, eax
je 0x6c12ba90
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x6c12ba10
mov eax, dword [esi + 0x38]
test eax, eax
je 0x6c12b600
mov ecx, dword [ebp - 0x7c]
cmp dword [esi + 0x40], ecx
mov ebx, ecx
cmovbe ebx, dword [esi + 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
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 0x6c12bbc4
mov eax, dword [ebp - 0x84]
mov dword [eax], ebx
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.ws2_32.dll_recv]
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x5c], eax
test ecx, ecx
setne byte [ebp - 0x71]
mov ebx, dword [esi + 0x34]
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x54], 0
add eax, dword [esi + 0x14]
add eax, dword [esi + 0x18]
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x4c], ecx
cmp eax, ebx
jbe 0x6c12b890
test ebx, ebx
jne 0x6c12b840
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x6c], eax
mov eax, 1
and al, byte [ebp - 0x71]
movzx edi, al
cmp edi, dword [esi + 8]
je 0x6c12b687
xor eax, 1
mov edx, dword [esi]
mov dword [esp + 4], 0x8004667e
movzx eax, al
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
mov dword [esp + 8], eax
mov dword [esp], edx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
sub esp, 0xc
mov dword [esi + 8], edi
add ebx, dword [esi + 0x2c]
mov dword [ebp - 0x68], esi
mov edi, dword [esi]
mov esi, dword [ebp - 0x6c]
jmp 0x6c12b6b1
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x6c12b7d8
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call eax
sub esp, 0x10
cmp eax, 0xffffffff
je 0x6c12b6a0
mov esi, dword [ebp - 0x68]
test eax, eax
js 0x6c12b7db
add dword [ebp - 0x60], eax
jne 0x6c12b710
test byte [0x6c1471b4], 8
jne 0x6c12bb90
mov dword [ebp - 0x60], 0
xor ebx, ebx
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi + 0xc]
mov ebx, dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [ebp - 0x70], eax
xor eax, eax
mov ecx, 9
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x48], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0xc], 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 8], 0
mov dword [esp], eax
call sym._DecryptMessage_16
sub esp, 0x10
mov edx, eax
test eax, eax
je 0x6c12b9c0
cmp eax, 0x90317
je 0x6c12b970
cmp eax, 0x80090318
je 0x6c12b8b8
movzx eax, byte [0x6c1471b4]
test al, 4
jne 0x6c12bb10
mov dword [ebp - 0x60], 0
xor edi, edi
mov ebx, 0x2efe
test al, 8
je 0x6c12b6f7
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], 0x6c1471b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x6c12b6f7
mov esi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x60]
test edx, edx
jne 0x6c12b710
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x6c12bc23
movzx eax, byte [0x6c1471b4]
xor edi, edi
mov ebx, 0x2efe
test al, 4
je 0x6c12b79d
mov dword [esp + 0xc], str.recv_failed_n
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x6c1471b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_6
movzx eax, byte [0x6c1471b4]
xor edx, edx
mov ecx, eax
and ecx, 4
jmp 0x6c12bb4d
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov ebx, dword [esi + 0x34]
mov eax, dword [esi + 0x30]
mov dword [esi + 0x34], 0
mov dword [ebp - 0x60], ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x64]
test ebx, ebx
mov dword [esi + 0x30], 0
sete al
sub edx, ebx
mov dword [ebp - 0x6c], edx
jmp 0x6c12b656
mov dword [esp + 8], 0x2bf
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 ebx, dword [esi + 0x34]
jmp 0x6c12b63c
mov edx, dword [ebp - 0x60]
cmp dword [ebp - 0x64], edx
jbe 0x6c12bbe3
mov edx, dword [ebp - 0x80]
cmp edx, dword [esi + 8]
je 0x6c12b8f4
test edx, edx
mov eax, dword [esi]
mov dword [esp + 4], 0x8004667e
sete dl
movzx edx, dl
mov dword [esp], eax
mov dword [ebp - 0x58], edx
lea edx, [ebp - 0x58]
mov dword [esp + 8], edx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
sub esp, 0xc
mov eax, dword [ebp - 0x80]
mov edx, dword [esi + 0x2c]
mov dword [ebp - 0x88], esi
mov ecx, dword [ebp - 0x64]
mov edi, dword [esi]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x60]
add edx, eax
sub ecx, eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], ecx
jmp 0x6c12b92d
call ebx
cmp eax, 0x2714
jne 0x6c12baa0
mov eax, dword [ebp - 0x68]
mov dword [esp + 0xc], 0
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
call eax
sub esp, 0x10
cmp eax, 0xffffffff
je 0x6c12b920
mov esi, dword [ebp - 0x88]
mov edx, eax
test eax, eax
jle 0x6c12bc05
add dword [ebp - 0x60], eax
jmp 0x6c12b71c
test byte [0x6c1471b4], 8
je 0x6c12b6ee
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], 0x6c1471b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
mov dword [ebp - 0x60], 0
movzx eax, byte [0x6c1471b4]
jmp 0x6c12b79d
lea edx, [ebp - 0x48]
lea edi, [ebp - 0x18]
xor ebx, ebx
mov ecx, edx
cmp dword [ecx + 4], 1
je 0x6c12bc5e
add ecx, 0xc
cmp edi, ecx
jne 0x6c12b9ca
mov dword [ebp - 0x60], ebx
mov ebx, edx
cmp dword [ebx + 4], 5
je 0x6c12bd3f
add ebx, 0xc
cmp edi, ebx
jne 0x6c12b9e0
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x6c12b611
mov edi, ebx
movzx eax, byte [0x6c1471b4]
xor ebx, ebx
jmp 0x6c12b79d
mov ecx, edx
cmp edx, dword [esi + 8]
je 0x6c12ba3e
xor edx, edx
test ecx, ecx
mov eax, dword [esi]
mov dword [esp + 4], 0x8004667e
sete dl
mov dword [ebp - 0x48], edx
lea edx, [ebp - 0x48]
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
sub esp, 0xc
mov eax, dword [ebp - 0x80]
mov ebx, dword [esi]
mov edi, dword [sym.imp.ws2_32.dll_recv]
mov dword [esi + 8], eax
mov esi, dword [sym.imp.ws2_32.dll_WSAGetLastError]
jmp 0x6c12ba65
call esi
cmp eax, 0x2714
jne 0x6c12bd28
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0xc], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 4], eax
call edi
sub esp, 0x10
cmp eax, 0xffffffff
je 0x6c12ba58
mov edx, dword [ebp - 0x84]
mov dword [edx], eax
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x88]
mov edi, ebx
call edi
cmp eax, 0x2733
jne 0x6c12bb38
test byte [0x6c1471b4], 8
jne 0x6c12bcff
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esi + 0x30], eax
test eax, eax
je 0x6c12bddb
mov edx, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x60]
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 - 0x60], 0
movzx eax, byte [0x6c1471b4]
xor edi, edi
mov ebx, 0x2733
jmp 0x6c12b79d
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], 0x6c1471b4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_6
movzx eax, byte [0x6c1471b4]
xor edx, edx
xor edi, edi
mov ebx, 0x2efe
mov ecx, eax
and ecx, 4
test cl, cl
je 0x6c12bdd3
mov dword [esp + 0xc], str.read_ssl_chunk_failed_n
mov dword [esp + 8], str.NETCON_recv
mov dword [esp + 4], 0x6c1471b4
mov dword [esp], 2
mov dword [ebp - 0x5c], edx
call sym._wine_dbg_log.constprop.0_6
mov edx, dword [ebp - 0x5c]
movzx eax, byte [0x6c1471b4]
mov dword [ebp - 0x60], edx
jmp 0x6c12b79d
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], 0x6c1471b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
movzx eax, byte [0x6c1471b4]
jmp 0x6c12b79d
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 0x6c12b5ec
mov dword [esp + 8], 0x2f0
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]
jmp 0x6c12b8c4
jne 0x6c12bdc8
movzx eax, byte [0x6c1471b4]
xor edi, edi
mov ebx, 0x2efe
mov ecx, eax
and ecx, 4
jmp 0x6c12bb4d
mov ebx, 0x2733
test byte [0x6c1471b4], 8
je 0x6c12b6f7
mov dword [esp + 0xc], str.would_block_n
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x6c1471b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x6c12baf2
mov eax, dword [ecx]
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], eax
cmp edx, eax
cmovbe eax, edx
mov edx, eax
mov eax, dword [ecx + 8]
mov ecx, dword [ebp - 0x78]
mov dword [esp + 8], edx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x60], edx
call sym._memcpy
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
jbe 0x6c12bd72
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x6c12bd7a
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x64]
sub edx, dword [ebp - 0x60]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], edx
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
test eax, eax
je 0x6c12bdf5
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x60]
add ebx, dword [ecx + 8]
mov dword [esi + 0x40], edx
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x64], ecx
call sym._memcpy
mov ebx, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x6c]
jmp 0x6c12b9d4
mov dword [esp + 0xc], str.would_block_n
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x6c1471b4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_6
jmp 0x6c12bac2
mov eax, dword [ebp - 0x84]
mov dword [eax], 0xffffffff
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp eax
mov ecx, dword [ebx]
mov dword [esp], ecx
mov dword [ebp - 0x64], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esi + 0x30], eax
test eax, eax
je 0x6c12bdad
mov ecx, dword [ebp - 0x64]
mov dword [esi + 0x34], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebx + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._memcpy
jmp 0x6c12b9ea
mov ebx, dword [ebp - 0x60]
jmp 0x6c12b9d4
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x64], ecx
mov dword [esp + 8], 0x312
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]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x68]
mov eax, dword [ecx]
mov dword [ebp - 0x64], eax
jmp 0x6c12bca9
mov edi, dword [ebp - 0x60]
movzx eax, byte [0x6c1471b4]
mov edx, edi
mov ebx, 8
mov ecx, eax
and ecx, 4
jmp 0x6c12bb4d
mov edi, dword [sym.imp.ws2_32.dll_WSAGetLastError]
jmp 0x6c12baa8
mov dword [ebp - 0x60], edx
jmp 0x6c12b79d
movzx eax, byte [0x6c1471b4]
xor edx, edx
xor edi, edi
mov ebx, 8
mov ecx, eax
and ecx, 4
jmp 0x6c12bb4d
mov edi, ebx
jmp 0x6c12bdb0