Function at 0x506300
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x55ade8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x10000
mov esi, ecx
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [esi + 0x3054], eax
jne 0x506392
push str.Out_of_memory__1__n
mov ecx, esi
call fcn.004c7490
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 0x7c]
mov eax, dword [0x5bb43c]
mov dword [esp + 0x1c], ebx
mov edx, dword [ecx]
lea ecx, [esp + 0x2c]
push edx
push eax
push ecx
call fcn.0053091a
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0x6c]
add esp, 0xc
push edx
call fcn.004c9920
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00537b04
mov eax, 0x80090304
jmp 0x506906
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x3058], ebx
mov dword [esi + 0x305c], eax
mov dword [esi + 0x3050], 0x90312
mov eax, dword [esi + 0x3050]
cmp eax, 0x90312
je 0x5063cf
cmp eax, 0x80090318
je 0x5063cf
cmp eax, 0x90320
jne 0x5068cf
cmp dword [esi + 0x3058], ebx
je 0x5063de
cmp eax, 0x80090318
jne 0x506439
cmp dword [esi + 0x305c], ebx
je 0x50642f
push 0x3c
push edi
mov ecx, esi
call fcn.004c7940
cmp eax, ebx
jne 0x506906
mov eax, dword [esi + 0x3058]
mov ecx, 0x10000
sub ecx, eax
push ebx
push ecx
mov ecx, dword [esi + 0x3054]
add eax, ecx
push eax
push edi
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x5065db
cmp eax, ebx
je 0x506656
add dword [esi + 0x3058], eax
jmp 0x506439
mov dword [esi + 0x305c], 1
mov ecx, dword [esi + 0x3058]
lea eax, [esi + 0x3010]
mov dword [esi + 0x300c], eax
lea edi, [esi + 0x3034]
mov dword [eax], ecx
mov ecx, 2
mov dword [esi + 0x3014], ecx
mov dword [esi + 0x3008], ecx
mov dword [esi + 0x3038], ecx
lea eax, [esi + 0x3004]
lea ecx, [esi + 0x3028]
mov dword [esi + 0x3024], ebx
mov dword [esi + 0x301c], ebx
mov dword [esi + 0x3020], ebx
mov dword [eax], ebx
mov dword [esi + 0x303c], ebx
mov dword [edi], ebx
mov dword [ecx], ebx
lea ebx, [esi + 0x3048]
mov edx, dword [esi + 0x3054]
lea ebp, [esi + 0x3040]
push ebx
push ebp
xor ebx, ebx
push ecx
mov ecx, dword [esp + 0x34]
push ebx
push ebx
push eax
mov eax, dword [esp + 0x44]
push 0x10
push ebx
push 0xc11c
mov dword [esi + 0x3018], edx
mov edx, dword [esi + 0x7c]
push ebx
push eax
push ecx
mov dword [esi + 0x302c], 1
mov dword [esi + 0x3030], edi
call dword [edx + 0x34c]
cmp eax, ebx
mov dword [esi + 0x3050], eax
je 0x5064fd
cmp eax, 0x90312
je 0x5064fd
cmp eax, ebx
jge 0x506543
mov eax, dword [ebp]
test ah, 0x40
je 0x506543
mov edi, dword [edi]
cmp edi, ebx
je 0x506543
mov eax, dword [esi + 0x303c]
cmp eax, ebx
je 0x506543
push ebx
push edi
mov edi, dword [esp + 0x2c]
push eax
push edi
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x5066b4
cmp eax, ebx
je 0x5066b4
mov eax, dword [esi + 0x303c]
mov edx, dword [esi + 0x7c]
push eax
call dword [edx + 0x374]
mov dword [esi + 0x303c], ebx
jmp 0x506547
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x3050]
cmp eax, 0x80090318
je 0x5063b0
cmp eax, ebx
je 0x506748
jl 0x506860
cmp eax, 0x90320
jne 0x506593
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, esi
call fcn.00506c00
mov dword [esi + 0x305c], ebx
mov dword [esi + 0x3050], 0x90312
jmp 0x5063b0
cmp dword [esi + 0x3020], 5
jne 0x5065d0
mov ecx, dword [esi + 0x3054]
mov eax, dword [esi + 0x301c]
mov edx, ecx
push eax
sub edx, eax
mov eax, dword [esi + 0x3058]
add edx, eax
push edx
push ecx
call fcn.0051d640
mov eax, dword [esi + 0x301c]
add esp, 0xc
mov dword [esi + 0x3058], eax
jmp 0x5063b0
mov dword [esi + 0x3058], ebx
jmp 0x5063b0
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [0x5b5ecc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
push eax
lea edx, [esp + 0x28]
push str.Error__d_reading_data_from_server_n
push edx
mov dword [esp + 0x28], 1
call fcn.0053091a
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004c7490
mov ecx, dword [esi + 0x7c]
mov dword [esi + 0x3050], 0x80090304
mov eax, dword [0x5bb43c]
mov edx, dword [ecx]
lea ecx, [esp + 0x24]
push edx
push eax
push ecx
call fcn.0053091a
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x6c]
add esp, 0xc
push edx
call fcn.004c9920
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
jmp 0x5068ca
push str.Server_unexpectedly_disconnected_n
mov ecx, esi
call fcn.004c7490
mov dword [esi + 0x3050], 0x80090304
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0x7c]
mov eax, dword [0x5bb43c]
mov dword [esp + 0x1c], 2
mov edx, dword [ecx]
lea ecx, [esp + 0x24]
push edx
push eax
push ecx
call fcn.0053091a
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x6c]
add esp, 0xc
push edx
call fcn.004c9920
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
jmp 0x5068ca
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x24], eax
push edi
lea ecx, [esp + 0x28]
push str.Error__d_sending_data_to_server__2__n
push ecx
mov dword [esp + 0x28], 3
call fcn.0053091a
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ecx, esi
push edx
call fcn.004c7490
mov eax, dword [esi + 0x7c]
mov edx, dword [0x5bb43c]
mov ecx, dword [eax]
lea eax, [esp + 0x24]
push ecx
push edx
push eax
call fcn.0053091a
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x6c]
call fcn.004c9920
mov eax, dword [esi + 0x303c]
mov edx, dword [esi + 0x7c]
push eax
call dword [edx + 0x374]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x7c]
push edx
call dword [ecx + 0x358]
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00537b04
mov eax, edi
jmp 0x506906
push str.Handshake_was_successful_n
mov ecx, esi
call fcn.004c7490
mov eax, dword [esi + 0x3020]
mov ebp, 5
cmp eax, ebp
mov byte [esi + 0x2f64], 1
jne 0x506852
mov eax, dword [esi + 0x301c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [esp + 0x34]
cmp eax, ebx
mov dword [edi + 8], eax
jne 0x5067e7
push str.Out_of_memory__2__n
mov ecx, esi
call fcn.004c7490
mov ecx, dword [0x5b5ecc]
mov dword [esp + 0x2c], ecx
mov edx, dword [esi + 0x7c]
mov ecx, dword [0x5bb43c]
mov dword [esp + 0x1c], 4
mov eax, dword [edx]
lea edx, [esp + 0x2c]
push eax
push ecx
push edx
call fcn.0053091a
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x6c]
add esp, 0xc
push eax
call fcn.004c9920
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00537b04
mov eax, 0x80090304
jmp 0x506906
mov ecx, dword [esi + 0x301c]
mov edx, dword [esi + 0x3058]
push ecx
sub edx, ecx
add edx, dword [esi + 0x3054]
push edx
push eax
call fcn.0051d640
mov eax, dword [esi + 0x301c]
mov dword [edi + 4], 2
mov dword [edi], eax
mov ecx, dword [0x5b5ecc]
add esp, 0xc
mov dword [esp + 0x24], ecx
mov edx, eax
lea eax, [esp + 0x24]
push edx
push str._d_bytes_of_app_data_was_bundled_with_handshake_data_n
push eax
mov dword [esp + 0x28], ebp
call fcn.0053091a
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004c7490
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
jmp 0x5068ca
mov eax, dword [esp + 0x34]
mov dword [eax + 8], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x5068cf
mov edx, dword [0x5b5ecc]
mov dword [esp + 0x28], edx
mov eax, dword [esi + 0x3050]
lea ecx, [esp + 0x28]
push eax
push str.Error_0x_x_returned_by_InitializeSecurityContext__2__n
push ecx
mov dword [esp + 0x28], 6
call fcn.0053091a
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, esi
push edx
call fcn.004c7490
mov eax, dword [esi + 0x7c]
mov edx, dword [0x5bb43c]
mov ecx, dword [eax]
lea eax, [esp + 0x28]
push ecx
push edx
push eax
call fcn.0053091a
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x6c]
call fcn.004c9920
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00537b04
cmp dword [esi + 0x3050], ebx
jge 0x5068e5
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x7c]
push eax
call dword [edx + 0x358]
mov ecx, dword [esi + 0x3054]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esi + 0x3050]
cmp esi, ebx
jge 0x506904
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x506906
mov eax, esi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14