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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5facf2
mov eax, dword fs:[0]
push eax
sub esp, 0x334
mov eax, dword [0x686300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x200], ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1fc], eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x1f8], 0
mov esi, dword [ecx + 0x38]
push 0
push eax
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x204], 0
call fcn.004aa930
mov ecx, dword [esi]
lea eax, [ebp - 0x208]
add esp, 8
push esi
push 0x4a3540
push eax
call fcn.004dc430
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
push ecx
lea ecx, [eax + 0x14]
call fcn.004d5470
push 1
push 2
lea ecx, [ebp - 0x340]
mov dword [ebp - 4], 1
call fcn.0043c360
push 0x3f
push 0x6135e8
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 4], 2
call fcn.004c0d40
push eax
lea eax, [ebp - 0x1f4]
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp - 0x340]
lea ecx, [ebp - 0x340]
mov eax, dword [eax + 4]
add ecx, eax
call fcn.004dfee0
mov ecx, dword [ebp - 0x1f4]
test ecx, ecx
je 0x4a9d70
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x4a9d70
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x1f8]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4a9d91
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x4a9d91
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov esi, dword [ebp - 0x200]
lea ecx, [ebp - 0x340]
push dword [esi + 0x114]
call fcn.0043cb90
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x340]
call fcn.004454e0
push 0x400
push eax
lea eax, [esi + 0xfc]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x158]
call fcn.004b5300
cmp dword [ebp - 0xf4], 0x10
mov byte [ebp - 4], 6
jb 0x4a9df1
push dword [ebp - 0x108]
call fcn.005b7634
add esp, 4
push edi
lea eax, [ebp - 0x158]
mov dword [ebp - 0xf4], 0xf
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0xf8], 0
push eax
lea ecx, [ebp - 0x240]
mov byte [ebp - 0x108], 0
call fcn.004ed4b0
mov edx, eax
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x224], esi
lea eax, [ebp - 0x224]
mov dword [ebp - 0x220], ecx
cmp eax, edx
je 0x4a9e59
mov ecx, dword [edx + 4]
mov dword [edx + 4], esi
mov esi, dword [edx]
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x224], esi
mov dword [edx], 0
mov eax, dword [edx + 8]
mov dword [ebp - 0x21c], eax
mov dword [edx + 8], 0
mov edx, dword [ebp - 0x4c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x1f8], edx
test edx, edx
je 0x4a9ea3
lea eax, [edx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4a9ea3
mov eax, dword [edx]
mov ecx, edx
call dword [eax]
mov ecx, dword [ebp - 0x1f8]
or edx, 0xffffffff
lea eax, [ecx + 8]
lock xadd dword [eax], edx
jne 0x4a9ea3
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov al, byte [edi + 4]
mov byte [ebp - 4], 8
test al, al
jne 0x4aa816
push 0x2af9
mov ecx, edi
call fcn.0048c390
mov al, byte [edi + 4]
test al, al
je 0x4aa04c
test esi, esi
je 0x4aa04c
mov eax, dword [ebp - 0x1fc]
push edi
mov ecx, dword [eax]
lea esi, [eax + 4]
push esi
lea eax, [ebp - 0x218]
mov dword [ebp - 0x1f4], esi
push eax
add ecx, 0x14
call fcn.004d4cc0
push 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x224]
call fcn.004c74d0
mov ecx, dword [eax]
imul eax, dword [eax + 8], 0x4c
mov byte [ebp - 4], 9
add eax, dword [ecx]
cmp dword [esi], 0xffffffff
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebp - 0xc0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xb0], xmm0
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xa8], eax
jne 0x4a9fe2
cmp word [ebp - 0xc0], 2
mov eax, 2
mov ecx, dword [ebp - 0x1fc]
mov esi, 0x17
push edi
push 6
cmove esi, eax
lea eax, [ebp - 0x258]
mov ecx, dword [ecx]
push 1
push esi
push dword [ebp - 0x1f4]
add ecx, 0x14
push eax
call fcn.004dc1d0
mov al, byte [eax + 4]
test al, al
jne 0x4a9fd5
mov eax, dword [ebp - 0x1f4]
xorps xmm1, xmm1
movdqu xmmword [ebp - 0x2c], xmm1
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
movdqu xmm0, xmmword [ebp - 0x2c]
mov dword [eax + 0x1c], esi
mov esi, eax
mov byte [esi + 0x20], 0
movdqu xmmword [esi + 0x24], xmm0
movq qword [esi + 0x34], xmm1
mov dword [esi + 0x3c], 0
jmp 0x4a9fdb
mov esi, dword [ebp - 0x1f4]
mov al, byte [edi + 4]
test al, al
jne 0x4aa00a
cmp word [ebp - 0xc0], 2
mov ecx, 0x10
mov eax, 0x1c
cmove eax, ecx
push edi
push eax
lea eax, [ebp - 0xc0]
push eax
push dword [esi]
call fcn.004f1c90
add esp, 0x10
mov esi, dword [ebp - 0x4c]
mov byte [ebp - 4], 8
test esi, esi
je 0x4aa03a
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4aa03a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4aa03a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov al, byte [edi + 4]
test al, al
je 0x4aa04c
mov esi, dword [ebp - 0x224]
jmp 0x4a9ee7
mov al, byte [edi + 4]
test al, al
jne 0x4aa816
mov esi, dword [ebp - 0x200]
lea ecx, [ebp - 0x234]
add esi, 0xcc
push esi
call fcn.004bb6b0
mov al, byte [esi + 0xc]
mov byte [ebp - 0x228], al
push str.CONNECT
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
call fcn.00420f00
push 0x65b880
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xb
call fcn.00420f00
push str.Mozilla_5.0__Windows_NT_6.1__Trident_7.0__rv:11.0__like_Gecko
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0xc
call fcn.00420f00
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 0xd
push eax
push 0x67d66c
lea ecx, [ebp - 0x234]
call fcn.004dd730
test al, al
je 0x4aa0e3
push 0x67d66c
lea ecx, [ebp - 0x234]
call fcn.004eac00
push str.text_html__application_xhtmlxml___
lea ecx, [ebp - 0x8c]
call fcn.00420f00
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0xe
push eax
push 0x67d60c
lea ecx, [ebp - 0x234]
call fcn.004dd730
test al, al
je 0x4aa122
push 0x67d60c
lea ecx, [ebp - 0x234]
call fcn.004eac00
mov esi, dword [ebp - 0x200]
lea ecx, [ebp - 0x74]
push 0xc
push ecx
lea eax, [esi + 0x184]
mov ecx, eax
mov dword [ebp - 0x1f4], eax
call fcn.004f2a10
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0xf
push eax
push 0x67d5f4
lea ecx, [ebp - 0x234]
call fcn.004dd730
test al, al
je 0x4aa16d
push 0x67d5f4
lea ecx, [ebp - 0x234]
call fcn.004eac00
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
mov eax, dword [esi + 0x34c]
lea edx, [esi + 0x32c]
mov dword [ebp - 0x204], edx
mov ecx, dword [eax]
mov eax, dword [edx + 0x1c]
sub ecx, dword [eax]
push ecx
mov ecx, edx
call fcn.004d5570
mov dword [ebp - 0x2a8], 0x6083dc
push 0
lea eax, [esi + 0x32c]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x1f8], 1
mov dword [ebp - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov dword [ebp - 0x2a4], 0
call fcn.00444a80
push 0x65b9bc
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.0048c470
add esp, 8
push eax
call fcn.0048cad0
add esp, 8
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x184]
push eax
call fcn.004dfe60
mov esi, eax
mov ecx, dword [ebp - 0x1f4]
mov byte [ebp - 4], 0x13
call fcn.004e8600
movzx ecx, ax
lea eax, [ebp - 0x2a8]
push ecx
push 0x613eb0
push esi
push eax
call fcn.0048c470
add esp, 8
push eax
call fcn.0048cad0
add esp, 8
mov ecx, eax
call fcn.004c64f0
cmp dword [ebp - 0x14], 0x10
mov byte [ebp - 4], 0x12
jb 0x4aa272
push dword [ebp - 0x28]
call fcn.005b7634
add esp, 4
push 0x65b9c0
lea eax, [ebp - 0xf0]
push eax
lea eax, [ebp - 0x2a8]
push 0x65b9bc
push eax
call fcn.0048cad0
add esp, 8
push eax
call fcn.0048c470
add esp, 8
push eax
call fcn.0048cad0
add esp, 8
lea eax, [ebp - 0x74]
push 0x65b9c0
push eax
lea eax, [ebp - 0x2a8]
push str.Host:
push eax
call fcn.0048cad0
add esp, 8
push eax
call fcn.0048c470
add esp, 8
push eax
call fcn.0048cad0
add esp, 8
lea eax, [ebp - 0x8c]
push 0x65b9c0
push eax
lea eax, [ebp - 0x2a8]
push str.Accept:
push eax
call fcn.0048cad0
add esp, 8
push eax
call fcn.0048c470
add esp, 8
push eax
call fcn.0048cad0
add esp, 8
lea eax, [ebp - 0xa4]
push str._r_n_r_n
push eax
lea eax, [ebp - 0x2a8]
push str.User_Agent:
push eax
call fcn.0048cad0
add esp, 8
push eax
call fcn.0048c470
add esp, 8
push eax
call fcn.0048cad0
mov eax, dword [ebp - 0x204]
push 0
push edi
mov dword [ebp - 0x1f8], eax
lea eax, [ebp - 0x1f8]
mov byte [ebp - 0x204], 0
push dword [ebp - 0x204]
push eax
push dword [ebp - 0x1fc]
call fcn.004b3f00
mov al, byte [edi + 4]
add esp, 0x1c
test al, al
jne 0x4aa6c4
mov esi, dword [ebp - 0x200]
add esi, 0x374
mov dword [ebp - 0x1f4], esi
jmp 0x4aa396
mov esi, dword [ebp - 0x1f4]
push 2
push 0x65b9c0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00421120
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x204], esi
push eax
push dword [ebp - 0x1fc]
call fcn.004ae4b0
add esp, 0x10
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x14], 0x10
jb 0x4aa3f0
push dword [ebp - 0x28]
call fcn.005b7634
add esp, 4
mov al, byte [edi + 4]
test al, al
jne 0x4aa6c4
mov esi, dword [ebp - 0x200]
lea ecx, [ebp - 0x204]
mov eax, dword [ebp - 0x1f4]
add esi, 0x2e0
push esi
push ecx
lea ecx, [ebp - 0x1f8]
mov byte [ebp - 0x250], 1
push ecx
push dword [ebp - 0x250]
test eax, eax
mov dword [ebp - 0x1f8], 0
push 0
sete byte [ebp - 0x210]
mov dword [ebp - 0x204], 0
push dword [ebp - 0x210]
mov dword [esi], 0
push eax
call fcn.004ac1d0
add esp, 0x1c
test al, al
je 0x4aa6bb
mov ecx, dword [esi]
cmp ecx, 0xc8
je 0x4aa4bd
mov eax, dword [0x68f5c0]
test al, 1
jne 0x4aa497
or eax, 1
xorps xmm0, xmm0
mov dword [0x68f5c0], eax
mov eax, vtable.avhttp::detail::error_category_impl.0
movlpd qword [0x68f5b8], xmm0
mov dword [0x68f5b0], eax
jmp 0x4aa49c
mov eax, dword [0x68f5b0]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x50], ecx
push ecx
mov ecx, 0x68f5b0
call eax
mov byte [ebp - 0x4c], al
movq xmm0, qword [ebp - 0x50]
movq qword [edi], xmm0
mov dword [edi + 8], 0x68f5b0
cmp dword [esi], 0x64
je 0x4aa390
mov esi, dword [ebp - 0x200]
lea eax, [esi + 0xec]
mov ecx, eax
mov dword [ebp - 0x1f8], eax
call fcn.004d4070
push str._status_code
lea ecx, [ebp - 0x28]
call fcn.00420f00
push 0x6135f4
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x15
call fcn.004b4a40
lea ecx, [esi + 0x2e0]
mov byte [ebp - 4], 0x16
push ecx
mov ecx, eax
call fcn.0048d600
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004b1e70
add esp, 8
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x17
push eax
lea ecx, [esi + 0xec]
call fcn.004e0480
lea ecx, [ebp - 0x5c]
call fcn.00420f60
lea ecx, [ebp - 0x1f0]
mov byte [ebp - 4], 0x15
call fcn.004c20d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x12
call fcn.00420f60
lea ecx, [ebp - 0x218]
call fcn.00487ec0
push str._r_n_r_n
lea ecx, [ebp - 0x28]
call fcn.00420f00
mov esi, dword [ebp - 0x1f4]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x18
push eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x204], esi
push eax
push dword [ebp - 0x1fc]
call fcn.004ae4b0
add esp, 0x10
mov dword [ebp - 0x1fc], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x12
call fcn.00420f60
cmp byte [ebp - 0x214], 0
je 0x4aa5fd
push 0
push 2
lea ecx, [ebp - 0x50]
call fcn.0048c1d0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004c6d30
add esp, 8
test al, al
je 0x4aa5e3
push 2
jmp 0x4aa6bd
movq xmm0, qword [ebp - 0x218]
mov eax, dword [ebp - 0x210]
movq qword [edi], xmm0
mov dword [edi + 8], eax
jmp 0x4aa6c4
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
push dword [ebp - 0x1fc]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x19
call fcn.00439240
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x44]
mov eax, dword [esi]
cmovae ecx, dword [ebp - 0x44]
push 0
push dword [ebp - 0x1fc]
push ecx
mov ecx, esi
call dword [eax + 0x20]
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x204]
lea esi, [ebp - 0x44]
cmovae esi, dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
push eax
call fcn.00426c60
mov edx, dword [ebp - 0x200]
push dword [ebp - 0x1f8]
lea ecx, [edx + 0x314]
push ecx
lea ecx, [edx + 0x308]
push ecx
lea ecx, [edx + 0x2ec]
push ecx
push dword [eax]
push esi
call fcn.004abc70
add esp, 0x18
test al, al
jne 0x4aa699
push 2
mov ecx, edi
call fcn.0048c2b0
lea ecx, [ebp - 0x44]
call fcn.00420f60
jmp 0x4aa6c4
mov edx, dword [ebp - 0x1f4]
mov eax, dword [edx + 0x20]
mov ecx, dword [eax]
mov eax, dword [edx + 0x1c]
sub ecx, dword [eax]
push ecx
mov ecx, edx
call fcn.004d5570
lea ecx, [ebp - 0x44]
call fcn.00420f60
jmp 0x4aa6c4
push 1
mov ecx, edi
call fcn.0048c2b0
mov eax, dword [ebp - 0x2a8]
mov byte [ebp - 4], 0x10
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2ac], eax
lea eax, [ebp - 0x2a0]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005a3108
add esp, 4
cmp dword [ebp - 0x60], 0x10
jb 0x4aa719
push dword [ebp - 0x74]
call fcn.005b7634
add esp, 4
cmp dword [ebp - 0x78], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x4aa73f
push dword [ebp - 0x8c]
call fcn.005b7634
add esp, 4
cmp dword [ebp - 0x90], 0x10
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
jb 0x4aa76b
push dword [ebp - 0xa4]
call fcn.005b7634
add esp, 4
cmp dword [ebp - 0xdc], 0x10
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
jb 0x4aa79d
push dword [ebp - 0xf0]
call fcn.005b7634
add esp, 4
cmp dword [ebp - 0xc4], 0x10
mov dword [ebp - 0xdc], 0xf
mov dword [ebp - 0xe0], 0
mov byte [ebp - 0xf0], 0
jb 0x4aa7cf
push dword [ebp - 0xd8]
call fcn.005b7634
add esp, 4
mov esi, dword [ebp - 0x234]
mov dword [ebp - 0xc4], 0xf
mov dword [ebp - 0xc8], 0
mov byte [ebp - 0xd8], 0
test esi, esi
je 0x4aa816
push dword [ebp - 0x204]
lea eax, [ebp - 0x209]
push eax
push dword [ebp - 0x230]
push esi
call fcn.00501d00
push esi
call fcn.005b7634
add esp, 0x14
mov esi, dword [ebp - 0x220]
mov byte [ebp - 4], 6
test esi, esi
je 0x4aa849
or edi, 0xffffffff
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x4aa849
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x4aa849
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x10c], 0x10
jb 0x4aa860
push dword [ebp - 0x120]
call fcn.005b7634
add esp, 4
cmp dword [ebp - 0x124], 0x10
mov dword [ebp - 0x10c], 0xf
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x120], 0
jb 0x4aa892
push dword [ebp - 0x138]
call fcn.005b7634
add esp, 4
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
mov byte [ebp - 4], 1
call fcn.0043c8f0
lea eax, [ebp - 0x2f0]
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
push eax
call fcn.005a3108
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.004c2210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b7dc4
mov esp, ebp
pop ebp
ret 8