Function at 0x6c130f50
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [esp + 0xc4]
mov ebp, dword [esp + 0xd0]
mov ecx, dword [esp + 0xc8]
mov ebx, dword [esp + 0xc0]
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x40], eax
mov dword [ebp], 0
test ecx, ecx
je 0x6c130fd2
mov eax, dword [ebx + 4]
test eax, eax
je 0x6c131573
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x6c130fe8
mov edx, dword [ebx + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
cmp ecx, edx
cmovbe edx, ecx
mov dword [esp], eax
mov dword [esp + 8], edx
mov esi, edx
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebx + 0x40]
add dword [ebx + 0x38], esi
sub eax, esi
mov dword [ebx + 0x40], eax
test eax, eax
je 0x6c131505
mov dword [ebp], esi
add esp, 0xac
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.ws2_32.dll_recv]
test edx, edx
mov dword [esp + 0x4c], ecx
setne byte [esp + 0x3f]
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1c]
lea edx, [esp + 0x70]
add eax, dword [ebx + 0x14]
mov dword [esp + 0x68], edx
add eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x34]
movq xmm2, qword [0x6c14e408]
mov dword [esp + 0x30], eax
movq qword [esp + 0x60], xmm2
cmp esi, eax
jae 0x6c131270
test esi, esi
jne 0x6c131220
mov ebp, dword [esp + 0x30]
mov eax, 1
mov dword [esp + 0x24], 0
and al, byte [esp + 0x3f]
movzx edi, al
cmp edi, dword [ebx + 8]
je 0x6c13107f
mov ecx, dword [ebx]
xor eax, 1
mov dword [esp + 4], 0x8004667e
movzx eax, al
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov dword [esp], ecx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
sub esp, 0xc
mov dword [ebx + 8], edi
add esi, dword [ebx + 0x2c]
mov edi, dword [ebx]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x28]
jmp 0x6c1310a9
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x6c131178
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], edi
call ebx
sub esp, 0x10
cmp eax, 0xffffffff
je 0x6c131098
test eax, eax
mov ebx, dword [esp + 0x2c]
js 0x6c13117c
add dword [esp + 0x24], eax
je 0x6c1313e8
lea eax, [ebx + 0xc]
mov dword [esp + 0x34], eax
lea edi, [esp + 0x7c]
xor eax, eax
mov ecx, 9
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x74], 1
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x78], eax
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.6c143428
sub esp, 0x10
test eax, eax
je 0x6c1312d0
cmp eax, 0x90317
je 0x6c131298
cmp eax, 0x80090318
je 0x6c131328
movzx edx, byte [0x6c145258]
mov ebp, dword [esp + 0x38]
test dl, 4
jne 0x6c131546
mov dword [esp + 0x24], 0
xor edi, edi
mov ebx, 0x2efe
jmp 0x6c1314cf
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x6c1310dc
mov ebp, dword [esp + 0x38]
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x6c13160a
movzx edx, byte [0x6c145258]
test dl, 4
je 0x6c131160
mov dword [esp + 0xc], str.recv_failed_n
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x6c145258
mov dword [esp], 2
call fcn.6c130610
lea esi, [esi]
mov dword [esp + 0x24], 0
xor edi, edi
mov ebx, 0x2efe
movzx edx, byte [0x6c145258]
test dl, 4
je 0x6c1314cf
mov dword [esp + 0xc], str.read_ssl_chunk_failed_n
mov dword [esp + 8], str.NETCON_recv
mov dword [esp + 4], 0x6c145258
mov dword [esp], 2
call fcn.6c130610
movzx edx, byte [0x6c145258]
jmp 0x6c1314cf
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x30]
mov dword [esp + 8], esi
mov dword [esp], ecx
mov dword [esp + 4], eax
call sub.ucrtbase.dll_memcpy
mov esi, dword [ebx + 0x34]
mov dword [ebx + 0x34], 0
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x24], esi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov ebp, dword [esp + 0x30]
test esi, esi
mov dword [ebx + 0x30], 0
sete al
sub ebp, esi
jmp 0x6c13104b
mov dword [esp + 8], 0x2bf
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_dlls_wininet_netconnection.c
mov dword [esp], str.conn__extra_len___ssl_buf_size
call dword [sym.imp.ucrtbase.dll__assert]
mov esi, dword [ebx + 0x34]
jmp 0x6c131032
mov ebp, dword [esp + 0x38]
test byte [0x6c145258], 8
jne 0x6c131498
xor ebx, ebx
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
mov dword [ebp], eax
add esp, 0xac
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x70]
xor ebp, ebp
lea edi, [esp + 0xa0]
mov esi, edx
cmp dword [esi + 4], 1
je 0x6c131681
add esi, 0xc
cmp edi, esi
jne 0x6c1312df
mov esi, edx
cmp dword [esi + 4], 5
je 0x6c131750
add esi, 0xc
cmp edi, esi
jne 0x6c1312f2
test ebp, ebp
je 0x6c131004
mov edi, ebp
movzx edx, byte [0x6c145258]
xor ebx, ebx
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x24], edi
jmp 0x6c1314cf
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x24], ecx
jae 0x6c131524
mov edx, dword [esp + 0x44]
cmp edx, dword [ebx + 8]
je 0x6c131368
mov eax, dword [ebx]
xor ecx, ecx
test edx, edx
mov dword [esp + 4], 0x8004667e
sete cl
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
sub esp, 0xc
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], ebx
mov ecx, dword [ebx + 0x2c]
mov ebp, dword [ebx]
mov esi, dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x24]
add ecx, eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov ebx, ecx
jmp 0x6c1313a7
mov edi, esi
call esi
cmp eax, 0x2714
jne 0x6c131430
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
call eax
sub esp, 0x10
cmp eax, 0xffffffff
je 0x6c131398
test eax, eax
mov ebx, dword [esp + 0x48]
jle 0x6c13164e
add dword [esp + 0x24], eax
jmp 0x6c1310e3
mov ebp, dword [esp + 0x38]
test byte [0x6c145258], 8
je 0x6c1312a9
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], 0x6c145258
mov dword [esp], 3
call fcn.6c130610
movzx edx, byte [0x6c145258]
jmp 0x6c1314cf
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x38]
call edi
cmp eax, 0x2733
jne 0x6c1311d0
test byte [0x6c145258], 8
jne 0x6c131727
mov edi, dword [esp + 0x24]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebx + 0x30], eax
test eax, eax
je 0x6c1317c5
mov edx, dword [ebx + 0x2c]
mov dword [ebx + 0x34], edi
mov ebx, 0x2733
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.ucrtbase.dll_memcpy
movzx edx, byte [0x6c145258]
mov dword [esp + 0x24], 0
jmp 0x6c1314cf
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], 0x6c145258
mov dword [esp], 3
call fcn.6c130610
movzx edx, byte [0x6c145258]
mov dword [esp + 0x24], 0
and edx, 8
je 0x6c1312b3
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], 0x6c145258
mov dword [esp], 3
call fcn.6c130610
jmp 0x6c1312b3
mov eax, dword [ebx + 0x3c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
jmp 0x6c130fcf
mov dword [esp + 8], 0x2f0
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_dlls_wininet_netconnection.c
mov dword [esp], str.buf_len___ssl_buf_size
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x6c131336
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.failed:__08lx_n
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x6c145258
mov dword [esp], 2
call fcn.6c130610
jmp 0x6c1311d0
cmp edx, dword [ebx + 8]
je 0x6c1315b2
mov esi, dword [ebx]
test edx, edx
mov dword [esp + 0x28], ecx
sete al
mov dword [esp + 0x24], edx
movzx eax, al
mov dword [esp + 4], 0x8004667e
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.ws2_32.dll_ioctlsocket]
sub esp, 0xc
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [sym.imp.ws2_32.dll_recv]
mov dword [ebx + 8], edx
mov edi, ecx
mov esi, dword [ebx]
mov dword [esp + 0x24], ebp
mov ebx, dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebp, eax
jmp 0x6c1315dd
call ebx
cmp eax, 0x2714
jne 0x6c131668
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], eax
call ebp
sub esp, 0x10
cmp eax, 0xffffffff
je 0x6c1315d0
mov ebp, dword [esp + 0x24]
mov dword [ebp], eax
jmp 0x6c130fd2
mov ebx, 0x2733
test byte [0x6c145258], 8
je 0x6c1312ab
mov dword [esp + 0xc], str.would_block_n
xor edi, edi
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x6c145258
mov dword [esp], 3
call fcn.6c130610
movzx edx, byte [0x6c145258]
jmp 0x6c1314cf
mov ebp, dword [esp + 0x38]
je 0x6c1311d0
mov edi, dword [sym.imp.ws2_32.dll_WSAGetLastError]
jmp 0x6c131438
mov ebp, dword [esp + 0x24]
mov eax, ebx
mov dword [ebp], 0xffffffff
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
jmp eax
mov ecx, dword [esi]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
cmp eax, ecx
cmova eax, ecx
mov ecx, eax
mov eax, dword [esi + 8]
mov dword [esp], edx
mov dword [esp + 8], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 4], eax
call sub.ucrtbase.dll_memcpy
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x24], ecx
mov edx, dword [esp + 0x30]
jae 0x6c13171e
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x6c131785
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], edx
sub ecx, eax
mov dword [esp], ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
movd xmm0, eax
movdqa xmm1, xmm0
punpckldq xmm1, xmm0
movq qword [ebx + 0x38], xmm1
test eax, eax
je 0x6c1317b1
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add eax, dword [esi + 8]
mov dword [ebx + 0x40], ecx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
movd dword [esp], xmm0
call sub.ucrtbase.dll_memcpy
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
jmp 0x6c1312e9
mov dword [esp + 0xc], str.would_block_n
mov dword [esp + 8], str.read_ssl_chunk
mov dword [esp + 4], 0x6c145258
mov dword [esp], 3
call fcn.6c130610
jmp 0x6c131452
mov edx, dword [esi]
mov dword [esp], edx
mov dword [esp + 0x24], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebx + 0x30], eax
test eax, eax
je 0x6c1317b1
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x34], edx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
jmp 0x6c1312fc
mov dword [esp + 0x2c], edx
mov dword [esp + 8], 0x312
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_dlls_wininet_netconnection.c
mov dword [esp], str._conn__peek_len
call dword [sym.imp.ucrtbase.dll__assert]
mov ecx, dword [esi]
mov edx, dword [esp + 0x2c]
jmp 0x6c1316ca
mov edi, ebp
mov ebx, 8
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x24], edi
jmp 0x6c1311df
xor eax, eax
xor edi, edi
mov ebx, 8
mov dword [esp + 0x24], eax
jmp 0x6c1311df