Function at 0x40afb0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43921d
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x448664]
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 esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor edi, edi
push edi
mov ebx, ecx
mov edx, dword [ebx + 8]
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0xd8]
push ecx
push edi
push 0x13
push edx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x14c], 0xc8
call esi
test eax, eax
jne 0x40b024
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0xc], eax
xor al, al
jmp 0x40b512
lea eax, [ebp - 0xd8]
push eax
call fcn.0041d608
add esp, 4
push edi
lea ecx, [ebp - 0x14c]
push ecx
lea edx, [ebp - 0xd8]
push edx
push edi
mov word [ebx + 2], ax
mov eax, dword [ebx + 8]
push 5
push eax
mov dword [ebp - 0x14c], 0xc8
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
call esi
test eax, eax
je 0x40b078
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0041d613
add esp, 4
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov eax, dword [ebx + 8]
push edi
lea edx, [ebp - 0x14c]
push edx
push edi
push edi
push 0x16
push eax
mov dword [ebp - 0x14c], edi
call esi
mov eax, dword [ebp - 0x14c]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c7c6
mov ecx, dword [ebx + 8]
add esp, 4
push 0
mov edi, eax
lea eax, [ebp - 0x14c]
push eax
push edi
push 0
push 0x16
push ecx
mov dword [ebp - 0x150], edi
call esi
test eax, eax
je 0x40b15c
push 0xa
push edi
call fcn.0041d836
lea esi, [eax + 2]
add esp, 8
cmp word [esi], 0xd
je 0x40b15c
push 0x3a
push esi
mov dword [ebp - 0x154], esi
call fcn.0041d836
add esp, 8
test eax, eax
je 0x40b15c
xor edx, edx
mov word [eax], dx
add eax, 2
cmp word [eax], 0x20
je 0x40b103
push 0xa
push eax
mov edi, eax
call fcn.0041d836
mov ecx, dword [ebp - 0x154]
lea esi, [eax + 2]
mov dword [ebp - 0x15c], edi
add esp, 8
lea edx, [ebp - 0x160]
xor eax, eax
mov dword [ebp - 0x160], ecx
lea edi, [ebx + 0x118]
push edx
mov ecx, edi
mov word [esi - 4], ax
call fcn.0040e990
push eax
lea eax, [ebp - 0x168]
push eax
push edi
call fcn.0040e630
cmp word [esi], 0xd
jne 0x40b0e9
mov ecx, dword [ebp - 0x150]
push ecx
call fcn.0041d491
add esp, 4
xor edx, edx
xor edi, edi
push 0xc
mov eax, str.Content_Type
lea esi, [ebp - 0xf4]
mov dword [ebp - 0xe0], 7
mov dword [ebp - 0xe4], edi
mov word [ebp - 0xf4], dx
call fcn.00401b60
mov dword [ebp - 4], edi
lea eax, [ebp - 0xf4]
lea esi, [ebx + 0x118]
push eax
mov eax, esi
mov dword [ebp - 0x15c], esi
call fcn.0040cca0
mov dword [ebp - 0x150], eax
cmp eax, dword [esi + 4]
je 0x40b1ec
mov edi, dword [eax + 0x1c]
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x40b1ce
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xe4]
lea ecx, [ebp - 0xf4]
call fcn.00408e60
test eax, eax
js 0x40b1ec
lea eax, [ebp - 0x150]
jmp 0x40b1fb
mov ecx, dword [esi + 4]
mov dword [ebp - 0x154], ecx
lea eax, [ebp - 0x154]
mov esi, dword [eax]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xe0], 8
jb 0x40b21c
mov edx, dword [ebp - 0xf4]
push edx
call fcn.0041d491
add esp, 4
xor eax, eax
mov dword [ebp - 0xe0], 7
mov dword [ebp - 0xe4], 0
mov word [ebp - 0xf4], ax
cmp esi, dword [ebx + 0x11c]
je 0x40b2b9
push 8
lea eax, [esi + 0x28]
push str.charset
push eax
xor eax, eax
call fcn.004018f0
cmp eax, 0xffffffff
je 0x40b2b9
push 0xffffffffffffffff
lea edx, [ebp - 0x110]
push edx
lea ecx, [eax + 8]
lea edx, [esi + 0x28]
call fcn.00401710
mov dword [ebp - 4], 1
lea esi, [ebx + 0x7c]
mov edi, eax
call fcn.00401780
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xfc], 8
jb 0x40b29c
mov eax, dword [ebp - 0x110]
push eax
call fcn.0041d491
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xfc], 7
mov dword [ebp - 0x100], 0
mov word [ebp - 0x110], cx
mov edx, dword [ebx + 0xf0]
or edx, dword [ebx + 0xf4]
je 0x40b510
xor eax, eax
mov word [ebp - 0xf4], ax
push 0xd
mov eax, str.Content_Range
lea esi, [ebp - 0xf4]
mov dword [ebp - 0xe0], 7
mov dword [ebp - 0xe4], 0
call fcn.00401b60
mov dword [ebp - 4], 2
mov ebx, dword [ebp - 0x15c]
lea ecx, [ebp - 0x150]
push ecx
call fcn.0040c2a0
mov esi, dword [eax]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xe0], 8
jb 0x40b334
mov edx, dword [ebp - 0xf4]
push edx
call fcn.0041d491
add esp, 4
xor eax, eax
mov word [ebp - 0xf4], ax
mov eax, dword [ebp - 0x158]
xor ebx, ebx
mov dword [ebp - 0xe0], 7
mov dword [ebp - 0xe4], ebx
cmp esi, dword [eax + 0x11c]
je 0x40b505
lea ecx, [ebp - 0x200]
push ecx
call fcn.00404f30
mov dword [ebp - 4], 3
add esi, 0x28
lea edx, [ebp - 0x200]
push esi
push edx
call fcn.004086c0
add esp, 8
push 0x1f
mov edi, 0xf
push str.HttpClient::ReadResponseHeaders
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0x100], ebx
mov byte [ebp - 0x110], bl
call fcn.00406be0
mov byte [ebp - 4], 4
push 0xe
push str.HttpClient.cpp
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x12c], bl
call fcn.00406be0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x200]
push ecx
call fcn.00405030
mov byte [ebp - 4], 6
push eax
push 0x183
push 1
call fcn.00404d10
push eax
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x12c]
call fcn.00416210
mov byte [ebp - 4], 5
cmp dword [ebp - 0x134], 8
jb 0x40b42e
mov edx, dword [ebp - 0x148]
push edx
call fcn.0041d491
add esp, 4
xor eax, eax
mov dword [ebp - 0x134], 7
mov dword [ebp - 0x138], ebx
mov word [ebp - 0x148], ax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x118], 0x10
jb 0x40b463
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.0041d491
add esp, 4
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x11c], ebx
mov byte [ebp - 0x12c], bl
mov byte [ebp - 4], 3
cmp dword [ebp - 0xfc], 0x10
jb 0x40b491
mov edx, dword [ebp - 0x110]
push edx
call fcn.0041d491
add esp, 4
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0x100], ebx
mov byte [ebp - 0x110], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x200]
call fcn.00403150
mov edi, 6
push str.bytes
mov eax, edi
mov ecx, esi
call fcn.00408e60
test eax, eax
jne 0x40b01d
cmp dword [esi + 0x14], 8
jb 0x40b4d8
mov esi, dword [esi]
add esi, 0xc
push esi
call fcn.0041d613
mov ecx, dword [ebp - 0x158]
add esp, 4
cmp eax, dword [ecx + 0xf0]
jne 0x40b4fa
cmp edx, dword [ecx + 0xf4]
je 0x40b510
mov dword [ecx + 0xc], 0x32
xor al, al
jmp 0x40b512
mov dword [eax + 0xc], 0x32
xor al, al
jmp 0x40b512
mov al, 1
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.0041cfa8
mov esp, ebp
pop ebp
ret