Function at 0x14004ab40
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x208
mov rax, qword [0x1400ced18]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x228], 0
je 0x14004abf4
mov eax, dword [rsp + 0x230]
mov dword [rsp + 0x20], eax
lea r9, str.Content_Type:_application_octet_stream_r_nContent_Length:__u_r_n
mov r8, 0xffffffffffffffff
mov edx, 0x7f
lea rcx, [rsp + 0x70]
call fcn.14004c950
mov eax, 1
imul rax, rax, 0x7f
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x80
jae 0x14004abcc
jmp 0x14004abd1
call fcn.1400826cc
mov rax, qword [rsp + 0x60]
mov byte [rsp + rax + 0x70], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [rsp + 0x40], eax
xor eax, eax
mov word [rsp + 0x30], ax
mov eax, dword [rsp + 0x230]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x228]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x220]
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x14004ad58
mov dword [rsp + 0x38], reloc.OLEAUT32.dll_SetErrorInfo
mov dword [rsp + 0x48], 0x100
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
lea r8, [rsp + 0xf0]
mov edx, 0x13
mov rcx, qword [rsp + 0x220]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x14004ad28
lea rcx, [rsp + 0xf0]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x191
je 0x14004ac9f
cmp dword [rsp + 0x38], 0x193
je 0x14004ac9f
cmp dword [rsp + 0x38], 0x197
jne 0x14004acfb
mov qword [rsp + 0x20], 0
mov r9d, 3
mov r8d, 0x2eee
mov rdx, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x218]
call qword [sym.imp.WININET.dll_InternetErrorDlg]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x2f00
je 0x14004acf9
mov rax, qword [rsp + 0x210]
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0xcc], ecx
mov eax, 0xef1c
mov word [rsp + 0x30], ax
jmp 0x14004ae95
jmp 0x14004ad26
cmp dword [rsp + 0x38], 0xc8
je 0x14004ad21
mov rax, qword [rsp + 0x210]
mov ecx, dword [rsp + 0x38]
mov dword [rax + 0xcc], ecx
mov eax, 0xef1d
mov word [rsp + 0x30], ax
jmp 0x14004ae95
jmp 0x14004ad53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x210]
mov ecx, dword [rsp + 0x50]
mov dword [rax + 0xcc], ecx
mov eax, 0xef1f
mov word [rsp + 0x30], ax
jmp 0x14004ae95
jmp 0x14004ae90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x44], 0x4c7
cmp dword [rsp + 0x34], 0x2f0d
je 0x14004ad96
cmp dword [rsp + 0x34], 0x2f06
je 0x14004ad96
cmp dword [rsp + 0x34], 0x2f05
je 0x14004ad96
cmp dword [rsp + 0x34], 0x2f19
jne 0x14004ae5a
mov qword [rsp + 0x20], 0
mov r9d, 7
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x220]
mov rcx, qword [rsp + 0x218]
call qword [sym.imp.WININET.dll_InternetErrorDlg]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14004ae3a
cmp dword [rsp + 0x34], 0x2f19
jne 0x14004ae38
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x58], 4
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x3c]
mov edx, 0x1f
mov rcx, qword [rsp + 0x220]
call qword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
jne 0x14004ae0e
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
bts eax, 7
mov dword [rsp + 0x3c], eax
mov r9d, 4
lea r8, [rsp + 0x3c]
mov edx, 0x1f
mov rcx, qword [rsp + 0x220]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
jmp 0x14004ae58
mov rax, qword [rsp + 0x210]
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0xcc], ecx
mov eax, 0xef1b
mov word [rsp + 0x30], ax
jmp 0x14004ae95
jmp 0x14004ae90
cmp dword [rsp + 0x34], 0x2ee2
jne 0x14004ae72
mov eax, 0xef1a
mov word [rsp + 0x30], ax
jmp 0x14004ae95
mov rax, qword [rsp + 0x210]
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0xcc], ecx
mov eax, 0xef1f
mov word [rsp + 0x30], ax
jmp 0x14004ae95
jmp 0x14004abfb
movzx eax, word [rsp + 0x30]
jmp 0x14004aea3
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140082550
add rsp, 0x208
ret