Function at 0x64040bc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
mov eax, ecx
push ebp
push esi
mov dword [esp + 0xc], eax
lea esi, [eax + 0x78]
mov eax, dword [esi]
push edi
cmp dword [eax + 4], 0
jne 0x64040be2
push 0x20
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::reserve_int_]
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x14], eax
nop word [eax + eax]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push 0
push 1
push eax
call dword [sym.imp.Qt5Core.dll_public:_long_long___int64____thiscall_QIODevice::read_char___long_long___int64__]
mov ebx, edx
mov edi, eax
and eax, ebx
cmp eax, 0xffffffff
je 0x64040dd4
mov eax, edi
or eax, ebx
je 0x64040c95
mov ecx, dword [esp + 0x1c]
cmp edi, 1
jne 0x64040c55
test ebx, ebx
jne 0x64040c55
mov eax, dword [esi]
cmp dword [eax + 4], edx
jne 0x64040c55
cmp cl, 0xb
je 0x64040c00
cmp cl, 0xa
je 0x64040c00
cmp cl, 0xd
je 0x64040c00
cmp cl, 0x20
je 0x64040c00
cmp cl, 0x1f
je 0x64040c00
add dword [esp + 0x14], 1
adc ebp, 0
cmp cl, 0xa
je 0x64040ca5
push ecx
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray____thiscall_QByteArray::append_char_]
mov eax, dword [esi]
cmp dword [eax + 4], 5
jne 0x64040c88
push 0x640b7698
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QByteArray::startsWith_char_const__const]
test al, al
je 0x64040dee
cmp edi, 1
jne 0x64040c95
test ebx, ebx
je 0x64040c00
mov eax, dword [esp + 0x14]
mov edx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
push 0xd
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QByteArray::endsWith_char_const]
test al, al
je 0x64040cc2
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
dec eax
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::truncate_int_]
mov eax, dword [esi]
cmp dword [eax + 4], 0xb
jl 0x64040de3
push str.HTTP_
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QByteArray::startsWith_char_const__const]
test al, al
je 0x64040de3
push 6
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteArray::at_int_const]
cmp al, 0x2e
jne 0x64040de3
push 8
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteArray::at_int_const]
cmp al, 0x20
jne 0x64040de3
push 5
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteArray::at_int_const]
mov ebx, dword [esp + 0x10]
mov ecx, esi
movsx eax, al
sub eax, 0x30
push 7
mov dword [ebx + 0x50], eax
call dword [sym.imp.Qt5Core.dll_public:_char___thiscall_QByteArray::at_int_const]
movsx eax, al
mov ecx, esi
push 9
sub eax, 0x30
push 0x20
mov dword [ebx + 0x54], eax
call dword [sym.imp.Qt5Core.dll_public:_int___thiscall_QByteArray::indexOf_char__int_const]
mov edi, eax
mov ecx, esi
lea eax, [edi - 9]
push eax
push 9
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QByteArray::mid_int__int_]
push 0xa
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.Qt5Core.dll_public:_int___thiscall_QByteArray::toInt_bool___int_const]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebx + 0x4c], eax
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
inc eax
add eax, edi
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLatin1_char_const___int_]
add esp, 0xc
lea ecx, [ebx + 0x5c]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
lea ecx, [esp + 0x20]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
cmp byte [esp + 0x2c], 0
je 0x64040dad
cmp dword [ebx + 0x50], 9
ja 0x64040dad
cmp dword [ebx + 0x54], 9
ja 0x64040dad
mov bl, 1
jmp 0x64040daf
xor bl, bl
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
mov eax, dword [esp + 0x10]
mov ecx, esi
mov dword [eax + 0x3c], 2
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::clear_void_]
test bl, bl
jne 0x64040c95
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 0x18
ret 4
mov eax, dword [esp + 0x10]
mov dword [eax + 0x3c], 2
mov ecx, esi
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::clear_void_]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
or edx, eax
pop ebx
add esp, 0x18
ret 4