Function at 0x4c5750
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x57bfa0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x641030]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov edi, dword [esp + 0x48]
push str.processServerKeyExchange
push edi
lea ecx, [esp + 0x20]
call fcn.00437740
mov esi, dword [esp + 0x40]
mov dword [esp + 0x38], 0
test esi, esi
je 0x4c5b87
mov ebx, dword [esp + 0x44]
cmp ebx, 3
jb 0x4c5b87
cmp dword [ebp + 0x3a8], 0
jne 0x4c57ed
cmp byte [edi + 0x122], 0
je 0x4c57d1
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, ebp
call fcn.004c3210
mov dword [ebp + 0x3a8], eax
test eax, eax
jne 0x4c57ed
push str.No_server_hello_received_yet.
jmp 0x4c5b8c
mov ecx, ebp
call fcn.004bf5b0
test al, al
je 0x4c5b95
mov eax, dword [ebp + 0x78]
push eax
mov ecx, ebp
call fcn.004c0370
mov eax, dword [ebp + 0x4c]
cmp eax, 8
je 0x4c5b66
cmp eax, 0xa
je 0x4c5b66
cmp eax, 3
je 0x4c5839
cmp eax, 5
je 0x4c5839
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
push str.Unexpected_ServerKeyExchange_message.
mov ecx, edi
call eax
jmp 0x4c5b95
call fcn.004c3ac0
mov ebp, eax
mov dword [esp + 0x48], ebp
test ebp, ebp
je 0x4c5b95
lea ecx, [esp + 0x24]
call fcn.00412830
movzx ecx, byte [esi + 1]
mov dword [esp + 0x2c], ebp
movzx ebp, byte [esi]
shl ebp, 8
or ebp, ecx
cmp byte [edi + 0x122], 0
mov byte [esp + 0x38], 1
mov dword [esp + 0x40], esi
je 0x4c5884
push ebp
push str.dh_p_len
mov ecx, edi
call fcn.004373b0
sub ebx, 2
add esi, 2
cmp ebx, ebp
jae 0x4c58af
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.00412a90
jmp 0x4c5b95
mov ecx, dword [esp + 0x48]
push ebp
add ecx, 0x50
push esi
call fcn.00448260
test al, al
je 0x4c589c
cmp byte [edi + 0x122], 0
je 0x4c58f0
mov ecx, dword [esp + 0x48]
add ecx, 0x50
call fcn.0051d090
mov ecx, dword [esp + 0x48]
push eax
add ecx, 0x50
call fcn.00446f60
push eax
push str.dh_p
mov ecx, edi
call fcn.00436910
sub ebx, ebp
add esi, ebp
cmp ebx, 2
jb 0x4c588e
movzx ebp, byte [esi]
movzx ecx, byte [esi + 1]
shl ebp, 8
or ebp, ecx
cmp byte [edi + 0x122], 0
je 0x4c591b
push ebp
push str.dh_g_len
mov ecx, edi
call fcn.004373b0
sub ebx, 2
add esi, 2
cmp ebx, ebp
jb 0x4c588e
mov ecx, dword [esp + 0x48]
push ebp
add ecx, 0x6c
push esi
call fcn.00448260
test al, al
je 0x4c589c
cmp byte [edi + 0x122], 0
je 0x4c596e
mov ecx, dword [esp + 0x48]
add ecx, 0x6c
call fcn.0051d090
mov ecx, dword [esp + 0x48]
push eax
add ecx, 0x6c
call fcn.00446f60
push eax
push str.dh_g
mov ecx, edi
call fcn.00436910
sub ebx, ebp
add esi, ebp
cmp ebx, 2
jb 0x4c588e
movzx ebp, byte [esi]
movzx ecx, byte [esi + 1]
shl ebp, 8
or ebp, ecx
cmp byte [edi + 0x122], 0
je 0x4c599d
push ebp
push str.dh_Ys_len
mov ecx, edi
call fcn.004373b0
sub ebx, 2
add esi, 2
cmp ebx, ebp
jb 0x4c588e
mov ecx, dword [esp + 0x48]
push ebp
add ecx, 0x88
push esi
call fcn.00448260
test al, al
je 0x4c589c
cmp byte [edi + 0x122], 0
je 0x4c59f9
mov ecx, dword [esp + 0x48]
add ecx, 0x88
call fcn.0051d090
mov ecx, dword [esp + 0x48]
push eax
add ecx, 0x88
call fcn.00446f60
push eax
push str.dh_Ys
mov ecx, edi
call fcn.00436910
mov eax, dword [esp + 0x40]
add esi, ebp
mov ecx, esi
sub ecx, eax
push ecx
sub ebx, ebp
mov ebp, dword [esp + 0x4c]
push eax
lea ecx, [ebp + 0x34]
call fcn.00448260
test al, al
je 0x4c589c
mov eax, dword [esp + 0x14]
mov ecx, 3
cmp dword [eax + 0x3c], ecx
jne 0x4c5a7b
cmp dword [eax + 0x40], ecx
jne 0x4c5a7b
cmp ebx, 2
jb 0x4c588e
movzx ecx, byte [esi]
mov dword [ebp + 0x2c], ecx
movzx edx, byte [esi + 1]
mov dword [ebp + 0x30], edx
cmp byte [edi + 0x122], 0
je 0x4c5a75
mov eax, ecx
push eax
push str.selectHashAlg
mov ecx, edi
call fcn.004373b0
cmp byte [edi + 0x122], 0
je 0x4c5a75
mov ecx, dword [ebp + 0x30]
push ecx
push str.selectSignAlg
mov ecx, edi
call fcn.004373b0
add esi, 2
sub ebx, 2
movzx ebp, byte [esi]
movzx edx, byte [esi + 1]
shl ebp, 8
or ebp, edx
cmp byte [edi + 0x122], 0
je 0x4c5a9d
push ebp
push str.signatureLen
mov ecx, edi
call fcn.004373b0
cmp ebx, 2
jae 0x4c5ac3
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.ServerKeyExchange_message_too_short
mov ecx, edi
call edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0
call fcn.00412a90
jmp 0x4c5b95
sub ebx, 2
add esi, 2
cmp ebp, ebx
je 0x4c5afb
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
push str.Invalid_signature_length.
mov ecx, edi
call edx
push ebx
push str.msgLen
mov ecx, edi
call fcn.004373b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0
call fcn.00412a90
jmp 0x4c5b95
push ebx
push esi
mov esi, dword [esp + 0x50]
lea ecx, [esi + 0xa4]
call fcn.00448260
test al, al
je 0x4c589c
cmp byte [edi + 0x122], 0
mov dword [esp + 0x2c], 0
je 0x4c5b33
mov eax, dword [edi]
mov edx, dword [eax + 0x18]
push str.Queueing_ServerKeyExchange_message.
mov ecx, edi
call edx
mov ecx, dword [esp + 0x14]
push esi
add ecx, 0x400
call fcn.0044f080
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 0
call fcn.00412a90
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.004377b0
mov al, 1
jmp 0x4c5ba8
push edi
push ebx
push esi
mov ecx, ebp
call fcn.004c5370
lea ecx, [esp + 0x18]
mov bl, al
mov dword [esp + 0x38], 0xffffffff
call fcn.004377b0
mov al, bl
jmp 0x4c5ba8
push str.Invalid_ServerKeyExchange_message
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0xffffffff
call fcn.004377b0
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