Function at 0x4972f5
Capabilities:
Check http status code
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9dff
mov eax, dword fs:[0]
push eax
mov eax, 0x10f0
call fcn.004b3120
mov eax, dword [0x509dd8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xa24], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10ac], eax
mov dword [ebp - 0x10a4], ebx
jne 0x49734b
xor eax, eax
jmp 0x4979dd
push eax
call fcn.004972b9
test eax, eax
je 0x497344
mov ecx, edi
call fcn.004979fb
mov esi, dword [0x4dc71c]
jmp 0x497383
mov ecx, dword [edi + 0xa28]
lea eax, [ecx - 1]
mov dword [edi + 0xa28], eax
test ecx, ecx
je 0x497344
push dword [edi + 0xa2c]
call dword [0x4dc1f0]
xor eax, eax
push eax
push eax
push eax
push eax
push str.Mozilla_5.0__Windows_NT_6.1__WOW64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_35.0.1916.114_Safari_537.36
call esi
mov dword [edi + 0x9e8], eax
test eax, eax
je 0x497364
mov dword [ebp - 0x10b0], 0x800000
mov esi, 0x1bb
xor eax, eax
push eax
push eax
push 3
push eax
push eax
movzx eax, word [edi + 0x918]
push eax
push dword [edi + 0x910]
push dword [edi + 0x9e8]
call dword [0x4dc730]
mov ecx, eax
mov dword [edi + 0x9ec], ecx
test ecx, ecx
jne 0x4973fc
mov ecx, dword [edi + 0xa28]
lea eax, [ecx - 1]
mov dword [edi + 0xa28], eax
test ecx, ecx
je 0x497344
push dword [edi + 0xa2c]
call dword [0x4dc1f0]
jmp 0x4973a9
xor edx, edx
xor eax, eax
cmp word [edi + 0x918], si
push edx
cmove eax, dword [ebp - 0x10b0]
or eax, 0x84200000
push eax
push edx
push edx
push edx
push dword [edi + 0x92c]
push 0x4e3cf8
push ecx
jmp 0x497477
mov ecx, dword [edi + 0xa28]
lea eax, [ecx - 1]
mov dword [edi + 0xa28], eax
test ecx, ecx
je 0x497344
push dword [edi + 0xa2c]
call dword [0x4dc1f0]
xor ecx, ecx
xor eax, eax
cmp word [edi + 0x918], si
mov edx, 0x800000
push ecx
cmove eax, edx
or eax, 0x84200000
push eax
push ecx
push ecx
push ecx
push dword [edi + 0x92c]
push 0x4e3cf8
push dword [edi + 0x9ec]
call dword [0x4dc724]
mov dword [edi + 0x9f0], eax
test eax, eax
je 0x497426
lea esi, [edi + 0x940]
push 0x4dc9b4
lea ecx, [ebp - 0x1084]
call fcn.00410cc0
xor eax, eax
mov ecx, esi
push 2
push eax
push eax
mov dword [ebp - 4], eax
call fcn.00497b71
lea eax, [ebp - 0x10fc]
mov ecx, esi
push eax
call fcn.00497bff
mov esi, dword [eax + 8]
add esi, dword [eax]
je 0x497539
push 0
push 0
dec esi
lea ecx, [edi + 0x940]
push esi
call fcn.00497b71
push 0xa
push 0x40
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.004b3020
mov esi, str.Range:_bytes
push esi
call fcn.004ae950
add esp, 0x14
lea ecx, [ebp - 0x1084]
push eax
push esi
call fcn.0044b2a0
cmp byte [ebp - 0x50], 0
jne 0x497506
xor eax, eax
jmp 0x497510
lea eax, [ebp - 0x50]
push eax
call fcn.004ae950
pop ecx
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x1084]
call fcn.0044b2a0
mov esi, 0x4e3d0c
push esi
call fcn.004ae950
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1084]
call fcn.0044b2a0
cmp dword [ebp - 0x1070], 0x10
lea eax, [ebp - 0x1084]
push 0
cmovae eax, dword [ebp - 0x1084]
push 0
push dword [ebp - 0x1074]
push eax
push dword [edi + 0x9f0]
call dword [0x4dc728]
test eax, eax
jne 0x4975b4
call dword [0x4dc3a0]
cmp eax, 0x2ee2
jne 0x49790e
mov ecx, dword [edi + 0xa28]
lea eax, [ecx - 1]
mov dword [edi + 0xa28], eax
test ecx, ecx
je 0x4979ca
push dword [edi + 0xa2c]
call dword [0x4dc1f0]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1084]
push 0
push 1
call fcn.00411670
jmp 0x497487
mov esi, dword [0x4dc734]
lea eax, [ebp - 0x10b4]
push 0
push eax
lea eax, [ebp - 0x10bc]
mov dword [ebp - 0x10b4], 4
push eax
push 0x20000013
push dword [edi + 0x9f0]
call esi
test eax, eax
jne 0x4975f8
mov ecx, dword [edi + 0xa28]
lea eax, [ecx - 1]
mov dword [edi + 0xa28], eax
test ecx, ecx
jne 0x497590
mov eax, dword [ebp - 0x10bc]
cmp eax, 0x12e
je 0x49796f
cmp eax, 0x12d
je 0x49796f
cmp eax, 0xc8
jb 0x497622
cmp eax, 0x12c
jb 0x497644
cmp eax, 0x194
je 0x4979ca
mov ecx, dword [edi + 0xa28]
lea eax, [ecx - 1]
mov dword [edi + 0xa28], eax
test ecx, ecx
jne 0x497590
test ebx, ebx
je 0x497839
push 0
lea eax, [ebp - 0x10b8]
mov dword [ebp - 0x10b8], 0x800
push eax
lea eax, [ebp - 0x854]
push eax
push 0x2f
push dword [edi + 0x9f0]
call esi
test eax, eax
je 0x4976d5
mov ebx, str.filename
lea eax, [ebp - 0x854]
push ebx
push eax
call fcn.004ace50
push ebx
mov esi, eax
call fcn.004ae950
add esp, 0xc
lea ebx, [esi + eax]
cmp byte [ebx], 0x22
jne 0x49769a
inc ebx
mov al, byte [ebx]
test al, al
je 0x497833
mov esi, dword [ebp - 0x10a4]
cmp al, 0x3b
je 0x4976ce
cmp al, 0x22
je 0x4976ce
mov byte [ebp - 0x10a8], al
mov ecx, esi
push dword [ebp - 0x10a8]
push 1
call fcn.0043ed40
inc ebx
mov al, byte [ebx]
test al, al
jne 0x4976aa
mov ebx, esi
jmp 0x497839
lea eax, [edi + 0x9f4]
push eax
lea ecx, [ebp - 0x106c]
call fcn.00447430
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x10a0]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x106c]
mov byte [ebp - 0x10a0], 0x2f
call fcn.0048b1c8
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x106c]
push eax
lea eax, [ebp - 0x109c]
push eax
call fcn.0048b6a0
push eax
lea ecx, [ebp - 0x106c]
call fcn.00447550
push 0
push 1
lea ecx, [ebp - 0x109c]
call fcn.00411670
mov ecx, dword [ebp - 0x105c]
test ecx, ecx
je 0x497808
mov edx, dword [ebp - 0x1058]
mov esi, dword [ebp - 0x106c]
dec ecx
lea eax, [ebp - 0x106c]
cmp edx, 0x10
cmovae eax, esi
cmp byte [eax + ecx], 0x2f
je 0x4977e4
cmp edx, 0x10
lea eax, [ebp - 0x106c]
cmovae eax, esi
cmp byte [eax + ecx], 0x5c
je 0x4977e4
cmp edx, 0x10
lea eax, [ebp - 0x106c]
cmovae eax, esi
cmp byte [eax + ecx], 0x3a
je 0x4977e4
cmp edx, 0x10
lea eax, [ebp - 0x106c]
cmovae eax, esi
cmp byte [eax + ecx], 0x3f
je 0x4977e4
cmp edx, 0x10
lea eax, [ebp - 0x106c]
cmovae eax, esi
cmp byte [eax + ecx], 0x2a
je 0x4977e4
cmp edx, 0x10
lea eax, [ebp - 0x106c]
cmovae eax, esi
cmp byte [eax + ecx], 0x3c
je 0x4977e4
cmp edx, 0x10
lea eax, [ebp - 0x106c]
cmovae eax, esi
cmp byte [eax + ecx], 0x3e
je 0x4977e4
cmp edx, 0x10
lea eax, [ebp - 0x106c]
cmovae eax, esi
cmp byte [eax + ecx], 0x7c
jne 0x497800
cmp edx, 0x10
lea eax, [ebp - 0x106c]
cmovae eax, esi
mov byte [eax + ecx], 0x5f
mov edx, dword [ebp - 0x1058]
mov esi, dword [ebp - 0x106c]
test ecx, ecx
jne 0x497753
lea eax, [ebp - 0x106c]
cmp ebx, eax
je 0x49781e
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.004116f0
push 0
push 1
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], 0
call fcn.00411670
jmp 0x497839
mov ebx, dword [ebp - 0x10a4]
push 0x28
pop esi
push esi
lea eax, [ebp - 0x10e4]
push 0
push eax
call fcn.004ad430
add esp, 0xc
mov dword [ebp - 0x10e4], esi
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x10cc], 0x7ff
mov dword [ebp - 0x10d0], eax
lea eax, [ebp - 0x10e4]
push 0
push 0
push eax
push dword [edi + 0x9f0]
call dword [0x4dc718]
lea esi, [edi + 0x940]
test eax, eax
je 0x4978d3
cmp dword [ebp - 0x10cc], 0
je 0x49795f
push 0
push dword [ebp - 0x10cc]
mov ecx, esi
push dword [ebp - 0x10d0]
call fcn.00497c75
cmp dword [ebp - 0x10cc], 0
je 0x49795f
push 0
push 0
lea eax, [ebp - 0x10e4]
push eax
push dword [edi + 0x9f0]
call dword [0x4dc718]
jmp 0x497887
mov ecx, dword [edi + 0xa28]
lea eax, [ecx - 1]
mov dword [edi + 0xa28], eax
test ecx, ecx
je 0x4979ca
push dword [edi + 0xa2c]
call dword [0x4dc1f0]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1084]
push 0
push 1
call fcn.00411670
jmp 0x49748d
push dword [edi + 0x9ec]
mov esi, dword [0x4dc72c]
call esi
push dword [edi + 0x9f0]
call esi
mov ecx, dword [edi + 0xa28]
lea eax, [ecx - 1]
mov dword [edi + 0xa28], eax
test ecx, ecx
je 0x4979ca
push dword [edi + 0xa2c]
call dword [0x4dc1f0]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1084]
push 0
push 1
call fcn.00411670
jmp 0x4973a4
lea ecx, [edi + 0x940]
call fcn.00497aea
xor esi, esi
inc esi
jmp 0x4979cc
mov ecx, dword [edi + 0xa30]
lea eax, [ecx - 1]
mov dword [edi + 0xa30], eax
test ecx, ecx
je 0x4979ca
push 0
lea eax, [ebp - 0x10a8]
mov dword [ebp - 0x10a8], 0x800
push eax
lea eax, [ebp - 0x854]
push eax
push 0x21
push dword [edi + 0x9f0]
call esi
test eax, eax
je 0x4979ca
lea eax, [ebp - 0x854]
mov ecx, edi
push eax
call fcn.00497a5d
push ebx
push dword [ebp - 0x10ac]
mov ecx, edi
call fcn.004972f5
mov esi, eax
jmp 0x4979cc
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x1084]
call fcn.00411670
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004abb33
mov esp, ebp
pop ebp
ret 8