Function at 0x4a6c80
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov esi, ecx
mov eax, dword [0x547008]
xor eax, ebp
mov dword [esp + 0x70], eax
mov ecx, dword [0x55be44]
test ecx, ecx
je 0x4a6cc4
push dword [ebp + 8]
call fcn.004a6c80
mov ebx, eax
mov ecx, dword [esp + 0x70]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
movzx eax, byte [esi + 0x1b]
test al, al
jns 0x4a6ccf
mov eax, dword [esi + 0x14]
xor ebx, ebx
test eax, eax
je 0x4a6ce4
mov ecx, dword [esp + 0x70]
xor ecx, ebp
call fcn.004e8be6
mov eax, ebx
jmp 0x4a6cba
lea edi, [esp + 0x60]
mov dword [edi], ebx
lea eax, [esp + 0x5c]
mov dword [eax], 4
push ebx
push eax
push edi
push 0x20000013
push dword [esi + 0x58]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne cl
mov eax, dword [edi]
cmp eax, 0xc8
sete bl
and bl, cl
jne 0x4a6cd5
xor ecx, ecx
dec ecx
lea edi, [esp + 0x64]
mov dword [edi + 4], ecx
mov dword [edi], ecx
mov word [edi + 8], 0xffff
push 0xa
push edi
push eax
call fcn.004fb780
add esp, 0xc
push 0x18
call fcn.004e82a5
add esp, 4
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], 0x80000018
mov dword [esp + 0x54], 0x11
cmp eax, str.final_query_info_
ja 0x4a6d6a
lea ecx, [eax + 0x11]
cmp ecx, str.final_query_info_
ja 0x4a6eb8
movups xmm0, xmmword [str.final_query_info_]
movups xmmword [eax], xmm0
mov word [eax + 0x10], 0x2d
push edi
call fcn.00503950
add esp, 4
lea ecx, [esp + 0x50]
push eax
push edi
call fcn.0047cfe0
mov edi, eax
movzx eax, byte [eax + 0xb]
test al, al
js 0x4a6dbc
mov edx, 0xa
mov ecx, edi
cmp eax, 0xa
jne 0x4a6dce
xor eax, eax
inc eax
mov ecx, edi
push 0x52d67b
push eax
push 0
push edx
push edx
push eax
push edx
call fcn.0047c9b0
jmp 0x4a6e07
mov edx, 0x7fffffff
and edx, dword [edi + 8]
dec edx
mov eax, dword [edi + 4]
cmp edx, eax
je 0x4a6da4
mov ecx, dword [edi]
lea edx, [ecx + eax]
cmp edx, 0x52d67b
ja 0x4a6df1
mov dword [esp + 4], edi
lea edi, [ecx + eax]
inc edi
cmp edi, 0x52d67b
mov edi, dword [esp + 4]
ja 0x4a6eb8
mov byte [edx], 0x2d
inc eax
cmp byte [edi + 0xb], 0
js 0x4a6e11
mov edx, eax
and dl, 0x7f
mov byte [edi + 0xb], dl
mov byte [ecx + eax], 0
cmp byte [edi + 0xb], 0
js 0x4a6e16
mov edx, edi
jmp 0x4a6e18
mov dword [edi + 4], eax
jmp 0x4a6e03
mov edx, dword [edi]
lea edi, [esi + 0x10]
lea ecx, [esp + 8]
call fcn.004a6930
cmp byte [esi + 0x1b], 0
jns 0x4a6e34
push dword [edi]
call fcn.004e82d5
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [edi + 8], eax
movsd xmm0, qword [esp + 8]
movsd qword [edi], xmm0
mov byte [esp + 0x13], 0
mov word [esp + 8], 0
cmp byte [esp + 0x5b], 0
jns 0x4a6e64
push dword [esp + 0x50]
call fcn.004e82d5
add esp, 4
lea edi, [esp + 8]
mov ecx, edi
push 0x144
push str.FinalizeDownload
push 2
call fcn.0045baa0
lea ecx, [esp + 0x44]
push 0x5349ee
push str.Unsuccessful_download:
call fcn.004148f0
add esi, 4
lea ecx, [esp + 0x10]
push esi
call fcn.00414720
mov ecx, edi
call fcn.0045bd40
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4a6cd5
mov eax, dword [esp + 0x60]
mov dword [ecx], eax
jmp 0x4a6cd5
push str.char_traits::copy_overlapped_range
push str.__s2_____s1____s2_____s1____n
push 0xf3
push str....._third_partylibc_srcinclude__stringchar_traits.h
push str._s:_d:_assertion__s_failed:__s_n
call fcn.00457520
int3