Function at 0x42c040
Capabilities:
Receive data
Receive data on socket
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp]
cmp dword [ebp + 4], ebx
mov eax, dword [eax]
mov dword [esp + 0x18], eax
jne 0x42c107
push 0x5000
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, ebx
pop ecx
mov dword [ebp + 4], eax
jne 0x42c101
cmp dword [0x441ff4], ebx
je 0x42c0f9
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x42c097
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x42c0f9
cmp eax, 1
jle 0x42c0f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x43e9c8], ebx
mov edi, eax
jge 0x42c0b9
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42c0eb
push 1
push dword [0x43e9c8]
push 0xa60
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push str.Failed_to_allocate_mem__n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x42ca5c
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
cmp byte [esp + 0x7c], 0
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x42c27a
cmp dword [0x441ff4], ebx
je 0x42c1b7
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x42c145
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x42c1b7
cmp eax, 3
jle 0x42c1b7
call esi
mov ebx, eax
call edi
cmp dword [0x43e9c8], 0
mov dword [esp + 0x7c], eax
jge 0x42c162
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42c1a4
push 3
push dword [0x43e9c8]
push 0xa70
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp + 4]
push dword [esp + 0x8c]
push str.Debug_SSL__userbufsize_d__bufstart0x_p_readptr0x_p__bufend0x_p_n
call fcn.0041c506
add esp, 0x24
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x7c]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov ecx, 0x5f0
sub eax, dword [ebp + 4]
mov dword [esp + 0x7c], ecx
cmp eax, ecx
jg 0x42c1ce
mov dword [esp + 0x7c], eax
cmp dword [0x441ff4], ebx
je 0x42c267
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 3
je 0x42c1f5
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x42c267
cmp eax, 3
jle 0x42c267
call esi
mov dword [esp + 0x14], eax
call edi
cmp dword [0x43e9c8], ebx
mov dword [esp + 0x10], eax
jge 0x42c213
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42c253
push 3
push dword [0x43e9c8]
push 0xa79
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
mov eax, dword [ebp + 8]
push dword [esp + 0x8c]
sub eax, dword [ebp + 4]
push eax
push str.Last_Decrypted_SSL_Buffer_len_d__dump_first__d_bytes_n
call fcn.0041c506
add esp, 0x1c
call fcn.0041c4cc
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 3
mov ecx, ebp
push dword [ebp + 4]
push dword [esp + 0x84]
call fcn.0042e9db
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp ecx, eax
jae 0x42c2cb
sub eax, ecx
mov esi, eax
cmp esi, dword [esp + 0x70]
jle 0x42c2b5
mov edi, dword [esp + 0x70]
push edi
push ecx
push dword [esp + 0x74]
call sub.MSVCRT.dll_memcpy
add dword [ebp + 0xc], edi
mov eax, dword [esp + 0x84]
add esp, 0xc
sub esi, edi
mov dword [eax], esi
mov eax, edi
jmp 0x42ca5c
push esi
push ecx
push dword [esp + 0x74]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [ebp + 0xc], esi
jmp 0x42ca54
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
jge 0x42c33a
sub ecx, eax
add eax, dword [ebp + 4]
push ebx
push ecx
push eax
mov dword [ebp + 0x14], ecx
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x42c2fe
call esi
cmp eax, 0x2733
jne 0x42c5df
jmp 0x42c2cb
cmp eax, ebx
je 0x42c665
add dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x18]
jl 0x42c2cb
mov ecx, dword [ebp + 4]
push 2
lea eax, [eax + ecx - 2]
push eax
lea eax, [esp + 0x24]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [ebp + 0x14], eax
jmp 0x42c2cb
add eax, dword [ebp + 4]
push ebx
push dword [ebp + 0x14]
push eax
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x42c6ec
cmp eax, ebx
je 0x42c7f3
add dword [ebp + 0x10], eax
sub dword [ebp + 0x14], eax
jne 0x42c85b
cmp dword [ebp + 0x48], ebx
je 0x42c401
push 4
mov ecx, ebp
push dword [ebp + 4]
push eax
call fcn.0042e9db
cmp dword [0x441ff4], ebx
je 0x42c401
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 4
je 0x42c3a2
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x42c401
cmp eax, 4
jle 0x42c401
call esi
mov dword [esp + 0x7c], eax
call edi
cmp dword [0x43e9c8], ebx
mov edi, eax
jge 0x42c3be
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42c3f0
push 4
push dword [0x43e9c8]
push 0xaf3
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push 0x43c998
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push dword [esp + 0x7c]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 4]
push ebx
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push ebx
push eax
lea eax, [ebp + 0x2a4]
mov dword [ebp + 0x10], ebx
push eax
mov eax, dword [0x4453cc]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 4
call dword [eax + 0x68]
cmp eax, 0x80090318
mov dword [esp + 0x28], eax
je 0x42c975
cmp eax, 0x90317
je 0x42c8e8
cmp eax, ebx
je 0x42c479
cmp eax, 0x90321
jne 0x42c975
xor ecx, ecx
lea edi, [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x7c], 1
mov dword [esp + 0x10], edi
cmp dword [edi + 4], 1
jne 0x42c589
cmp ebx, ecx
jne 0x42c4a6
mov ebx, edi
jmp 0x42c589
cmp dword [0x441ff4], ecx
je 0x42c589
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x42c4d5
mov edx, dword [0x441fdc]
cmp dword [edx], ecx
jne 0x42c589
cmp eax, 1
jle 0x42c589
call esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x43e9c8], 0
mov dword [esp + 0x24], eax
jge 0x42c4f8
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42c573
push 1
push dword [0x43e9c8]
push 0xb30
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
pop ecx
lea esi, [esp + 0x68]
mov edi, esp
sub esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x68]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0xc
lea esi, [esp + 0x68]
mov edi, esp
sub esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x40]
sub esp, 0xc
mov edi, esp
push dword [esp + 0xb8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push str.more_than_one_data_buffer__cur_Buffer__d_0x_p__pDataBuffer0x_p__buffer_1_0x_p__buffer_2_0x_p__buffer_3_0x_p
movsd dword es:[edi], dword [esi]
call fcn.0041c506
add esp, 0x44
call fcn.0041c4cc
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [esp + 0x10]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
cmp dword [esp + 0x14], ecx
jne 0x42c599
cmp dword [edi + 4], 5
jne 0x42c599
mov dword [esp + 0x14], edi
inc dword [esp + 0x7c]
add edi, 0xc
cmp dword [esp + 0x7c], 4
mov dword [esp + 0x10], edi
jl 0x42c491
cmp dword [esp + 0x14], ecx
jne 0x42c975
cmp dword [esp + 0x28], 0x90321
je 0x42c8f2
cmp ebx, ecx
jne 0x42c985
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], ecx
xor ebx, ebx
jmp 0x42c2cb
cmp dword [0x441ff4], ebx
je 0x42c0f9
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x42c60e
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x42c0f9
cmp eax, 1
jle 0x42c0f9
call esi
mov ebp, eax
call edi
cmp dword [0x43e9c8], ebx
mov edi, eax
jge 0x42c628
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42c65f
push 1
push dword [0x43e9c8]
push 0xaab
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
push str._Error__d_reading_data_from_server_n
call fcn.0041c506
pop ecx
pop ecx
call fcn.0041c4cc
push ebp
jmp 0x42c0ec
cmp dword [0x441ff4], ebx
je 0x42c6e5
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x42c688
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x42c6e5
cmp eax, 1
jle 0x42c6e5
call esi
mov esi, eax
call edi
cmp dword [0x43e9c8], ebx
mov edi, eax
jge 0x42c6a2
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42c6d7
push 1
push dword [0x43e9c8]
push 0xab1
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push dword [ebp + 0x10]
push str._Server_disconnected__encrypted_data_buffered__d_n
call fcn.0041c506
add esp, 0x18
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x42ca5c
call esi
cmp eax, 0x2733
jne 0x42c75d
cmp dword [0x441ff4], ebx
je 0x42c0f9
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 4
je 0x42c724
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x42c0f9
cmp eax, 4
jle 0x42c0f9
call esi
mov ebp, eax
call edi
cmp dword [0x43e9c8], ebx
mov edi, eax
jge 0x42c73e
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42c65f
push 4
push dword [0x43e9c8]
push 0xacf
jmp 0x42c63e
cmp dword [0x441ff4], ebx
je 0x42c0f9
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x42c78c
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x42c0f9
cmp eax, 1
jle 0x42c0f9
call esi
mov dword [esp + 0x7c], eax
call edi
cmp dword [0x43e9c8], ebx
mov edi, eax
jge 0x42c7a8
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42c7ea
push 1
push dword [0x43e9c8]
push 0xad4
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
add esp, 0x10
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esp + 0x20]
call esi
push eax
push str._Error__d_reading_data_from_server_sock_d_pos_d_need_d_n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push dword [esp + 0x7c]
jmp 0x42c0ec
cmp dword [0x441ff4], ebx
je 0x42c6e5
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x42c822
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x42c6e5
cmp eax, 1
jle 0x42c6e5
call esi
mov esi, eax
call edi
cmp dword [0x43e9c8], ebx
mov edi, eax
jge 0x42c83c
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42c6d7
push 1
push dword [0x43e9c8]
push 0xadc
jmp 0x42c6b8
cmp dword [0x441ff4], ebx
je 0x42c8de
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 4
je 0x42c87e
mov ecx, dword [0x441fdc]
cmp dword [ecx], ebx
jne 0x42c8de
cmp eax, 4
jle 0x42c8de
call esi
mov esi, eax
call edi
cmp dword [0x43e9c8], ebx
mov edi, eax
jge 0x42c898
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42c8d0
push 4
push dword [0x43e9c8]
push 0xae6
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push str._Need_more_encrypted_data__read__d__waiting_for__d_n
call fcn.0041c506
add esp, 0x1c
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x2733
jmp 0x42c97a
push 0x274c
jmp 0x42c97a
cmp dword [0x441ff4], ecx
je 0x42c975
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x42c916
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x42c975
cmp eax, 1
jle 0x42c975
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x43e9c8], 0
mov edi, eax
jge 0x42c935
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42c967
push 1
push dword [0x43e9c8]
push 0xb48
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push str.Server_requested_renegotiate__n
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x2742
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x42c0f9
mov eax, dword [ebx + 8]
add eax, dword [ebx]
cmp dword [ebp + 0x48], ecx
mov dword [ebp + 8], eax
je 0x42ca28
push 4
mov ecx, ebp
push dword [ebx + 8]
push dword [ebx]
call fcn.0042e9db
cmp dword [0x441ff4], 0
je 0x42ca28
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 4
je 0x42c9c9
mov ecx, dword [0x441fdc]
cmp dword [ecx], 0
jne 0x42ca28
cmp eax, 4
jle 0x42ca28
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x43e9c8], 0
mov edi, eax
jge 0x42c9e8
mov eax, dword [0x441fa0]
mov dword [0x43e9c8], eax
call fcn.0041c4b1
test eax, eax
je 0x42ca1a
push 4
push dword [0x43e9c8]
push 0xb56
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHARED_sslsock_sslsock.cpp
call fcn.0041c4e1
push 0x43c998
call fcn.0041c506
add esp, 0x14
call fcn.0041c4cc
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx + 8]
mov dword [ebp + 0xc], eax
mov esi, dword [ebx]
cmp esi, dword [esp + 0x70]
jle 0x42ca41
mov edi, dword [esp + 0x70]
push edi
push eax
jmp 0x42c294
push esi
push eax
push dword [esp + 0x74]
call sub.MSVCRT.dll_memcpy
add dword [ebp + 0xc], esi
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x78]
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0x14