Function at 0x585ef0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x693c00
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x78f694]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x48]
push str.processServerKeyExchange
push edi
lea ecx, [esp + 0x20]
call fcn.004b1850
mov esi, dword [esp + 0x40]
test esi, esi
mov dword [esp + 0x38], 0
je 0x5862f4
mov ebp, dword [esp + 0x44]
cmp ebp, 3
jb 0x5862f4
cmp dword [ebx + 0x3ac], 0
jne 0x585f96
cmp byte [edi + 0x122], 0
je 0x585f71
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push str.Need_to_get_SERVER_HELLO_from_incoming_queueu..
mov ecx, edi
call edx
push edi
mov ecx, ebx
call fcn.005839e0
test eax, eax
mov dword [ebx + 0x3ac], eax
jne 0x585f96
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.No_server_hello_received_yet.
mov ecx, edi
call edx
jmp 0x586302
mov ecx, ebx
call fcn.0057fd60
test al, al
je 0x586302
mov eax, dword [ebx + 0x7c]
push eax
mov ecx, ebx
call fcn.00580b30
mov eax, dword [ebx + 0x50]
cmp eax, 8
je 0x5862d3
cmp eax, 0xa
je 0x5862d3
cmp eax, 3
je 0x585fd9
cmp eax, 5
je 0x585fd9
push str.Unexpected_ServerKeyExchange_message.
jmp 0x5862f9
call fcn.00584290
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x48], ebx
je 0x586302
lea ecx, [esp + 0x24]
call fcn.0048eb70
mov dword [esp + 0x2c], ebx
xor ebx, ebx
cmp byte [edi + 0x122], 0
mov bh, byte [esi]
mov byte [esp + 0x38], 1
mov dword [esp + 0x44], esi
mov bl, byte [esi + 1]
je 0x58601f
push ebx
push str.dh_p_len
mov ecx, edi
call fcn.004b14c0
sub ebp, 2
add esi, 2
cmp ebp, ebx
jae 0x58604a
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.ServerKeyExchange_message_too_short
mov ecx, edi
call eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0
call fcn.0048ee60
jmp 0x586302
mov ecx, dword [esp + 0x48]
push ebx
add ecx, 0x50
push esi
call fcn.00469150
test al, al
je 0x586037
cmp byte [edi + 0x122], 0
je 0x58608b
mov ecx, dword [esp + 0x48]
add ecx, 0x50
call fcn.00544a30
mov ecx, dword [esp + 0x48]
push eax
add ecx, 0x50
call fcn.00467d80
push eax
push str.dh_p
mov ecx, edi
call fcn.004b0960
sub ebp, ebx
add esi, ebx
cmp ebp, 2
jb 0x586029
xor ebx, ebx
cmp byte [edi + 0x122], 0
mov bh, byte [esi]
mov bl, byte [esi + 1]
je 0x5860b1
push ebx
push str.dh_g_len
mov ecx, edi
call fcn.004b14c0
sub ebp, 2
add esi, 2
cmp ebp, ebx
jb 0x586029
mov ecx, dword [esp + 0x48]
push ebx
add ecx, 0x6c
push esi
mov dword [esp + 0x48], ecx
call fcn.00469150
test al, al
je 0x586037
cmp byte [edi + 0x122], 0
je 0x586102
mov ecx, dword [esp + 0x40]
call fcn.00544a30
mov ecx, dword [esp + 0x40]
push eax
call fcn.00467d80
push eax
push str.dh_g
mov ecx, edi
call fcn.004b0960
sub ebp, ebx
add esi, ebx
cmp ebp, 2
jb 0x586029
xor ebx, ebx
cmp byte [edi + 0x122], 0
mov bh, byte [esi]
mov bl, byte [esi + 1]
je 0x58612c
push ebx
push str.dh_Ys_len
mov ecx, edi
call fcn.004b14c0
sub ebp, 2
add esi, 2
cmp ebp, ebx
jb 0x586029
mov ecx, dword [esp + 0x48]
push ebx
add ecx, 0x88
push esi
call fcn.00469150
test al, al
je 0x586037
cmp byte [edi + 0x122], 0
je 0x586188
mov ecx, dword [esp + 0x48]
add ecx, 0x88
call fcn.00544a30
mov ecx, dword [esp + 0x48]
push eax
add ecx, 0x88
call fcn.00467d80
push eax
push str.dh_Ys
mov ecx, edi
call fcn.004b0960
mov eax, dword [esp + 0x44]
add esi, ebx
mov ecx, esi
sub ecx, eax
push ecx
sub ebp, ebx
mov ebx, dword [esp + 0x4c]
push eax
lea ecx, [ebx + 0x34]
call fcn.00469150
test al, al
je 0x586037
mov eax, dword [esp + 0x14]
mov ecx, 3
cmp dword [eax + 0x40], ecx
jne 0x58620a
cmp dword [eax + 0x44], ecx
jne 0x58620a
cmp ebp, 2
jb 0x586029
movzx ecx, byte [esi]
mov dword [ebx + 0x2c], ecx
movzx edx, byte [esi + 1]
mov dword [ebx + 0x30], edx
cmp byte [edi + 0x122], 0
je 0x586204
mov eax, ecx
push eax
push str.selectHashAlg
mov ecx, edi
call fcn.004b14c0
cmp byte [edi + 0x122], 0
je 0x586204
mov ecx, dword [ebx + 0x30]
push ecx
push str.selectSignAlg
mov ecx, edi
call fcn.004b14c0
add esi, 2
sub ebp, 2
xor ebx, ebx
cmp byte [edi + 0x122], 0
mov bh, byte [esi]
mov bl, byte [esi + 1]
je 0x586227
push ebx
push str.signatureLen
mov ecx, edi
call fcn.004b14c0
cmp ebp, 2
jb 0x586029
sub ebp, 2
add esi, 2
cmp ebx, ebp
je 0x586268
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.Invalid_signature_length.
mov ecx, edi
call eax
push ebp
push str.msgLen
mov ecx, edi
call fcn.004b14c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0
call fcn.0048ee60
jmp 0x586302
push ebp
push esi
mov esi, dword [esp + 0x50]
lea ecx, [esi + 0xa4]
call fcn.00469150
test al, al
je 0x586037
cmp byte [edi + 0x122], 0
mov dword [esp + 0x2c], 0
je 0x5862a0
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push str.Queueing_ServerKeyExchange_message.
mov ecx, edi
call eax
mov ecx, dword [esp + 0x14]
push esi
add ecx, 0x404
call fcn.004af0d0
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0
call fcn.0048ee60
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b18c0
mov al, 1
jmp 0x586315
push edi
push ebp
push esi
mov ecx, ebx
call fcn.00585b20
lea ecx, [esp + 0x18]
mov bl, al
mov dword [esp + 0x38], 0xffffffff
call fcn.004b18c0
mov al, bl
jmp 0x586315
push str.Invalid_ServerKeyExchange_message
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b18c0
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0xc