Function at 0x4ae860
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x633f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x978
push ebx
push esi
push edi
push 0xf
pop esi
mov dword [esp + 0xc], ecx
xor ebx, ebx
push ebx
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], esi
call fcn.00401e8e
mov dword [esp + 0x98c], ebx
push ebx
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb4], esi
call fcn.00401e8e
mov byte [esp + 0x98c], 1
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], esi
call fcn.00401e8e
mov byte [esp + 0x98c], 2
push ebx
lea ecx, [esp + 0x80]
mov dword [esp + 0x98], esi
call fcn.00401e8e
mov byte [esp + 0x98c], 3
mov dword [esp + 0x10], ebx
call fcn.005dcfc0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push dword [ebp + 8]
call fcn.004018b0
mov byte [esp + 0x9ac], 4
lea eax, [esp + 0x12c]
push eax
mov byte [esp + 0x9b0], 3
call fcn.00466849
add esp, 0x24
mov byte [esp + 0x98c], 5
lea ecx, [esp + 0x60]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x98]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x7c]
lea esi, [esp + 0x44]
mov dword [esp + 0x54], ecx
call fcn.00420788
mov byte [esp + 0x98c], 3
lea eax, [esp + 0x10c]
push eax
call fcn.00420393
mov edi, str.https
push edi
lea esi, [esp + 0x64]
call fcn.00419bf5
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x16b
add eax, 0x50
pop ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call fcn.004b080b
mov byte [esp + 0x98c], 6
push str.http
call fcn.00419bf5
pop ecx
test al, al
jne 0x4aea5c
call fcn.004158a0
push 0x18
pop ecx
sub esp, 0x20
mov edi, esp
mov dword [esp + 0x38], esp
push eax
push ecx
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x40], esp
lea ecx, [esp + 0x50]
push ecx
push eax
mov esi, fcn.004afd1f
call fcn.00427ec7
mov byte [esp + 0x9bc], 7
xor eax, eax
push eax
push esi
push ebx
push ebx
push edi
mov byte [esp + 0x9d0], 6
call fcn.004b09a6
add esp, 0x24
mov byte [esp + 0x9ac], 8
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 0xc]
push eax
mov byte [esp + 0x9b0], 6
call fcn.004b0a57
mov byte [esp + 0x98c], 3
lea eax, [esp + 0x20]
push eax
call fcn.0047decf
mov byte [esp + 0x98c], 2
xor esi, esi
inc esi
jmp 0x4aee10
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
test eax, fcn.00473f58
je 0x4aeac0
sub esp, 0x20
mov edi, esp
mov dword [esp + 0x38], esp
push dword [esp + 0x34]
mov esi, fcn.004afd1f
push dword [esp + 0x34]
push ecx
push ecx
mov eax, esp
mov dword [esp + 0x40], esp
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.00427ec7
mov byte [esp + 0x9bc], 9
xor eax, eax
push eax
push esi
push ebx
push ebx
push edi
mov byte [esp + 0x9d0], 6
call fcn.004b09a6
add esp, 0x24
mov byte [esp + 0x9ac], 0xa
jmp 0x4aea22
push edi
lea esi, [esp + 0x64]
mov byte [esp + 0x14], bl
call fcn.00419bf5
pop ecx
test al, al
je 0x4aead8
mov byte [esp + 0x10], 1
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x4aec10
mov eax, dword [eax + 0x58]
cmp eax, 4
je 0x4aeaf4
cmp eax, 5
jne 0x4aec10
cmp byte [esp + 0x10], bl
jne 0x4aec10
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x4aeb0c
mov eax, dword [eax + 4]
jmp 0x4aeb0f
add eax, 4
push eax
push str.GET__s_HTTP_1.0_r_n
mov esi, 0x800
lea edi, [esp + 0x188]
call fcn.004208ad
mov esi, dword [ebp + 0x18]
cmp dword [esi + 0x58], 5
pop ecx
pop ecx
lea edi, [esp + eax + 0x180]
jne 0x4aebfa
push 0x68858c
lea eax, [esi + 0x20]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0040f010
add esp, 0xc
mov byte [esp + 0x98c], 0xb
add esi, 0x3c
push esi
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.00409fa7
add esp, 0xc
mov byte [esp + 0x98c], 0xc
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.0042048a
pop ecx
pop ecx
mov byte [esp + 0x98c], 0xd
cmp dword [eax + 0x18], 0x10
jb 0x4aeb9a
mov eax, dword [eax + 4]
jmp 0x4aeb9d
add eax, 4
push eax
lea esi, [esp + 0x984]
push str.Proxy_Authorization:_Basic__s_r_n
sub esi, edi
call fcn.004208ad
pop ecx
pop ecx
add edi, eax
mov byte [esp + 0x98c], 0xc
push ebx
push 1
lea ecx, [esp + 0xbc]
call fcn.00401ac6
mov byte [esp + 0x98c], 0xb
push ebx
push 1
lea ecx, [esp + 0xd8]
call fcn.00401ac6
mov byte [esp + 0x98c], 6
push ebx
push 1
lea ecx, [esp + 0x4c]
call fcn.00401ac6
mov esi, dword [ebp + 0x18]
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0x34]
call fcn.00401a17
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
jmp 0x4aec87
cmp dword [esp + 0x40], 0x10
mov ecx, dword [esp + 0x2c]
jae 0x4aec1f
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x94], 0x10
mov eax, dword [esp + 0x80]
jae 0x4aec37
lea eax, [esp + 0x80]
push ecx
push eax
push str.GET__s_HTTP_1.0_r_nHost:__s
mov esi, 0x800
lea edi, [esp + 0x18c]
call fcn.004208ad
lea edi, [esp + eax + 0x18c]
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x98c]
add esp, 0xc
sub esi, edi
cmp eax, dword [esp + 0x18]
je 0x4aec7a
push eax
push str.:_d_r_n
call fcn.004208ad
pop ecx
jmp 0x4aec84
push 0x6867f4
call fcn.004208ad
add edi, eax
pop ecx
cmp dword [esp + 0xac], ebx
je 0x4aecec
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.0042048a
pop ecx
pop ecx
mov byte [esp + 0x98c], 0xe
cmp dword [eax + 0x18], 0x10
jb 0x4aecba
mov eax, dword [eax + 4]
jmp 0x4aecbd
add eax, 4
push eax
lea esi, [esp + 0x984]
push str.Authorization:_Basic__s_r_n
sub esi, edi
call fcn.004208ad
pop ecx
pop ecx
add edi, eax
mov byte [esp + 0x98c], 6
push ebx
push 1
lea ecx, [esp + 0xf8]
call fcn.00401ac6
mov eax, dword [ebp + 0x20]
cmp dword [eax + 0x14], ebx
je 0x4aed1a
cmp dword [eax + 0x18], 0x10
jb 0x4aecff
mov eax, dword [eax + 4]
jmp 0x4aed02
add eax, 4
push eax
lea esi, [esp + 0x984]
push str.User_Agent:__s_r_n
sub esi, edi
call fcn.004208ad
pop ecx
pop ecx
add edi, eax
mov eax, dword [esp + 0xc]
cmp byte [eax + 0x1a8], bl
je 0x4aed3c
lea esi, [esp + 0x980]
push str.Accept_Encoding:_gzip_r_n
sub esi, edi
call fcn.004208ad
pop ecx
add edi, eax
lea esi, [esp + 0x980]
push str.Connection:_close_r_n_r_n
sub esi, edi
call fcn.004208ad
mov esi, dword [esp + 0x10]
pop ecx
lea eax, [esp + 0x180]
push eax
lea ecx, [esi + 8]
call fcn.00401aa9
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
lea ecx, [esi + 0x1e4]
call fcn.00401a17
mov eax, dword [esp + 0x1c]
cdq
push edx
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.0041fecb
add esp, 0xc
push 5
pop ecx
mov esi, eax
lea edi, [esp + 0x44]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0xb8]
movsb byte es:[edi], byte [esi]
call fcn.0040188e
mov byte [esp + 0x98c], 0xf
push dword [ebp + 0x10]
lea eax, [esp + 0xb8]
push dword [ebp + 0xc]
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
push dword [esp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x30]
call fcn.004aee94
mov byte [esp + 0x98c], 6
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0xbc]
call fcn.00401ac6
mov byte [esp + 0x98c], 3
lea eax, [esp + 0x20]
push eax
call fcn.0047decf
mov byte [esp + 0x98c], 2
push ebx
push esi
lea ecx, [esp + 0x84]
call fcn.00401ac6
mov byte [esp + 0x98c], 1
push ebx
push esi
lea ecx, [esp + 0x30]
call fcn.00401ac6
mov byte [esp + 0x98c], bl
push ebx
push esi
lea ecx, [esp + 0xa0]
call fcn.00401ac6
or dword [esp + 0x98c], 0xffffffff
push ebx
push esi
lea ecx, [esp + 0x68]
call fcn.00401ac6
mov ecx, dword [esp + 0x984]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x20