Function at 0x14001fb49
Capabilities:
Check http status code

Disassembly:
push r15
mov eax, 0x29d8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140077930
sub rsp, rax
lea rax, [0x140094c5d]
mov qword [rsp + 0x78], rax
mov rbx, rcx
xor eax, eax
mov ecx, 0x19
lea rdi, [rsp + 0xec]
mov rsi, r8
xor r8d, r8d
mov r15, rdx
rep stosd dword [rdi], eax
mov r14, r9
lea rax, [rsp + 0xa8]
cmp qword [0x1401110a8], 0
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x80], r8
mov dword [rsp + 0xe8], 0x68
mov dword [rsp + 0xf8], 1
mov dword [rsp + 0x108], 0x40
mov dword [rsp + 0x118], 1
mov qword [rsp + 0x120], rax
mov dword [rsp + 0x128], pe_nt_image_headers64
mov dword [rsp + 0x138], 1
jne 0x14001fc58
call fcn.14001f455
lea rdi, str.InternetCrackUrlA
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_SetVolumeLabelA]
mov qword [0x1401110a8], rax
test rax, rax
jne 0x14001fc58
call fcn.14003893c
lea r8, str.WinInet
mov rdx, rdi
lea rcx, [0x140094b2c]
mov r9, rax
call fcn.140038472
xor ecx, ecx
xor ebx, ebx
xor r12d, r12d
xor r13d, r13d
mov qword [rsp + 0x48], rcx
jmp 0x14001ff94
cmp qword [0x1401110a0], 0
jne 0x14001fc86
call fcn.14001f455
lea rdi, str.InternetConnectA
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_SetVolumeLabelA]
mov qword [0x1401110a0], rax
test rax, rax
je 0x14001fc26
cmp qword [0x140111098], 0
jne 0x14001fcb8
call fcn.14001f455
lea rdi, str.InternetReadFile
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_SetVolumeLabelA]
mov qword [0x140111098], rax
test rax, rax
je 0x14001fc26
cmp qword [0x140111090], 0
jne 0x14001fcea
call fcn.14001f455
lea rdi, str.InternetCloseHandle
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_SetVolumeLabelA]
mov qword [0x140111090], rax
test rax, rax
je 0x14001fc26
cmp qword [0x140111088], 0
jne 0x14001fd1c
call fcn.14001f455
lea rdi, str.HttpOpenRequestA
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_SetVolumeLabelA]
mov qword [0x140111088], rax
test rax, rax
je 0x14001fc26
cmp qword [0x140111080], 0
jne 0x14001fd4e
call fcn.14001f455
lea rdi, str.HttpSendRequestA
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_SetVolumeLabelA]
mov qword [0x140111080], rax
test rax, rax
je 0x14001fc26
cmp qword [0x140111078], 0
jne 0x14001fd80
call fcn.14001f455
lea rdi, str.HttpQueryInfoA
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_SetVolumeLabelA]
mov qword [0x140111078], rax
test rax, rax
je 0x14001fc26
mov rax, qword [0x1400b5de0]
xor edx, edx
cmp qword [rsp + 0x2a40], 0
mov dword [0x140110f50], 0x194
mov dword [rax], edx
je 0x14001fdbb
xor eax, eax
mov r8, qword [rsp + 0x2a40]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
or ecx, 0xffffffff
call fcn.140045210
test rbx, rbx
jne 0x14001fdda
mov r8d, 0xd4
lea rdx, str.net.c
lea rcx, str.url___NULL
call qword [sym.imp.msvcrt.dll_memmove]
test r14, r14
je 0x14001fde4
xor eax, eax
mov qword [r14], rax
mov rcx, r15
test r15, r15
jne 0x14001fdef
mov rcx, rbx
call fcn.14001f1d0
cmp qword [rsp + 0x2a40], 0
mov qword [rsp + 0x50], rax
je 0x14001fe35
mov rax, qword [rsp + 0x50]
xor edx, edx
mov ecx, 1
mov r9d, 0xc0d
mov r8d, 0x1388
mov qword [rsp + 0x20], rax
call fcn.14001ea8e
mov rdx, rbx
lea rcx, str.Downloading__s
call fcn.140038472
mov rcx, rbx
call fcn.1400797e8
xor r8d, r8d
lea r9, [rsp + 0xe8]
mov rcx, rbx
mov edx, eax
call qword [0x1401110a8]
test eax, eax
je 0x14001fe6d
cmp qword [rsp + 0x100], 0
je 0x14001fe6d
cmp qword [rsp + 0x130], 0
jne 0x14001fe7e
call fcn.14003893c
lea rcx, str.Unable_to_decode_URL:__s
mov rdx, rax
jmp 0x14001feaa
mov edx, 1
mov rcx, rsi
mov byte [rsp + 0xe7], 0
call fcn.14001f551
mov r13, rax
test rax, rax
jne 0x14001feb4
call fcn.14003893c
lea rcx, str.Could_not_open_Internet_session:__s
mov rdx, rax
call fcn.140038472
jmp 0x14001fc44
xor eax, eax
xor r12d, r12d
mov dword [rsp + 0x28], 3
xor r9d, r9d
mov dword [rsp + 0x30], eax
xor eax, eax
mov rcx, r13
movzx r8d, word [rsp + 0x10c]
mov qword [rsp + 0x38], r12
mov rdx, qword [rsp + 0x100]
mov qword [rsp + 0x20], rax
call qword [0x1401110a0]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14001ff22
call fcn.14003893c
mov rdx, qword [rsp + 0x100]
lea rcx, str.Could_not_connect_to_server__s:_d:__s
xor r12d, r12d
movzx r8d, word [rsp + 0x10c]
mov r9, rax
call fcn.140038472
jmp 0x14001ff92
cmp dword [rsp + 0xfc], 4
mov r10, qword [0x140111088]
mov eax, 0x408c600
jne 0x14001ff3d
mov eax, 0x488c600
mov dword [rsp + 0x30], eax
xor edi, edi
lea rax, [rsp + 0x78]
xor ebp, ebp
mov qword [rsp + 0x38], rdi
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
lea rdx, [0x140094d72]
mov qword [rsp + 0x28], rax
mov r8, qword [rsp + 0x130]
mov qword [rsp + 0x20], rbp
call r10
mov r12, rax
test rax, rax
jne 0x14001ff9d
call fcn.14003893c
mov rdx, rbx
lea rcx, str.Could_not_open_URL__s:__s
mov r8, rax
call fcn.140038472
xor ebx, ebx
or rbp, 0xffffffffffffffff
jmp 0x140020313
xor esi, esi
xor r9d, r9d
or r8d, 0xffffffff
mov rcx, rax
mov dword [rsp + 0x20], esi
lea rdx, str.Accept_Encoding:_gzip__deflate
call qword [0x140111080]
test eax, eax
jne 0x14001ffd2
call fcn.14003893c
lea rcx, str.Unable_to_send_request:__s
mov rdx, rax
jmp 0x140020092
lea r9, [rsp + 0x6c]
xor r11d, r11d
mov edx, 0x20000013
mov rcx, r12
mov qword [rsp + 0x40], r9
lea r8, [0x140110f50]
mov dword [rsp + 0x6c], 4
mov qword [rsp + 0x20], r11
call qword [0x140111078]
mov r9, qword [rsp + 0x40]
cmp dword [0x140110f50], 0xc8
je 0x140020056
mov dword [0x1401110b8], 0x2efc
mov ecx, 0xc0032efc
call qword [0x14011c730]
mov r8d, dword [0x140110f50]
lea rdx, str.Unable_to_access_file
cmp r8d, 0x194
jne 0x140020045
lea rdx, str.File_not_found
lea rcx, str._s:__d
call fcn.140038472
jmp 0x14001ff92
xor r10d, r10d
lea rsi, [rsp + 0x88]
mov edx, 5
mov rcx, r12
mov dword [rsp + 0x6c], 0x20
mov r8, rsi
mov qword [rsp + 0x20], r10
call qword [0x140111078]
test eax, eax
jne 0x14002009c
call fcn.14003893c
lea rcx, str.Unable_to_retrieve_file_length:__s
mov rdx, rax
call fcn.140038472
jmp 0x14001ff92
xor edx, edx
mov r8d, 0xa
mov rcx, rsi
call sub.msvcrt.dll_fwprintf_s
cmp qword [rsp + 0x2a40], 0
mov qword [rsp + 0x40], rax
je 0x14002017f
xor r8d, r8d
xor edx, edx
lea rbp, [rsp + 0x1d0]
mov rcx, rax
call fcn.140038d8b
lea rcx, str.File_length:__s
mov rdx, rax
call fcn.140038472
mov rax, qword [0x1400b69c0]
mov rsi, qword [sym.imp.msvcrt.dll_clearerr]
cmp dword [rax], 0
je 0x140020124
mov rcx, rbx
call fcn.14001f20a
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rbx, rax
call fcn.140038d8b
mov qword [rsp + 0x28], rbx
lea r9, [0x140094e04]
mov qword [rsp + 0x20], rax
jmp 0x14002014f
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
xor edx, edx
call fcn.140038d8b
mov rcx, rbx
mov rdi, rax
call fcn.14001f20a
mov qword [rsp + 0x28], rdi
lea r9, [0x140094e0c]
mov qword [rsp + 0x20], rax
or r8, 0xffffffffffffffff
mov edx, pe_nt_image_headers64
mov rcx, rbp
call rsi
mov qword [rsp + 0x20], rbp
mov r9d, 0xc0d
xor edx, edx
mov r8d, 0x1388
xor ecx, ecx
mov byte [rsp + 0x24f], 0
call fcn.14001ea8e
test r15, r15
je 0x1400201b9
mov r8d, pe_nt_image_headers64
mov edx, 0xc0000000
mov rcx, r15
call fcn.14001f3eb
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400201f5
call fcn.14003893c
mov rdx, qword [rsp + 0x50]
lea rcx, str.Unable_to_create_file__s:__s
mov r8, rax
jmp 0x14001ff8d
lea rcx, str.No_buffer_pointer_provided_for_download
test r14, r14
je 0x1400201eb
mov rax, qword [rsp + 0x40]
mov edx, 1
or rbp, 0xffffffffffffffff
lea rcx, [rax + 1]
call sub.msvcrt.dll_vfprintf
mov qword [r14], rax
test rax, rax
jne 0x1400201f5
lea rcx, str.Could_not_allocate_buffer_for_download
call fcn.140038472
jmp 0x14001ff92
lea rax, [rsp + 0x74]
xor ebx, ebx
mov qword [rsp + 0x58], rax
mov rax, qword [0x1400b5de0]
cmp dword [rax], 0
js 0x140020313
lea rsi, [rsp + 0x1d0]
mov r9, qword [rsp + 0x58]
mov r8d, 0x2800
mov rcx, r12
mov rdx, rsi
call qword [0x140111098]
test eax, eax
je 0x1400202ea
cmp dword [rsp + 0x74], 0
je 0x1400202ea
cmp qword [rsp + 0x2a40], 0
je 0x14002026d
xor r8d, r8d
mov r9, qword [rsp + 0x40]
mov edx, 0xca9
mov ecx, 0xfffffffe
mov dword [rsp + 0x20], r8d
mov r8, rbx
call fcn.140045210
mov r8d, dword [rsp + 0x74]
test r15, r15
je 0x1400202d0
xor ecx, ecx
lea r9, [rsp + 0x70]
mov rdx, rsi
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [0x14011c7d8]
test eax, eax
jne 0x1400202ae
call fcn.14003893c
mov rdx, qword [rsp + 0x50]
lea rcx, str.Error_writing_file__s:__s
mov r8, rax
call fcn.140038472
jmp 0x140020313
mov r9d, dword [rsp + 0x74]
mov r8d, dword [rsp + 0x70]
cmp r9d, r8d
je 0x1400202de
mov rdx, qword [rsp + 0x50]
lea rcx, str.Error_writing_file__s:_Only__d__d_bytes_written
call fcn.140038472
jmp 0x140020313
mov rax, qword [r14]
mov ecx, r8d
add rax, rbx
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x74]
add rbx, rax
jmp 0x140020201
mov rax, qword [rsp + 0x40]
cmp rbx, rax
je 0x140020317
mov r8, rax
mov rdx, rbx
lea rcx, str.Could_not_download_complete_file___read:__lld_bytes__expected:__lld_bytes
call fcn.140038472
mov rax, qword [0x1400b5de0]
mov dword [rax], 0xc003001d
xor esi, esi
jmp 0x140020364
cmp qword [rsp + 0x2a40], 0
mov dword [0x140110f50], 0xc8
je 0x14002035a
xor edx, edx
mov r9, qword [rsp + 0x40]
mov ecx, 0xfffffffe
mov dword [rsp + 0x20], edx
mov edx, 0xca9
mov r8, r9
call fcn.140045210
mov rdx, qword [rsp + 0x50]
lea rcx, str.Successfully_downloaded__s
call fcn.140038472
mov rbx, qword [rsp + 0x40]
mov esi, 1
call qword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
mov dword [0x1401110b8], eax
cmp rbp, 0xffffffffffffffff
je 0x140020388
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProductInfo]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CreateDirectorCreateEventACreateFileA]
test esi, esi
jne 0x1400203ab
test r15, r15
je 0x140020399
mov rcx, r15
call fcn.14001f923
test r14, r14
je 0x1400203ab
mov rcx, qword [r14]
call fcn.1400796c8
xor eax, eax
mov qword [r14], rax
test r12, r12
je 0x1400203b9
mov rcx, r12
call qword [0x140111090]
cmp qword [rsp + 0x48], 0
je 0x1400203cc
mov rcx, qword [rsp + 0x48]
call qword [0x140111090]
test r13, r13
je 0x1400203da
mov rcx, r13
call qword [0x140111090]
mov ecx, dword [0x1401110b8]
call qword [0x14011c730]
test esi, esi
jne 0x1400203ec
xor ebx, ebx
mov rax, rbx
add rsp, 0x29d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret