Function at 0x4bef58
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x625e11
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.0043e386
and dword [esp + 0xac], 0
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.0042dd65
mov byte [esp + 0xac], 2
lea eax, [esp + 0x34]
push eax
call fcn.0044fb33
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
call fcn.00403827
mov byte [esp + 0xac], 3
push 0x190
lea ecx, [esp + 0x18]
call fcn.0040940e
mov ebx, dword [ebp + 8]
mov edi, dword [ebx + 8]
lea esi, [esp + 0x3c]
mov dword [esp + 0x34], edi
call fcn.0046edc2
mov eax, dword [eax + 0x6b4]
mov dword [esp + 0x10], eax
call fcn.0046edc2
call fcn.0042d6e9
mov esi, dword [eax + 8]
jmp 0x4bf04b
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 0x4bf021
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.004be4e7
sub edi, dword [esp + 0x4c]
mov dword [esp + 0x34], edi
test edi, edi
jg 0x4bf004
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 0x4bf074
mov byte [esp + 0xf], 0
cmp eax, 5
jne 0x4bf079
mov byte [esp + 0xf], 1
push str.GET
lea ecx, [esp + 0x18]
call fcn.00407288
cmp byte [esp + 0xf], 0
lea eax, [esi + 0x8f0]
jne 0x4bf09a
lea eax, [esi + 0x8d4]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00407386
push str._info_hash
lea ecx, [esp + 0x18]
call fcn.00407288
lea esi, [esp + 0x3c]
call fcn.0046edc2
call fcn.0042d6e9
lea ecx, [eax + 0xb8]
lea eax, [esp + 0x60]
push eax
call fcn.0043c30b
pop ecx
mov byte [esp + 0xac], 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00407386
mov byte [esp + 0xac], 3
push 0
push 1
lea ecx, [esp + 0x68]
call fcn.00403762
push str.piece
lea ecx, [esp + 0x18]
call fcn.00407288
mov eax, dword [ebx]
cdq
push edx
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0043c199
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.00407288
xor edi, edi
cmp dword [ebx + 4], edi
jg 0x4bf166
mov eax, dword [ebx]
lea esi, [esp + 0x3c]
mov dword [esp + 0x34], eax
call fcn.0046edc2
call fcn.0042d6e9
push dword [esp + 0x34]
add eax, 8
call fcn.0042ac95
cmp dword [ebx + 8], eax
je 0x4bf1e5
push str.ranges
lea ecx, [esp + 0x18]
call fcn.00407288
mov eax, dword [ebx + 4]
cdq
push edx
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0043c199
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.00407288
push 0x68d63c
lea ecx, [esp + 0x18]
call fcn.00407288
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.0043c199
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.00407288
xor edi, edi
push str._HTTP_1.1_r_n
lea ecx, [esp + 0x18]
call fcn.00407288
push str.Host:
lea ecx, [esp + 0x18]
call fcn.00407288
mov esi, dword [esp + 0x30]
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x8b4]
push eax
lea ecx, [esp + 0x20]
call fcn.00407386
cmp byte [esi + 0x90c], 0
je 0x4bf247
push str._r_nUser_Agent:
lea ecx, [esp + 0x18]
call fcn.00407288
mov eax, dword [esi + 0x2c8]
push 0xffffffffffffffff
add eax, 0x7d4
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00407386
cmp dword [esi + 0x8ac], edi
je 0x4bf270
push str._r_nAuthorization:_Basic
lea ecx, [esp + 0x18]
call fcn.00407288
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x898]
push eax
lea ecx, [esp + 0x20]
call fcn.00407386
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x58], 5
jne 0x4bf328
push str._r_nProxy_Authorization:_Basic
lea ecx, [esp + 0x18]
call fcn.00407288
push 0x6854b4
lea eax, [ebx + 0x20]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.00411b46
add esp, 0xc
mov byte [esp + 0xac], 5
add ebx, 0x3c
push ebx
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00417051
add esp, 0xc
mov byte [esp + 0xac], 6
push eax
lea eax, [esp + 0x64]
push eax
call fcn.0043c758
pop ecx
pop ecx
mov byte [esp + 0xac], 7
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00407386
mov byte [esp + 0xac], 6
push edi
push 1
lea ecx, [esp + 0x68]
call fcn.00403762
mov byte [esp + 0xac], 5
push edi
push 1
lea ecx, [esp + 0x4c]
call fcn.00403762
mov byte [esp + 0xac], 3
push edi
push 1
lea ecx, [esp + 0x8c]
call fcn.00403762
cmp byte [esp + 0xf], 0
je 0x4bf33d
push str._r_nProxy_Connection:_keep_alive
lea ecx, [esp + 0x18]
call fcn.00407288
cmp byte [esi + 0x90c], 0
jne 0x4bf34d
cmp byte [esp + 0xf], 0
je 0x4bf35b
push str._r_nConnection:_keep_alive
lea ecx, [esp + 0x18]
call fcn.00407288
push str._r_n_r_n
lea ecx, [esp + 0x18]
call fcn.00407288
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
mov byte [esi + 0x90c], 0
jae 0x4bf37f
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.00403762
or dword [esp + 0xac], 0xffffffff
lea eax, [esp + 0x3c]
push eax
call fcn.00462acf
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4