Function at 0x425900
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e326e
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x53132c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x144]
push edx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xac], ecx
call fcn.0040d750
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xa0], edi
cmp ecx, edi
jne 0x425964
cmp esi, edi
je 0x4259e9
mov eax, dword [ebp - 0xac]
mov eax, dword [eax + 0x30]
mul ecx
push 0x5145ec
push ecx
push edx
mov edi, eax
push edi
lea ecx, [ebp - 0x144]
push str.Range:bytes
push ecx
mov dword [ebp - 0xa0], edx
call fcn.00427b10
add esp, 8
push eax
call fcn.004260d0
add esp, 4
push eax
call fcn.00427b10
add esp, 8
test esi, esi
je 0x4259d5
cmp esi, dword [ebx + 0x50]
jae 0x4259d5
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + 0x30]
mul esi
add eax, edi
adc edx, dword [ebp - 0xa0]
sub eax, 1
sbb edx, 0
push edx
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.004260d0
lea ecx, [ebp - 0x144]
push 0x514600
push ecx
call fcn.00427b10
add esp, 8
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x144]
call fcn.0040d830
mov eax, dword [ebp - 0x98]
mov esi, dword [eax + 0x5c]
mov edx, dword [ebp - 0x6c]
mov ecx, 8
cmp dword [ebp - 0x58], ecx
jae 0x425a10
lea edx, [ebp - 0x6c]
cmp dword [ebx + 0x14], ecx
jb 0x425a19
mov ecx, dword [ebx]
jmp 0x425a1b
mov ecx, ebx
mov eax, dword [eax + 0x58]
push 0
push esi
mov esi, dword [ebp - 0x5c]
push esi
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 2
test esi, esi
jne 0x425ad8
cmp dword [ebp - 0x58], 8
jb 0x425a54
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00458691
add esp, 4
mov edx, dword [ebp - 0x144]
xor eax, eax
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], ax
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x98], ecx
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], 3
call fcn.0040d850
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0xf4]
mov dword [ebp + edx - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
push eax
mov dword [ebp - 0xf4], vtable.std::ios_base.0
call fcn.00447a81
add esp, 4
mov eax, 5
jmp 0x4260ab
push 0
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0x13
push esi
mov dword [ebp - 0x94], 0x3c
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, 1
je 0x425b46
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x58], 8
jb 0x425b16
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00458691
add esp, 4
xor ecx, ecx
mov word [ebp - 0x6c], cx
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0040be70
mov eax, 6
jmp 0x4260ab
lea edx, [ebp - 0x50]
push edx
call fcn.0045bd34
add esp, 4
cmp eax, 0x194
jne 0x425ba2
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x58], 8
jb 0x425b72
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00458691
add esp, 4
xor ecx, ecx
mov word [ebp - 0x6c], cx
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
call fcn.0040be70
mov eax, 7
jmp 0x4260ab
cmp eax, 0xc8
je 0x425bdb
cmp eax, 0xce
je 0x425bdb
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x6c]
call fcn.0043e460
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], 0xffffffff
call fcn.0040be70
mov eax, 6
jmp 0x4260ab
push 0
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x50]
push eax
push 5
push esi
mov dword [ebp - 0x94], 0x3c
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, 1
jne 0x425bb0
lea ecx, [ebp - 0x50]
push ecx
call fcn.0045bd3f
add esp, 4
add dword [ebx + 0x48], eax
adc dword [ebx + 0x4c], edx
cmp dword [ebp + 0x10], 0
je 0x425c5a
push 0
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x50]
push eax
push 0x12
push esi
mov dword [ebp - 0x94], 0x3c
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, 1
jne 0x425bb0
lea esi, [ebp - 0x50]
call fcn.0040c990
mov esi, dword [ebp - 0x8c]
test al, al
jne 0x425c5a
mov dword [ebp + 0x10], 0
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp + 8]
push 0
push ecx
push edi
push edx
call fcn.0045e6bd
add esp, 0x10
cmp eax, edi
jne 0x425c80
cmp edx, dword [ebp - 0xa0]
je 0x425d4d
push 0x9c40
mov ecx, 0x536e48
call fcn.0044af00
test al, al
je 0x425d22
push 1
push 2
lea ecx, [ebp - 0x1dc]
call fcn.004030f0
mov byte [ebp - 4], 4
call fcn.0045c584
mov eax, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0x1dc]
push str.SmartDownloadJob::getFileBytes_error_seeking_in_destination_file:
push ecx
call fcn.00404c20
add esp, 0xc
mov ecx, eax
call fcn.00414820
lea edx, [ebp - 0x88]
push edx
lea ecx, [ebp - 0x1dc]
call fcn.004031f0
push 0x1b3
push str.SmartDownloadJob.cpp
push eax
push 0x9c40
mov ecx, 0x536e48
mov byte [ebp - 4], 5
call fcn.0044af10
cmp dword [ebp - 0x74], 0x10
jb 0x425d13
mov eax, dword [ebp - 0x88]
push eax
call fcn.00458691
add esp, 4
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call fcn.00401b70
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x6c]
call fcn.0043e460
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], 0xffffffff
call fcn.0040be70
mov eax, 4
jmp 0x4260ab
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0xa0], edi
mov edi, edi
mov edx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x40]
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, dword [ebp - 0x8c]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x425e53
mov eax, dword [ebp - 0xa8]
add esi, eax
test eax, eax
je 0x425e28
mov edx, dword [ebx + 0x40]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.0045e2c7
add esp, 0xc
cmp eax, dword [ebp - 0xa8]
jne 0x425f1d
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x425e02
mov eax, dword [eax + 0x30]
test eax, eax
je 0x425e02
cmp esi, eax
jb 0x425e02
sub esi, eax
inc edi
cmp esi, eax
jae 0x425dc6
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0xa0], edi
test eax, eax
je 0x425e02
cmp dword [eax + 0x10], 0
mov edx, dword [ebx + 0x50]
je 0x426069
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
push ebx
push dword [ebp - 0x98]
push edx
mov edx, dword [eax + 4]
push edi
call edx
test al, al
je 0x425fe6
mov edi, dword [ebp - 0x98]
call fcn.0040bf70
cmp al, 1
je 0x426017
cmp dword [ebp - 0xa8], 0
mov edi, dword [ebp - 0xa0]
jne 0x425d60
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x90], esi
test eax, eax
jne 0x426020
cmp esi, dword [ebx + 0x48]
jne 0x426082
cmp eax, dword [ebx + 0x4c]
je 0x426058
jmp 0x426082
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x9c40
mov ecx, 0x536e48
mov esi, eax
call fcn.0044af00
test al, al
je 0x425eec
push 1
push 2
lea ecx, [ebp - 0x1dc]
call fcn.004030f0
push esi
push ecx
lea eax, [ebp - 0x1dc]
push str.SmartDownload::download_failed_with:
push eax
mov byte [ebp - 4], 6
call fcn.00404c20
add esp, 0xc
mov ecx, eax
call fcn.0040d470
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x1dc]
call fcn.004031f0
push 0x1c2
push str.SmartDownloadJob.cpp
push eax
push 0x9c40
mov ecx, 0x536e48
mov byte [ebp - 4], 7
call fcn.0044af10
lea ecx, [ebp - 0x88]
call fcn.00475a20
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call fcn.00401b70
mov edx, dword [ebp - 0x8c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x6c]
call fcn.0043e460
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], 0xffffffff
call fcn.0040be70
mov eax, 8
jmp 0x4260ab
call fcn.0045c584
mov esi, dword [eax]
push 0x9c40
mov ecx, 0x536e48
call fcn.0044af00
test al, al
je 0x425fb5
push 1
push 2
lea ecx, [ebp - 0x1dc]
call fcn.004030f0
push esi
push ecx
lea eax, [ebp - 0x1dc]
push str.SmartDownload::download_error_while_writing_to_destination_file:
push eax
mov byte [ebp - 4], 8
call fcn.00404c20
add esp, 0xc
mov ecx, eax
call fcn.00414820
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x1dc]
call fcn.004031f0
push 0x1ce
push str.SmartDownloadJob.cpp
push eax
push 0x9c40
mov ecx, 0x536e48
mov byte [ebp - 4], 9
call fcn.0044af10
lea ecx, [ebp - 0x88]
call fcn.00475a20
lea ecx, [ebp - 0x1dc]
mov byte [ebp - 4], 2
call fcn.00401b70
mov edx, dword [ebp - 0x8c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x6c]
call fcn.0043e460
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], 0xffffffff
call fcn.0040be70
mov eax, 9
jmp 0x4260ab
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x6c]
call fcn.0043e460
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], 0xffffffff
call fcn.0040be70
mov eax, 0x11
jmp 0x4260ab
mov ecx, dword [ebp - 0x8c]
push ecx
jmp 0x425fed
mov edi, dword [eax + 0x30]
mov eax, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x48]
push 0
push edi
push eax
push esi
call fcn.00460e30
or eax, edx
je 0x426082
mov eax, dword [ebx + 0x4c]
push 0
push edi
push eax
push esi
call fcn.00460e30
xor ecx, ecx
cmp dword [ebp - 0x90], eax
jne 0x426082
cmp ecx, edx
jne 0x426082
mov edi, dword [ebp - 0xa0]
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x426082
mov edx, dword [ebx + 0x50]
inc edi
cmp dword [eax + 0x10], 0
jne 0x42606e
call fcn.00447cac
mov esi, dword [ebp - 0x98]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx]
push ebx
push esi
push edx
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x6c]
call fcn.0043e460
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], 0xffffffff
call fcn.0040be70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004587b6
mov esp, ebp
pop ebp
ret 0xc