Function at 0x4bee35
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x623541
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
push edi
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x34], ecx
call fcn.0043e328
and dword [esp + 0xac], 0
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.0042dbd6
mov byte [esp + 0xac], 2
lea eax, [esp + 0x34]
push eax
call fcn.00441e67
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
call fcn.00403c2c
mov byte [esp + 0xac], 3
push 0x190
lea ecx, [esp + 0x18]
call fcn.0040987a
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 8]
lea esi, [esp + 0x3c]
mov dword [esp + 0x34], edi
call fcn.004475b7
mov eax, dword [eax + 0x6b4]
mov dword [esp + 0x10], eax
call fcn.004475b7
call fcn.0042d55a
mov esi, dword [eax + 8]
jmp 0x4bef28
mov eax, dword [ebx + 4]
sub eax, edi
add eax, dword [ebx + 8]
lea ecx, [esp + 0x34]
cdq
idiv esi
cmp edi, dword [esp + 0x10]
mov dword [esp + 0x48], edx
jl 0x4beefe
lea ecx, [esp + 0x10]
mov ecx, dword [ecx]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebx]
add ecx, eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x34]
add eax, 0x790
push eax
mov dword [esp + 0x4c], ecx
call fcn.004be45b
sub edi, dword [esp + 0x4c]
mov dword [esp + 0x34], edi
test edi, edi
jg 0x4beee1
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x2c8]
add eax, 0x9ac
mov dword [esp + 0x10], eax
mov eax, dword [eax + 0x58]
cmp eax, 4
je 0x4bef51
mov byte [esp + 0xf], 0
cmp eax, 5
jne 0x4bef56
mov byte [esp + 0xf], 1
push str.GET
lea ecx, [esp + 0x18]
call fcn.0040779a
cmp byte [esp + 0xf], 0
lea eax, [esi + 0x8f0]
jne 0x4bef77
lea eax, [esi + 0x8d4]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.0040787d
push str._info_hash
lea ecx, [esp + 0x18]
call fcn.0040779a
lea esi, [esp + 0x3c]
call fcn.004475b7
call fcn.0042d55a
lea ecx, [eax + 0xb8]
lea eax, [esp + 0x60]
push eax
call fcn.0043c495
pop ecx
mov byte [esp + 0xac], 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.0040787d
mov byte [esp + 0xac], 3
push 0
push 1
lea ecx, [esp + 0x68]
call fcn.00403b67
push str.piece
lea ecx, [esp + 0x18]
call fcn.0040779a
mov eax, dword [ebx]
cdq
push edx
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0043c323
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 + 0x18]
movsb byte es:[edi], byte [esi]
call fcn.0040779a
xor edi, edi
cmp dword [ebx + 4], edi
jg 0x4bf043
mov eax, dword [ebx]
lea esi, [esp + 0x3c]
mov dword [esp + 0x34], eax
call fcn.004475b7
call fcn.0042d55a
push dword [esp + 0x34]
add eax, 8
call fcn.0042ab5b
cmp dword [ebx + 8], eax
je 0x4bf0c2
push str.ranges
lea ecx, [esp + 0x18]
call fcn.0040779a
mov eax, dword [ebx + 4]
cdq
push edx
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0043c323
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 + 0x18]
movsb byte es:[edi], byte [esi]
call fcn.0040779a
push 0x68b524
lea ecx, [esp + 0x18]
call fcn.0040779a
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
lea eax, [eax + ecx - 1]
cdq
push edx
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0043c323
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 + 0x18]
movsb byte es:[edi], byte [esi]
call fcn.0040779a
xor edi, edi
push str._HTTP_1.1_r_n
lea ecx, [esp + 0x18]
call fcn.0040779a
push str.Host:
lea ecx, [esp + 0x18]
call fcn.0040779a
mov esi, dword [esp + 0x30]
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x8b4]
push eax
lea ecx, [esp + 0x20]
call fcn.0040787d
cmp byte [esi + 0x90c], 0
je 0x4bf124
push str._r_nUser_Agent:
lea ecx, [esp + 0x18]
call fcn.0040779a
mov eax, dword [esi + 0x2c8]
push 0xffffffffffffffff
add eax, 0x7d4
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.0040787d
cmp dword [esi + 0x8ac], edi
je 0x4bf14d
push str._r_nAuthorization:_Basic
lea ecx, [esp + 0x18]
call fcn.0040779a
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x898]
push eax
lea ecx, [esp + 0x20]
call fcn.0040787d
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x58], 5
jne 0x4bf205
push str._r_nProxy_Authorization:_Basic
lea ecx, [esp + 0x18]
call fcn.0040779a
push 0x6833ac
lea eax, [ebx + 0x20]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00411fda
add esp, 0xc
mov byte [esp + 0xac], 5
add ebx, 0x3c
push ebx
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00417520
add esp, 0xc
mov byte [esp + 0xac], 6
push eax
lea eax, [esp + 0x64]
push eax
call fcn.0043c8e2
pop ecx
pop ecx
mov byte [esp + 0xac], 7
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.0040787d
mov byte [esp + 0xac], 6
push edi
push 1
lea ecx, [esp + 0x68]
call fcn.00403b67
mov byte [esp + 0xac], 5
push edi
push 1
lea ecx, [esp + 0x4c]
call fcn.00403b67
mov byte [esp + 0xac], 3
push edi
push 1
lea ecx, [esp + 0x8c]
call fcn.00403b67
cmp byte [esp + 0xf], 0
je 0x4bf21a
push str._r_nProxy_Connection:_keep_alive
lea ecx, [esp + 0x18]
call fcn.0040779a
cmp byte [esi + 0x90c], 0
jne 0x4bf22a
cmp byte [esp + 0xf], 0
je 0x4bf238
push str._r_nConnection:_keep_alive
lea ecx, [esp + 0x18]
call fcn.0040779a
push str._r_n_r_n
lea ecx, [esp + 0x18]
call fcn.0040779a
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
mov byte [esi + 0x90c], 0
jae 0x4bf25c
lea eax, [esp + 0x18]
mov edx, dword [esi]
push 1
push dword [esp + 0x2c]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov byte [esp + 0xac], 2
push edi
push 1
lea ecx, [esp + 0x1c]
call fcn.00403b67
or dword [esp + 0xac], 0xffffffff
lea eax, [esp + 0x3c]
push eax
call fcn.00430065
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4