Function at 0x6c12b510
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 0x6c12ba30
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x6c12b9b0
mov eax, dword [esi + 0x38]
test eax, eax
je 0x6c12b5a0
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 0x6c12bb64
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 0x6c12b830
test ebx, ebx
jne 0x6c12b7e0
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 0x6c12b627
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 0x6c12b651
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x6c12b778
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 0x6c12b640
mov esi, dword [ebp - 0x68]
test eax, eax
js 0x6c12b77b
add dword [ebp - 0x60], eax
jne 0x6c12b6b0
test byte [0x6c1471b4], 8
jne 0x6c12bb30
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 0x6c12b960
cmp eax, 0x90317
je 0x6c12b910
cmp eax, 0x80090318
je 0x6c12b858
movzx eax, byte [0x6c1471b4]
test al, 4
jne 0x6c12bab0
mov dword [ebp - 0x60], 0
xor edi, edi
mov ebx, 0x2efe
test al, 8
je 0x6c12b697
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 0x6c12b697
mov esi, dword [ebp - 0x68]
mov edx, dword [ebp - 0x60]
test edx, edx
jne 0x6c12b6b0
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x6c12bbc3
movzx eax, byte [0x6c1471b4]
xor edi, edi
mov ebx, 0x2efe
test al, 4
je 0x6c12b73d
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 0x6c12baed
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 0x6c12b5f6
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 0x6c12b5dc
mov edx, dword [ebp - 0x60]
cmp dword [ebp - 0x64], edx
jbe 0x6c12bb83
mov edx, dword [ebp - 0x80]
cmp edx, dword [esi + 8]
je 0x6c12b894
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 0x6c12b8cd
call ebx
cmp eax, 0x2714
jne 0x6c12ba40
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 0x6c12b8c0
mov esi, dword [ebp - 0x88]
mov edx, eax
test eax, eax
jle 0x6c12bba5
add dword [ebp - 0x60], eax
jmp 0x6c12b6bc
test byte [0x6c1471b4], 8
je 0x6c12b68e
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 0x6c12b73d
lea edx, [ebp - 0x48]
lea edi, [ebp - 0x18]
xor ebx, ebx
mov ecx, edx
cmp dword [ecx + 4], 1
je 0x6c12bbfe
add ecx, 0xc
cmp edi, ecx
jne 0x6c12b96a
mov dword [ebp - 0x60], ebx
mov ebx, edx
cmp dword [ebx + 4], 5
je 0x6c12bcdf
add ebx, 0xc
cmp edi, ebx
jne 0x6c12b980
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x6c12b5b1
mov edi, ebx
movzx eax, byte [0x6c1471b4]
xor ebx, ebx
jmp 0x6c12b73d
mov ecx, edx
cmp edx, dword [esi + 8]
je 0x6c12b9de
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 0x6c12ba05
call esi
cmp eax, 0x2714
jne 0x6c12bcc8
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 0x6c12b9f8
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 0x6c12bad8
test byte [0x6c1471b4], 8
jne 0x6c12bc9f
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 0x6c12bd7b
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 0x6c12b73d
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 0x6c12bd73
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 0x6c12b73d
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 0x6c12b73d
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 0x6c12b58c
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 0x6c12b864
jne 0x6c12bd68
movzx eax, byte [0x6c1471b4]
xor edi, edi
mov ebx, 0x2efe
mov ecx, eax
and ecx, 4
jmp 0x6c12baed
mov ebx, 0x2733
test byte [0x6c1471b4], 8
je 0x6c12b697
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 0x6c12ba92
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 0x6c12bd12
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x6c12bd1a
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 0x6c12bd95
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 0x6c12b974
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 0x6c12ba62
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 0x6c12bd4d
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 0x6c12b98a
mov ebx, dword [ebp - 0x60]
jmp 0x6c12b974
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 0x6c12bc49
mov edi, dword [ebp - 0x60]
movzx eax, byte [0x6c1471b4]
mov edx, edi
mov ebx, 8
mov ecx, eax
and ecx, 4
jmp 0x6c12baed
mov edi, dword [sym.imp.ws2_32.dll_WSAGetLastError]
jmp 0x6c12ba48
mov dword [ebp - 0x60], edx
jmp 0x6c12b73d
movzx eax, byte [0x6c1471b4]
xor edx, edx
xor edi, edi
mov ebx, 8
mov ecx, eax
and ecx, 4
jmp 0x6c12baed
mov edi, ebx
jmp 0x6c12bd50