Function at 0x100cfa90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x40], 0xffffffff
mov eax, edx
mov dword [ebp - 0x30], esi
push edi
mov dword [ebp - 0x3c], eax
push dword [esi + 0xb4]
mov ebx, dword [esi]
lea eax, [eax + eax*4]
push dword [esi + 0x98]
shl eax, 4
lea edi, [esi + 0x178]
add edi, eax
mov dword [ebp - 0x38], ebx
push str.schannel:_SSL_TLS_connection_with__s_port__hu__step_2_3__n
push ebx
cmp dword [edi + 8], 3
setne byte [ebp - 0x29]
call fcn.100bc730
add esp, 0x10
cmp dword [edi + 0xc], 0
je 0x100cfe4b
cmp dword [edi + 0x10], 0
je 0x100cfe4b
cmp dword [edi + 0x3c], 0
jne 0x100cfb4a
push 0x1000
mov dword [edi + 0x34], 0
mov dword [edi + 0x2c], 0x1000
call dword [0x10269be8]
add esp, 4
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x100cfb4a
push str.schannel:_unable_to_allocate_memory
push ebx
call fcn.100bc7f0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x38], 0
jne 0x100cfb73
push 0x1000
mov dword [edi + 0x30], 0
mov dword [edi + 0x28], 0x1000
call dword [0x10269be8]
add esp, 4
mov dword [edi + 0x38], eax
test eax, eax
je 0x100cfb26
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x30]
sub eax, ecx
cmp eax, 0x400
jae 0x100cfbc9
lea eax, [ecx + 0x400]
push eax
push dword [edi + 0x38]
mov dword [ebp - 0x34], eax
call dword [0x10269bf0]
add esp, 8
test eax, eax
jne 0x100cfbc0
push str.schannel:_unable_to_re_allocate_memory
push ebx
call fcn.100bc7f0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x28], eax
mov al, byte [ebp - 0x29]
lea esp, [esp]
test al, al
je 0x100cfc08
mov edx, dword [edi + 0x28]
sub edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x38]
mov eax, dword [ebp - 0x3c]
add ecx, dword [edi + 0x30]
push 0
push edx
push ecx
push dword [esi + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x100cfe30
test eax, eax
je 0x100cfe3d
add dword [edi + 0x30], eax
push dword [edi + 0x28]
push dword [edi + 0x30]
push str.schannel:_encrypted_data_buffer:_offset__zu_length__zu_n
push ebx
call fcn.100bc730
mov esi, dword [edi + 0x30]
push esi
call dword [0x10269be8]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], ecx
add esp, 0x14
mov dword [ebp - 0x54], 2
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0x11
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], 3
test eax, eax
je 0x100cfb26
push dword [edi + 0x30]
push dword [edi + 0x38]
push eax
call fcn.101a1180
mov ecx, dword [ebp - 0x30]
add esp, 0xc
mov ecx, dword [ecx + 0x98]
call fcn.100d2370
mov esi, eax
test esi, esi
je 0x100cfb34
mov edx, dword [edi + 0x10]
lea eax, [ebp - 0x70]
lea ecx, [edx + 8]
push ecx
lea ecx, [edi + 0x44]
push ecx
push eax
push 0
push 0
lea eax, [ebp - 0x64]
push eax
mov eax, dword [0x1027984c]
push 0
push 0
push dword [edi + 0x40]
mov eax, dword [eax + 0x18]
push esi
push edx
push dword [edi + 0xc]
call eax
push esi
mov dword [ebp - 0x34], eax
call dword [0x10269bfc]
add esp, 4
push dword [ebp - 0x50]
call dword [0x10269bfc]
mov ecx, dword [ebp - 0x34]
add esp, 4
mov dword [ebp - 0x50], 0
cmp ecx, 0x80090318
je 0x100cff82
cmp ecx, 0x90320
je 0x100cff2d
cmp ecx, 0x90312
je 0x100cfd56
test ecx, ecx
jne 0x100cfe8f
xor ebx, ebx
lea esi, [ebp - 0x28]
jmp 0x100cfd60
cmp dword [esi + 4], 2
jne 0x100cfdb0
mov eax, dword [esi]
test eax, eax
je 0x100cfdb0
push eax
push str.schannel:_sending_next_handshake_data:_sending__lu_bytes..._n
push dword [ebp - 0x38]
call fcn.100bc730
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
add esp, 0xc
push eax
mov eax, dword [ebp - 0x30]
push dword [esi]
push dword [esi + 8]
mov edx, dword [eax + ecx*4 + 0x154]
mov ecx, eax
call fcn.100bcbb0
mov ecx, dword [ebp - 0x40]
add esp, 0xc
test eax, eax
jne 0x100cfeb6
cmp dword [esi], ecx
jne 0x100cfeb6
mov eax, dword [esi + 8]
test eax, eax
je 0x100cfdc2
push eax
mov eax, dword [0x1027984c]
mov eax, dword [eax + 0x40]
call eax
inc ebx
add esi, 0xc
cmp ebx, 3
jl 0x100cfd60
cmp dword [ebp - 0x48], 5
jne 0x100cfed3
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x100cfed3
mov ebx, dword [ebp - 0x38]
push eax
push str.schannel:_encrypted_data_length:__lu_n
push ebx
call fcn.100bc730
mov ecx, dword [edi + 0x30]
add esp, 0xc
mov edx, dword [ebp - 0x4c]
cmp ecx, edx
jbe 0x100cfedd
mov eax, dword [edi + 0x38]
sub ecx, edx
push edx
add ecx, eax
push ecx
push eax
call fcn.101a0440
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x34]
cmp eax, 0x90312
jne 0x100cff01
mov esi, dword [ebp - 0x30]
xor al, al
jmp 0x100cfbd0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x100cfe61
push str.schannel:_failed_to_receive_handshake__SSL_TLS_connection_failed
push ebx
call fcn.100bc7f0
add esp, 8
mov eax, 0x23
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
cmp dword [edi + 8], 3
je 0x100cfe6e
mov dword [edi + 8], 2
push str.schannel:_failed_to_receive_handshake__need_more_data_n
push ebx
call fcn.100bc730
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
cmp ecx, 0x80090322
jne 0x100cff34
mov edx, ecx
mov ecx, dword [ebp - 0x30]
call fcn.100cea10
push eax
push str.schannel:_SNI_or_certificate_check_failed:__s
push ebx
call fcn.100bc7f0
add esp, 0xc
jmp 0x100cfe4b
lea eax, [ebx + ebx*2]
push dword [ebp + eax*4 - 0x28]
push ecx
push str.schannel:_failed_to_send_next_handshake_data:_sent__zd_of__lu_bytes
push dword [ebp - 0x38]
call fcn.100bc7f0
add esp, 0x10
jmp 0x100cfe4b
mov ebx, dword [ebp - 0x38]
mov dword [edi + 0x30], 0
mov eax, dword [ebp - 0x34]
cmp eax, 0x90312
jne 0x100cff01
mov dword [edi + 8], 2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x100cff1a
push str.schannel:_SSL_TLS_handshake_complete_n
push ebx
mov dword [edi + 8], 4
call fcn.100bc730
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x40]
test al, al
jns 0x100cff52
mov edx, ecx
mov ecx, dword [ebp - 0x30]
call fcn.100cea10
push eax
push str.schannel:_next_InitializeSecurityContext_failed:__s
push ebx
call fcn.100bc7f0
add esp, 0xc
jmp 0x100cfe4b
or eax, 0x80
mov dword [edi + 8], 3
push str.schannel:_a_client_certificate_has_been_requested_n
push ebx
mov dword [edi + 0x40], eax
call fcn.100bc730
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push str.schannel:_received_incomplete_message__need_more_data_n
push ebx
mov dword [edi + 8], 2
call fcn.100bc730
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.101a0193
mov esp, ebp
pop ebp
ret