Function at 0x4a998d
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62ba59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push esi
push edi
lea eax, [esp + 0x4c]
push eax
mov ebx, ecx
call fcn.004309eb
xor edi, edi
mov dword [esp + 0x184], edi
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.0043a133
mov byte [esp + 0x184], 2
lea eax, [esp + 0x4c]
push eax
call fcn.0044a645
lea esi, [esp + 0x3c]
call fcn.00439c27
call fcn.0041d385
mov ecx, eax
mov eax, dword [ecx + 0x1c]
sub eax, dword [ecx + 0x18]
push 0x60
cdq
pop ecx
idiv ecx
dec eax
neg eax
sbb al, al
inc al
mov byte [esp + 0x17], al
mov eax, dword [ebx + 0x908]
jne 0x4a9a6a
mov esi, 0x6885a8
cmp eax, edi
je 0x4a9a2d
dec eax
lea ecx, [ebx + 0x8f4]
push eax
call fcn.00402a5f
cmp byte [eax], 0x2f
je 0x4a9a39
lea ecx, [ebx + 0x8f4]
push esi
call fcn.00404af4
mov eax, dword [ebx + 0x924]
cmp eax, edi
je 0x4a9a59
dec eax
push eax
lea ecx, [ebx + 0x910]
call fcn.00402a5f
cmp byte [eax], 0x2f
je 0x4a9b2c
push esi
lea ecx, [ebx + 0x910]
call fcn.00404af4
jmp 0x4a9b2c
cmp eax, edi
jne 0x4a9abf
lea esi, [esp + 0x3c]
call fcn.00439c27
call fcn.0041d385
add eax, 0x34
push eax
lea eax, [esp + 0x68]
push 0x6885a8
push eax
call fcn.0043e842
add esp, 0xc
mov byte [esp + 0x184], 3
push 0xffffffffffffffff
push edi
lea ecx, [ebx + 0x8f4]
push eax
call fcn.00404c18
mov byte [esp + 0x184], 2
push edi
push 1
lea ecx, [esp + 0x6c]
call fcn.00401ac6
jmp 0x4a9af1
dec eax
lea ecx, [ebx + 0x8f4]
push eax
call fcn.00402a5f
cmp byte [eax], 0x2f
jne 0x4a9af1
lea esi, [esp + 0x3c]
call fcn.00439c27
call fcn.0041d385
push 0xffffffffffffffff
push edi
add eax, 0x34
push eax
lea ecx, [ebx + 0x8f4]
call fcn.00404c18
mov eax, dword [ebx + 0x924]
cmp eax, edi
je 0x4a9b2c
dec eax
lea edi, [ebx + 0x910]
push eax
mov ecx, edi
call fcn.00402a5f
cmp byte [eax], 0x2f
jne 0x4a9b2c
lea esi, [esp + 0x3c]
call fcn.00439c27
call fcn.0041d385
push 0xffffffffffffffff
push 0
add eax, 0x34
push eax
mov ecx, edi
call fcn.00404c18
lea esi, [esp + 0x3c]
call fcn.00439c27
call fcn.0041d385
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], 0xf
call fcn.00401e8e
mov byte [esp + 0x184], 4
push 0x190
lea ecx, [esp + 0x1c]
call fcn.00406341
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov dword [esp + 0x10], eax
call fcn.00439c27
mov eax, dword [eax + 0x6b4]
mov dword [esp + 0x44], eax
call fcn.00439c27
call fcn.0041d385
mov eax, dword [eax + 8]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x38], eax
jmp 0x4a9bdd
mov eax, dword [edi + 4]
sub eax, esi
add eax, dword [edi + 8]
lea ecx, [esp + 0x10]
cdq
idiv dword [esp + 0x38]
cmp esi, dword [esp + 0x44]
mov dword [esp + 0x50], edx
jl 0x4a9bb6
lea ecx, [esp + 0x44]
mov ecx, dword [ecx]
mov dword [esp + 0x54], ecx
mov ecx, dword [edi]
add ecx, eax
lea eax, [esp + 0x4c]
push eax
lea eax, [ebx + 0x790]
push eax
mov dword [esp + 0x54], ecx
call fcn.004ab20e
sub esi, dword [esp + 0x54]
mov dword [esp + 0x10], esi
test esi, esi
jg 0x4a9b97
mov esi, dword [ebx + 0x2c8]
mov eax, dword [esi + 0xa04]
add esi, 0x9ac
mov dword [esp + 0x38], esi
cmp eax, 4
je 0x4a9c06
mov byte [esp + 0xf], 0
cmp eax, 5
jne 0x4a9c0b
mov byte [esp + 0xf], 1
cmp byte [esp + 0x17], 0
je 0x4a9e9d
push str.GET
lea ecx, [esp + 0x1c]
call fcn.00404af4
cmp byte [esp + 0xf], 0
lea eax, [ebx + 0x910]
jne 0x4a9c37
lea eax, [ebx + 0x8f4]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00404c18
push str._HTTP_1.1_r_n
lea ecx, [esp + 0x1c]
call fcn.00404af4
push str.Host:
lea ecx, [esp + 0x1c]
call fcn.00404af4
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x8d4]
push eax
lea ecx, [esp + 0x24]
call fcn.00404c18
cmp byte [ebx + 0x948], 0
je 0x4a9ca5
push str._r_nUser_Agent:
lea ecx, [esp + 0x1c]
call fcn.00404af4
mov eax, dword [ebx + 0x2c8]
push 0xffffffffffffffff
add eax, 0x7d4
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00404c18
cmp dword [ebx + 0x8cc], 0
je 0x4a9cd0
push str._r_nAuthorization:_Basic
lea ecx, [esp + 0x1c]
call fcn.00404af4
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x8b8]
push eax
lea ecx, [esp + 0x24]
call fcn.00404c18
cmp dword [esi + 0x58], 5
jne 0x4a9d8c
push str._r_nProxy_Authorization:_Basic
lea ecx, [esp + 0x1c]
call fcn.00404af4
push 0x68858c
lea eax, [esi + 0x20]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.0040f010
add esp, 0xc
mov byte [esp + 0x184], 5
add esi, 0x3c
push esi
push eax
lea eax, [esp + 0x88]
push eax
call fcn.00409fa7
add esp, 0xc
mov byte [esp + 0x184], 6
push eax
lea eax, [esp + 0x68]
push eax
call fcn.0042048a
pop ecx
pop ecx
mov byte [esp + 0x184], 7
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.00404c18
mov byte [esp + 0x184], 6
push esi
push 1
lea ecx, [esp + 0x6c]
call fcn.00401ac6
mov byte [esp + 0x184], 5
push esi
push 1
lea ecx, [esp + 0x88]
call fcn.00401ac6
mov byte [esp + 0x184], 4
push esi
push 1
lea ecx, [esp + 0xa4]
call fcn.00401ac6
cmp byte [esp + 0xf], 0
je 0x4a9da1
push str._r_nProxy_Connection:_keep_alive
lea ecx, [esp + 0x1c]
call fcn.00404af4
push str._r_nRange:_bytes
lea ecx, [esp + 0x1c]
call fcn.00404af4
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 8]
imul dword [edi]
mov ecx, eax
mov eax, dword [edi + 4]
mov esi, edx
cdq
add ecx, eax
adc esi, edx
push esi
push ecx
lea eax, [esp + 0xc0]
push eax
call fcn.0041fecb
add esp, 0xc
push 5
pop ecx
mov esi, eax
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
movsb byte es:[edi], byte [esi]
call fcn.00404af4
push 0x6905a4
lea ecx, [esp + 0x1c]
call fcn.00404af4
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 8]
imul dword [ecx]
mov esi, eax
mov eax, dword [ecx + 4]
mov edi, edx
cdq
add esi, eax
mov eax, dword [ecx + 8]
adc edi, edx
cdq
add esi, eax
adc edi, edx
sub esi, 1
sbb edi, 0
push edi
lea eax, [esp + 0xbc]
push esi
push eax
call fcn.0041fecb
add esp, 0xc
push 5
pop ecx
mov esi, eax
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x1c]
movsb byte es:[edi], byte [esi]
call fcn.00404af4
cmp byte [ebx + 0x948], 0
jne 0x4a9e60
cmp byte [esp + 0xf], 0
je 0x4a9e6e
push str._r_nConnection:_keep_alive
lea ecx, [esp + 0x1c]
call fcn.00404af4
push str._r_n_r_n
lea ecx, [esp + 0x1c]
call fcn.00404af4
and dword [esp + 0x38], 0
lea eax, [esp + 0x38]
push eax
lea eax, [ebx + 0x7b0]
mov byte [ebx + 0x948], 0
call fcn.004ab30a
jmp 0x4aa301
mov esi, dword [esp + 0x34]
cmp dword [esi + 0x50], 0
je 0x4a9eac
mov ecx, dword [esi + 0x50]
jmp 0x4a9eaf
lea ecx, [esi + 8]
push dword [edi + 8]
mov eax, dword [edi + 4]
cdq
push edx
push eax
push dword [edi]
lea eax, [esp + 0xac]
push eax
call fcn.0041ef24
mov byte [esp + 0x184], 8
push dword [esp + 0xa8]
lea edi, [esp + 0xa0]
lea esi, [esp + 0x48]
call fcn.0040edee
push dword [esp + 0xac]
lea edi, [esp + 0xa0]
lea esi, [esp + 0x50]
call fcn.0040edee
mov eax, dword [esp + 0x44]
xor edi, edi
cmp eax, edi
je 0x4a9f0d
cmp eax, dword [esp + 0x4c]
je 0x4a9f12
call fcn.005a6714
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x50]
je 0x4aa2ec
lea esi, [esp + 0x44]
call fcn.004a72fd
push str.GET
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], eax
call fcn.00404af4
cmp byte [esp + 0xf], 0
je 0x4a9fe6
push 0xffffffffffffffff
push edi
lea eax, [ebx + 0x910]
push eax
lea ecx, [esp + 0x24]
call fcn.00404c18
mov esi, dword [esp + 0x34]
cmp dword [esi + 0x50], edi
je 0x4a9f67
mov esi, dword [esi + 0x50]
jmp 0x4a9f6a
add esi, 8
mov eax, dword [esp + 0x10]
push dword [eax]
call fcn.004101fe
push eax
lea ecx, [esp + 0x68]
call fcn.004018b0
mov byte [esp + 0x184], 9
cmp dword [esp + 0x7c], 0x10
mov ecx, dword [esp + 0x68]
jae 0x4a9f96
lea ecx, [esp + 0x68]
push dword [esp + 0x78]
lea eax, [esp + 0x10c]
push eax
call fcn.00420075
pop ecx
pop ecx
mov byte [esp + 0x184], 0xa
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.00404c18
mov byte [esp + 0x184], 9
push edi
push 1
lea ecx, [esp + 0x110]
call fcn.00401ac6
mov byte [esp + 0x184], 8
lea ecx, [esp + 0x64]
jmp 0x4aa096
lea eax, [ebx + 0x8f4]
push eax
lea ecx, [esp + 0x84]
call fcn.004018b0
mov byte [esp + 0x184], 0xb
mov esi, dword [esp + 0x34]
cmp dword [esi + 0x50], edi
je 0x4aa00f
mov esi, dword [esi + 0x50]
jmp 0x4aa012
add esi, 8
mov eax, dword [esp + 0x10]
push dword [eax]
call fcn.004101fe
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x8c]
call fcn.00404c18
cmp dword [esp + 0x98], 0x10
mov ecx, dword [esp + 0x84]
jae 0x4aa045
lea ecx, [esp + 0x84]
push dword [esp + 0x94]
lea eax, [esp + 0x144]
push eax
call fcn.00420075
pop ecx
pop ecx
mov byte [esp + 0x184], 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.00404c18
mov byte [esp + 0x184], 0xb
push edi
push 1
lea ecx, [esp + 0x148]
call fcn.00401ac6
mov byte [esp + 0x184], 8
lea ecx, [esp + 0x80]
push edi
push 1
call fcn.00401ac6
push str._HTTP_1.1_r_n
lea ecx, [esp + 0x1c]
call fcn.00404af4
push str.Host:
lea ecx, [esp + 0x1c]
call fcn.00404af4
push 0xffffffffffffffff
push edi
lea eax, [ebx + 0x8d4]
push eax
lea ecx, [esp + 0x24]
call fcn.00404c18
cmp byte [ebx + 0x948], 0
je 0x4aa0fc
push str._r_nUser_Agent:
lea ecx, [esp + 0x1c]
call fcn.00404af4
mov eax, dword [ebx + 0x2c8]
push 0xffffffffffffffff
add eax, 0x7d4
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.00404c18
cmp dword [ebx + 0x8cc], edi
je 0x4aa125
push str._r_nAuthorization:_Basic
lea ecx, [esp + 0x1c]
call fcn.00404af4
push 0xffffffffffffffff
push edi
lea eax, [ebx + 0x8b8]
push eax
lea ecx, [esp + 0x24]
call fcn.00404c18
mov esi, dword [esp + 0x38]
cmp dword [esi + 0x58], 5
jne 0x4aa1e9
push str._r_nProxy_Authorization:_Basic
lea ecx, [esp + 0x1c]
call fcn.00404af4
push 0x68858c
lea eax, [esi + 0x20]
push eax
lea eax, [esp + 0x164]
push eax
call fcn.0040f010
add esp, 0xc
mov byte [esp + 0x184], 0xd
add esi, 0x3c
push esi
push eax
lea eax, [esp + 0x12c]
push eax
call fcn.00409fa7
add esp, 0xc
mov byte [esp + 0x184], 0xe
push eax
lea eax, [esp + 0xf0]
push eax
call fcn.0042048a
pop ecx
pop ecx
mov byte [esp + 0x184], 0xf
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.00404c18
mov byte [esp + 0x184], 0xe
push edi
push 1
lea ecx, [esp + 0xf4]
call fcn.00401ac6
mov byte [esp + 0x184], 0xd
push edi
push 1
lea ecx, [esp + 0x12c]
call fcn.00401ac6
mov byte [esp + 0x184], 8
push edi
push 1
lea ecx, [esp + 0x164]
call fcn.00401ac6
cmp byte [esp + 0xf], 0
je 0x4aa1fe
push str._r_nProxy_Connection:_keep_alive
lea ecx, [esp + 0x1c]
call fcn.00404af4
push str._r_nRange:_bytes
lea ecx, [esp + 0x1c]
call fcn.00404af4
mov eax, dword [esp + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
lea eax, [esp + 0xd8]
push eax
call fcn.0041fecb
add esp, 0xc
push 5
pop ecx
mov esi, eax
lea edi, [esp + 0xb8]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x1c]
movsb byte es:[edi], byte [esi]
call fcn.00404af4
push 0x6905a4
lea ecx, [esp + 0x1c]
call fcn.00404af4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
add ecx, dword [eax + 8]
mov edx, dword [eax + 0x14]
adc edx, dword [eax + 0xc]
sub ecx, 1
sbb edx, 0
push edx
push ecx
lea eax, [esp + 0xd8]
push eax
call fcn.0041fecb
add esp, 0xc
push 5
pop ecx
mov esi, eax
lea edi, [esp + 0xb8]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x1c]
movsb byte es:[edi], byte [esi]
call fcn.00404af4
cmp byte [ebx + 0x948], 0
jne 0x4aa2ac
cmp byte [esp + 0xf], 0
je 0x4aa2ba
push str._r_nConnection:_keep_alive
lea ecx, [esp + 0x1c]
call fcn.00404af4
push str._r_n_r_n
lea ecx, [esp + 0x1c]
call fcn.00404af4
push dword [esp + 0x10]
lea eax, [ebx + 0x7b0]
mov byte [ebx + 0x948], 0
call fcn.004ab30a
lea esi, [esp + 0x44]
call fcn.0045bd30
jmp 0x4a9ee6
mov byte [esp + 0x184], 4
lea eax, [esp + 0x9c]
push eax
call fcn.0042a99b
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x4aa310
lea eax, [esp + 0x1c]
mov edx, dword [ebx]
push 1
push dword [esp + 0x30]
mov ecx, ebx
push eax
call dword [edx + 0x18]
mov byte [esp + 0x184], 2
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.00401ac6
or dword [esp + 0x184], 0xffffffff
lea eax, [esp + 0x3c]
push eax
call fcn.0047decf
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4