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

Disassembly:
push 0xffffffffffffffff
push 0x590038
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 + 0x326c], eax
jne 0x534f35
push str.Out_of_memory__1__n
mov ecx, esi
call fcn.004e9e80
mov eax, dword [0x639ad4]
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 0x80]
mov eax, dword [0x63f1dc]
mov dword [esp + 0x1c], ebx
mov edx, dword [ecx]
lea ecx, [esp + 0x2c]
push edx
push eax
push ecx
call fcn.00562ecb
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0x6c]
add esp, 0xc
push edx
call fcn.004ec300
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0056a100
mov eax, 0x80090304
jmp 0x5354c7
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
mov dword [esi + 0x3270], ebx
mov dword [esi + 0x3274], eax
mov dword [esi + 0x3268], 0x90312
mov eax, dword [esi + 0x3268]
cmp eax, 0x90312
je 0x534f72
cmp eax, 0x80090318
je 0x534f72
cmp eax, 0x90320
jne 0x53548d
cmp dword [esi + 0x3270], ebx
je 0x534f81
cmp eax, 0x80090318
jne 0x534fdc
cmp dword [esi + 0x3274], ebx
je 0x534fd2
push 0x3c
push edi
mov ecx, esi
call fcn.004ea360
cmp eax, ebx
jne 0x5354c7
mov eax, dword [esi + 0x3270]
mov ecx, 0x10000
sub ecx, eax
push ebx
push ecx
mov ecx, dword [esi + 0x326c]
add eax, ecx
push eax
push edi
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x535184
cmp eax, ebx
je 0x535202
add dword [esi + 0x3270], eax
jmp 0x534fdc
mov dword [esi + 0x3274], 1
mov ecx, dword [esi + 0x3270]
lea eax, [esi + 0x322c]
mov dword [esi + 0x3228], eax
lea edi, [esi + 0x3250]
mov dword [eax], ecx
mov ecx, 2
mov dword [esi + 0x3230], ecx
mov dword [esi + 0x3224], ecx
mov dword [esi + 0x3254], ecx
lea eax, [esi + 0x3220]
lea ecx, [esi + 0x3244]
mov dword [esi + 0x3240], ebx
mov dword [esi + 0x3238], ebx
mov dword [esi + 0x323c], ebx
mov dword [eax], ebx
mov dword [esi + 0x3258], ebx
mov dword [edi], ebx
mov dword [ecx], ebx
lea ebx, [esi + 0x3260]
mov edx, dword [esi + 0x326c]
lea ebp, [esi + 0x325c]
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 + 0x3234], edx
mov edx, dword [esi + 0x80]
push ebx
push eax
push ecx
mov dword [esi + 0x3248], 1
mov dword [esi + 0x324c], edi
call dword [edx + 0x2d4]
cmp eax, ebx
mov dword [esi + 0x3268], eax
je 0x5350a3
cmp eax, 0x90312
je 0x5350a3
cmp eax, ebx
jge 0x5350ec
mov eax, dword [ebp]
test ah, 0x40
je 0x5350ec
mov edi, dword [edi]
cmp edi, ebx
je 0x5350ec
mov eax, dword [esi + 0x3258]
cmp eax, ebx
je 0x5350ec
push ebx
push edi
mov edi, dword [esp + 0x2c]
push eax
push edi
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
je 0x535263
cmp eax, ebx
je 0x535263
mov eax, dword [esi + 0x3258]
mov edx, dword [esi + 0x80]
push eax
call dword [edx + 0x2fc]
mov dword [esi + 0x3258], ebx
jmp 0x5350f0
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x3268]
cmp eax, 0x80090318
je 0x534f53
cmp eax, ebx
je 0x535300
jl 0x53541b
cmp eax, 0x90320
jne 0x53513c
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov ecx, esi
call fcn.005357c0
mov dword [esi + 0x3274], ebx
mov dword [esi + 0x3268], 0x90312
jmp 0x534f53
cmp dword [esi + 0x323c], 5
jne 0x535179
mov ecx, dword [esi + 0x326c]
mov eax, dword [esi + 0x3238]
mov edx, ecx
push eax
sub edx, eax
mov eax, dword [esi + 0x3270]
add edx, eax
push edx
push ecx
call fcn.0054ee90
mov eax, dword [esi + 0x3238]
add esp, 0xc
mov dword [esi + 0x3270], eax
jmp 0x534f53
mov dword [esi + 0x3270], ebx
jmp 0x534f53
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [0x639ad4]
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.00562ecb
mov eax, dword [esp + 0x30]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004e9e80
mov ecx, dword [esi + 0x80]
mov dword [esi + 0x3268], 0x80090304
mov eax, dword [0x63f1dc]
mov edx, dword [ecx]
lea ecx, [esp + 0x24]
push edx
push eax
push ecx
call fcn.00562ecb
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x6c]
add esp, 0xc
push edx
call fcn.004ec300
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
jmp 0x535488
push str.Server_unexpectedly_disconnected_n
mov ecx, esi
call fcn.004e9e80
mov dword [esi + 0x3268], 0x80090304
mov eax, dword [0x639ad4]
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0x80]
mov eax, dword [0x63f1dc]
mov dword [esp + 0x1c], 2
mov edx, dword [ecx]
lea ecx, [esp + 0x24]
push edx
push eax
push ecx
call fcn.00562ecb
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x6c]
add esp, 0xc
push edx
call fcn.004ec300
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
jmp 0x535488
call sub.WSOCK32.dll_WSAGetLastError
mov edi, eax
mov eax, dword [0x639ad4]
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.00562ecb
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ecx, esi
push edx
call fcn.004e9e80
mov eax, dword [esi + 0x80]
mov edx, dword [0x63f1dc]
mov ecx, dword [eax]
lea eax, [esp + 0x24]
push ecx
push edx
push eax
call fcn.00562ecb
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x6c]
call fcn.004ec300
mov eax, dword [esi + 0x3258]
mov edx, dword [esi + 0x80]
push eax
call dword [edx + 0x2fc]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x80]
push edx
call dword [ecx + 0x2e0]
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0056a100
mov eax, edi
jmp 0x5354c7
push str.Handshake_was_successful_n
mov ecx, esi
call fcn.004e9e80
mov eax, dword [esi + 0x323c]
mov ebp, 5
cmp eax, ebp
mov byte [esi + 0x3180], 1
jne 0x53540d
mov eax, dword [esi + 0x3238]
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 0x5353a2
push str.Out_of_memory__2__n
mov ecx, esi
call fcn.004e9e80
mov ecx, dword [0x639ad4]
mov dword [esp + 0x2c], ecx
mov edx, dword [esi + 0x80]
mov ecx, dword [0x63f1dc]
mov dword [esp + 0x1c], 4
mov eax, dword [edx]
lea edx, [esp + 0x2c]
push eax
push ecx
push edx
call fcn.00562ecb
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x6c]
add esp, 0xc
push eax
call fcn.004ec300
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0056a100
mov eax, 0x80090304
jmp 0x5354c7
mov ecx, dword [esi + 0x3238]
mov edx, dword [esi + 0x3270]
push ecx
sub edx, ecx
add edx, dword [esi + 0x326c]
push edx
push eax
call fcn.0054ee90
mov eax, dword [esi + 0x3238]
mov dword [edi + 4], 2
mov dword [edi], eax
mov ecx, dword [0x639ad4]
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.00562ecb
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004e9e80
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
jmp 0x535488
mov eax, dword [esp + 0x34]
mov dword [eax + 8], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x53548d
mov edx, dword [0x639ad4]
mov dword [esp + 0x28], edx
mov eax, dword [esi + 0x3268]
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.00562ecb
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, esi
push edx
call fcn.004e9e80
mov eax, dword [esi + 0x80]
mov edx, dword [0x63f1dc]
mov ecx, dword [eax]
lea eax, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00562ecb
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
mov ecx, dword [esi + 0x6c]
call fcn.004ec300
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.0056a100
cmp dword [esi + 0x3268], ebx
jge 0x5354a6
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x80]
push eax
call dword [edx + 0x2e0]
mov ecx, dword [esi + 0x326c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esi + 0x3268]
cmp esi, ebx
jge 0x5354c5
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x5354c7
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