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

Disassembly:
push 0xffffffffffffffff
push 0x60b6b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x10000
mov esi, ecx
push ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebp
mov dword [esi + 0x3424], eax
jne 0x5a844a
push str.Out_of_memory__1__n
mov ecx, esi
call fcn.00532b50
mov eax, dword [0x6c826c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x20], ebp
cmp eax, ebp
mov ebx, 1
jne 0x5a83f4
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
push edx
call fcn.005df2d4
mov dword [esp + 0x10], ebx
mov byte [esp + 0x20], bl
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [0x6cddc0]
push eax
push ecx
call fcn.005d809b
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x20], ebp
je 0x5a841f
lea ecx, [esp + 0x28]
call fcn.005df266
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.0053a7e0
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.005df266
mov eax, 0x80090304
jmp 0x5a8ba4
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
mov dword [esi + 0x3428], ebp
mov dword [esi + 0x342c], eax
mov dword [esi + 0x3420], 0x90312
mov ebx, 2
jmp 0x5a8476
mov ebx, 2
xor ebp, ebp
mov eax, dword [esi + 0x3420]
cmp eax, 0x90312
je 0x5a8495
cmp eax, 0x80090318
je 0x5a8495
cmp eax, 0x90320
jne 0x5a8b6a
cmp dword [esi + 0x3428], ebp
je 0x5a84a4
cmp eax, 0x80090318
jne 0x5a8501
cmp dword [esi + 0x342c], ebp
je 0x5a84f7
push 0x3c
push edi
mov ecx, esi
call fcn.00533ee0
cmp eax, ebp
jne 0x5a8ba4
mov eax, dword [esi + 0x3428]
mov edx, dword [esi + 0x3424]
mov ecx, 0x10000
push ebp
sub ecx, eax
add eax, edx
push ecx
push eax
push edi
call sub.WS2_32.dll_recv
or edi, 0xffffffff
cmp eax, edi
je 0x5a86a7
cmp eax, ebp
je 0x5a879c
add dword [esi + 0x3428], eax
jmp 0x5a8501
mov dword [esi + 0x342c], 1
mov ecx, dword [esi + 0x3428]
lea eax, [esi + 0x33e0]
mov dword [esi + 0x33dc], eax
lea edi, [esi + 0x3404]
mov dword [eax], ecx
lea eax, [esi + 0x33d4]
lea ecx, [esi + 0x33f8]
mov dword [esi + 0x33e4], ebx
mov dword [esi + 0x33d8], ebx
mov dword [esi + 0x3408], ebx
mov dword [esi + 0x33f4], ebp
mov dword [esi + 0x33ec], ebp
mov dword [esi + 0x33f0], ebp
mov dword [eax], ebp
mov dword [esi + 0x340c], ebp
mov dword [edi], ebp
mov dword [ecx], ebp
lea ebx, [esi + 0x3418]
mov edx, dword [esi + 0x3424]
lea ebp, [esi + 0x3410]
push ebx
push ebp
mov ebx, dword [esp + 0x34]
push ecx
push 0
push 0
push eax
mov eax, dword [esp + 0x48]
push 0x10
push 0
push 0xc11c
mov dword [esi + 0x33e8], edx
mov edx, dword [esi + 0xb0]
push 0
push eax
push ebx
mov dword [esi + 0x33fc], 1
mov dword [esi + 0x3400], edi
call dword [edx + 0x3ac]
test eax, eax
mov dword [esi + 0x3420], eax
je 0x5a85c5
cmp eax, 0x90312
je 0x5a85c5
test eax, eax
jge 0x5a8613
mov eax, dword [ebp]
test ah, 0x40
je 0x5a8613
mov edi, dword [edi]
test edi, edi
je 0x5a8613
mov eax, dword [esi + 0x340c]
test eax, eax
je 0x5a8613
push 0
push edi
mov edi, dword [esp + 0x30]
push eax
push edi
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x5a8838
test eax, eax
je 0x5a8838
mov edx, dword [esi + 0x340c]
mov ecx, dword [esi + 0xb0]
push edx
call dword [ecx + 0x3d4]
mov dword [esi + 0x340c], 0
jmp 0x5a8617
mov edi, dword [esp + 0x28]
mov eax, dword [esi + 0x3420]
cmp eax, 0x80090318
je 0x5a846f
xor ebp, ebp
cmp eax, ebp
je 0x5a8912
jl 0x5a8a73
cmp eax, 0x90320
jne 0x5a8661
mov eax, dword [esp + 0x30]
mov ecx, esi
push eax
push ebx
call fcn.005a8ea0
mov dword [esi + 0x342c], ebp
mov dword [esi + 0x3420], 0x90312
jmp 0x5a846f
cmp dword [esi + 0x33f0], 5
jne 0x5a869c
mov eax, dword [esi + 0x33ec]
mov edx, dword [esi + 0x3428]
mov ecx, dword [esi + 0x3424]
sub edx, eax
add edx, ecx
push eax
push edx
push ecx
call fcn.005c3cd0
mov eax, dword [esi + 0x33ec]
add esp, 0xc
mov dword [esi + 0x3428], eax
jmp 0x5a846f
mov dword [esi + 0x3428], ebp
jmp 0x5a846f
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [0x6c826c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
push eax
lea edx, [esp + 0x2c]
push str.Error__d_reading_data_from_server_n
push edx
mov dword [esp + 0x2c], ebx
call fcn.005d809b
mov eax, dword [esp + 0x34]
add esp, 0xc
mov ecx, esi
push eax
call fcn.00532b50
mov eax, dword [esi + 0xb0]
mov cl, byte [eax + 0x150]
test cl, cl
jne 0x5a8721
mov cl, byte [eax + 0x2f2]
test cl, cl
jne 0x5a8721
push str.Try_SSL3_only_r_n
mov ecx, esi
mov byte [eax + 0x150], 1
call fcn.00532b50
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
call fcn.005df266
mov eax, 0x757e
jmp 0x5a8ba4
mov ecx, dword [esi + 0xb4]
mov dword [esi + 0x3420], 0x80090304
cmp ecx, ebp
je 0x5a8739
mov eax, dword [ecx]
jmp 0x5a8750
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x3c]
call fcn.005df2d4
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
mov byte [esp + 0x20], 3
mov edx, dword [0x6cddc0]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.005d809b
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x20], ebx
je 0x5a877a
lea ecx, [esp + 0x38]
call fcn.005df266
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.0053a7e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
call fcn.005df266
jmp 0x5a8b6a
push str.Server_unexpectedly_disconnected_n
mov ecx, esi
call fcn.00532b50
mov dword [esi + 0x3420], 0x80090304
mov edx, dword [0x6c826c]
mov dword [esp + 0x28], edx
mov eax, dword [esi + 0xb4]
mov ebx, 4
cmp eax, ebp
mov dword [esp + 0x20], ebx
jne 0x5a87ea
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x3c]
call fcn.005df2d4
mov dword [esp + 0x10], ebx
mov byte [esp + 0x20], 5
mov eax, dword [eax]
mov edx, dword [0x6cddc0]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.005d809b
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x20], ebx
je 0x5a8816
lea ecx, [esp + 0x38]
call fcn.005df266
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.0053a7e0
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edi
call fcn.005df266
jmp 0x5a8b6a
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [0x6c826c]
mov edi, eax
mov dword [esp + 0x28], edx
push edi
lea eax, [esp + 0x2c]
mov ebx, 6
push str.Error__d_sending_data_to_server__2__n
push eax
mov dword [esp + 0x2c], ebx
call fcn.005d809b
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00532b50
mov eax, dword [esi + 0xb4]
test eax, eax
jne 0x5a889a
mov edx, dword [esi + 0xb0]
lea ecx, [esp + 0x38]
mov eax, dword [edx]
push eax
call fcn.005df2d4
mov dword [esp + 0x10], 8
mov byte [esp + 0x20], 7
mov eax, dword [eax]
mov ecx, dword [0x6cddc0]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.005d809b
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 8
mov dword [esp + 0x20], ebx
je 0x5a88c6
lea ecx, [esp + 0x38]
call fcn.005df266
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.0053a7e0
mov edx, dword [esi + 0x340c]
mov ecx, dword [esi + 0xb0]
push edx
call dword [ecx + 0x3d4]
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0xb0]
push ecx
call dword [eax + 0x3b8]
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.005df266
mov eax, edi
jmp 0x5a8ba4
push str.Handshake_was_successful_n
mov ecx, esi
call fcn.00532b50
mov eax, dword [esi + 0x33f0]
mov byte [esi + 0x32fc], 1
cmp eax, 5
jne 0x5a8a62
mov edx, dword [esi + 0x33ec]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [esp + 0x38]
cmp eax, ebp
mov dword [edi + 8], eax
jne 0x5a89ee
push str.Out_of_memory__2__n
mov ecx, esi
call fcn.00532b50
mov eax, dword [0x6c826c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xb4]
mov edi, 8
cmp eax, ebp
mov dword [esp + 0x20], edi
jne 0x5a8998
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx]
lea ecx, [esp + 0x38]
push edx
call fcn.005df2d4
mov dword [esp + 0x10], 0x10
mov byte [esp + 0x20], 9
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [0x6cddc0]
push eax
push ecx
call fcn.005d809b
mov al, byte [esp + 0x1c]
add esp, 0xc
test al, 0x10
mov dword [esp + 0x20], edi
je 0x5a89c3
lea ecx, [esp + 0x38]
call fcn.005df266
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.0053a7e0
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call fcn.005df266
mov eax, 0x80090304
jmp 0x5a8ba4
mov ecx, dword [esi + 0x33ec]
mov edx, dword [esi + 0x3428]
mov ebp, dword [esi + 0x3424]
sub edx, ecx
add edx, ebp
push ecx
push edx
push eax
call fcn.005c3cd0
mov eax, dword [esi + 0x33ec]
mov dword [edi + 4], 2
mov dword [edi], eax
mov ecx, dword [0x6c826c]
add esp, 0xc
mov dword [esp + 0x28], ecx
mov edx, eax
lea eax, [esp + 0x28]
push edx
push str._d_bytes_of_app_data_was_bundled_with_handshake_data_n
push eax
mov dword [esp + 0x2c], 0xa
call fcn.005d809b
mov ecx, dword [esp + 0x34]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00532b50
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
jmp 0x5a8b63
mov eax, dword [esp + 0x38]
mov dword [eax + 8], ebp
mov dword [eax], ebp
mov dword [eax + 4], ebp
jmp 0x5a8b68
mov edx, dword [0x6c826c]
mov dword [esp + 0x38], edx
mov eax, dword [esi + 0x3420]
lea ecx, [esp + 0x38]
push eax
mov edi, 0xb
push str.Error_0x_x_returned_by_InitializeSecurityContext__2__n
push ecx
mov dword [esp + 0x2c], edi
call fcn.005d809b
mov edx, dword [esp + 0x44]
add esp, 0xc
mov ecx, esi
push edx
call fcn.00532b50
mov eax, dword [esi + 0xb0]
mov cl, byte [eax + 0x150]
test cl, cl
jne 0x5a8af3
mov cl, byte [eax + 0x2f2]
test cl, cl
jne 0x5a8af3
push str.Try_SSL3_only_r_n
mov ecx, esi
mov byte [eax + 0x150], 1
call fcn.00532b50
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], 0xffffffff
call fcn.005df266
mov eax, 0x757e
jmp 0x5a8ba4
mov ecx, dword [esi + 0xb4]
mov ebx, 0x20
cmp ecx, ebp
je 0x5a8b06
mov eax, dword [ecx]
jmp 0x5a8b1d
mov eax, dword [eax]
lea ecx, [esp + 0x34]
push eax
call fcn.005df2d4
mov dword [esp + 0x10], ebx
mov eax, dword [eax]
mov byte [esp + 0x20], 0xc
mov ecx, dword [0x6cddc0]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call fcn.005d809b
mov al, byte [esp + 0x1c]
add esp, 0xc
test bl, al
mov dword [esp + 0x20], edi
je 0x5a8b47
lea ecx, [esp + 0x34]
call fcn.005df266
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.0053a7e0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.005df266
xor ebp, ebp
cmp dword [esi + 0x3420], ebp
jge 0x5a8b83
mov edx, dword [esp + 0x30]
mov ecx, dword [esi + 0xb0]
push edx
call dword [ecx + 0x3b8]
mov eax, dword [esi + 0x3424]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esi + 0x3420]
cmp esi, ebp
jge 0x5a8ba2
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x5a8ba4
mov eax, esi
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14