Function at 0x402010
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bbe8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x5995c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x50]
mov ebx, dword [sym.imp.Qt5Network.dll_public:_class_QVariant___thiscall_QNetworkReply::attribute_enum_QNetworkRequest::Attribute_]
mov ecx, edi
push 0
push eax
mov dword [ebp - 4], 0
call ebx
test dword [ebp - 0x48], 0x3fffffff
mov byte [ebp - 4], 1
je 0x40255d
push 0
lea ecx, [ebp - 0x50]
call dword [sym.imp.Qt5Core.dll_public:_int___thiscall_QVariant::toInt_bool__const]
cmp eax, 0xc8
jne 0x40255d
push 1
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QVariant::toString_void_]
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::constructor_class_QString_const__]
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::destructor_void_]
test dword [ebp - 0x58], 0x3fffffff
jne 0x4020d4
mov esi, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::destructor_void_]
lea ecx, [ebp - 0x60]
xor bl, bl
call esi
jmp 0x402565
mov ebx, dword [sym.imp.Qt5Network.dll_public:_class_QUrl___thiscall_QNetworkReply::url_void_]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call ebx
mov ecx, edi
mov byte [ebp - 4], 7
call dword [sym.imp.Qt5Network.dll_public:_enum_QNetworkReply::NetworkError___thiscall_QNetworkReply::error_void_]
test eax, eax
je 0x402200
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
push 0xffffffffffffffff
push 0
push str.Download_of
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
push eax
mov ecx, 0x599250
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QMetaObject::tr_char_const___char_const___int_]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::append_class_QString_const__]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call ebx
push ecx
mov ecx, esp
mov byte [ebp - 4], 0xa
mov dword [ecx], 0x1f00000
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QByteArray___thiscall_QUrl::toEncoded_class_QUrlTwoFlags_enum_QUrl::UrlFormattingOption__enum_QUrl::ComponentFormattingOption__]
mov ecx, eax
mov byte [ebp - 4], 0xb
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::append_char_const__]
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QUrl::destructor_void_]
push str._failed:
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::append_char_const__]
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QIODevice::errorString_void_]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
push ecx
mov ecx, eax
call dword [sym.imp.Qt5Core.dll__toLocal8Bit_QString__QHAE_AVQByteArray__XZ]
mov ecx, eax
mov byte [ebp - 4], 0xd
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::append_char_const__]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov ecx, esi
call fcn.00409d80
lea ecx, [ebp + 8]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
xor bl, bl
jmp 0x40235e
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404570
push edi
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 0xe
push eax
mov ecx, esi
call fcn.00404750
test al, al
jne 0x40222a
xor bl, bl
jmp 0x402355
lea ecx, [ebp - 0x10]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
push 0xffffffffffffffff
push 0
push str.Download_of
lea eax, [ebp + 8]
mov byte [ebp - 4], 0xf
push eax
mov ecx, 0x599250
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QMetaObject::tr_char_const___char_const___int_]
lea eax, [ebp + 8]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::append_class_QString_const__]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xf
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.Qt5Core.dll__toLocal8Bit_QString__QGBE_AVQByteArray__XZ]
mov ecx, eax
mov byte [ebp - 4], 0x11
call dword [sym.imp.Qt5Core.dll_public:_char_const____thiscall_QByteArray::constData_void_const]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::append_char_const__]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xf
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
push str._succeeded
lea ecx, [ebp - 0x10]
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::append_char_const__]
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
push eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov ecx, esi
call fcn.00409d80
push str.config
lea ecx, [ebp + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QString::operator_char_const__const]
test al, al
je 0x402377
mov eax, dword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov dword [ebp + 8], eax
push 0xa
push str.passSingle
mov byte [ebp - 4], 0x12
call dword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [ebp + 8]
call fcn.00401590
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x12
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea eax, [ebp + 8]
mov dword [ebp - 0x28], ecx
push eax
call fcn.00401100
push ecx
push esp
mov ecx, esi
mov byte [ebp - 4], 0x14
call fcn.00401f90
mov ecx, esi
mov byte [ebp - 4], 0x12
call fcn.00409df0
mov ecx, esi
call fcn.00409ce0
lea ecx, [ebp + 8]
call fcn.00401250
mov bl, 1
lea ecx, [ebp - 0x10]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x30]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QUrl::destructor_void_]
mov esi, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::destructor_void_]
lea ecx, [ebp - 0x60]
call esi
jmp 0x402565
push str.Launcher.dat
lea ecx, [ebp + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QString::operator_char_const__const]
test al, al
je 0x40234a
mov edi, dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QCoreApplication::applicationDirPath_void_]
lea eax, [ebp - 0x20]
push eax
call edi
push 0x40eafc
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x15
push eax
call fcn.00401400
push str.Launcher.dat
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0x16
push eax
call fcn.00401400
add esp, 0x1c
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x17
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QFile::constructor_class_QString_const__]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x14]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x1b
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x38]
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QFile::exists_void_const]
test al, al
jne 0x402404
push ecx
mov eax, esp
push 0xa
push 0x29a
jmp 0x402470
lea eax, [ebp - 0x2c]
push eax
call edi
push 0x40eafc
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x1c
push eax
call fcn.00401400
push str.tmp.exe
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x1d
push eax
call fcn.00401400
add esp, 0x1c
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x1e
call dword [sym.imp.Qt5Core.dll_public:_bool___thiscall_QFile::rename_class_QString_const__]
lea ecx, [ebp - 0x24]
mov bl, al
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x28]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x1b
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
test bl, bl
jne 0x402491
push ecx
mov eax, esp
push 0xa
push 0x2a1
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::number_int__int_]
add esp, 0xc
mov ecx, esi
call fcn.00403880
lea ecx, [ebp - 0x38]
xor bl, bl
call dword [sym.imp.Qt5Core.dll_public_virtual:_void___thiscall_QFile::destructor_void_]
jmp 0x40234c
lea ecx, [ebp - 0x38]
call dword [sym.imp.Qt5Core.dll_public_virtual:_void___thiscall_QFileDevice::close_void_]
mov eax, dword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov dword [ebp + 8], eax
push 0xa
push str.passSingle
mov byte [ebp - 4], 0x1f
call dword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____cdecl_QString::fromAscii_helper_char_const___int_]
add esp, 8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x20
push eax
lea ecx, [ebp + 8]
call fcn.00401590
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1f
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp + 8]
mov dword [ebp - 0x2c], ecx
push eax
call fcn.00401100
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x21
push eax
call edi
push 0x40eafc
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0x22
push eax
call fcn.00401400
add esp, 0xc
mov byte [ebp - 4], 0x23
mov ecx, esp
push str.tmp.exe
push eax
push ecx
call fcn.00401400
add esp, 0xc
mov ecx, esi
mov byte [ebp - 4], 0x25
call fcn.00409df0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1f
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov ecx, esi
call fcn.00409ce0
lea ecx, [ebp + 8]
mov bl, 1
call fcn.00401250
lea ecx, [ebp - 0x38]
call dword [sym.imp.Qt5Core.dll_public_virtual:_void___thiscall_QFile::destructor_void_]
jmp 0x40234c
mov esi, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QVariant::destructor_void_]
xor bl, bl
lea ecx, [ebp - 0x50]
call esi
lea ecx, [ebp + 0xc]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8