Function at 0x140001850
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
sub rsp, 0x508
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rcx
mov rax, rcx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x4b8], rcx
mov qword [rsp + 0x4b0], rdx
lea rcx, str.WinINet_Example
mov edx, 1
xor eax, eax
mov r9d, eax
xor eax, eax
mov r8, r9
mov dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x4a8], rax
cmp qword [rsp + 0x4a8], 0
jne 0x14000190f
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x4a7]
mov qword [rsp + 0x4c0], rax
mov rax, qword [rsp + 0x4c0]
mov qword [rsp + 0x500], rax
lea rdx, [0x1400ef020]
lea r8, [rsp + 0x4a7]
call fcn.1400cecd0
lea rax, [rsp + 0x4a7]
mov qword [rsp + 0x4d8], rax
mov rcx, qword [rsp + 0x4d8]
call fcn.1400b7080
jmp 0x140001b79
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x4a8]
mov qword [rsp + 0x40], rax
call fcn.140033e80
mov rcx, qword [rsp + 0x40]
mov rdx, rax
xor eax, eax
mov r8d, eax
xor r9d, r9d
mov dword [rsp + 0x20], 0x80000000
mov qword [rsp + 0x28], 0
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [rsp + 0x498], rax
cmp qword [rsp + 0x498], 0
jne 0x1400019cd
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x497]
mov qword [rsp + 0x4c8], rax
mov rax, qword [rsp + 0x4c8]
mov qword [rsp + 0x4f8], rax
lea rdx, [0x1400ef020]
lea r8, [rsp + 0x497]
call fcn.1400cecd0
lea rax, [rsp + 0x497]
mov qword [rsp + 0x4e0], rax
mov rcx, qword [rsp + 0x4e0]
call fcn.1400b7080
jmp 0x140001b79
mov rcx, qword [rsp + 0x50]
mov byte [rsp + 0x496], 0
call fcn.1400cdc10
mov rcx, qword [rsp + 0x498]
lea rdx, [rsp + 0x90]
mov r8d, 0x400
lea r9, [rsp + 0x8c]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, eax
xor eax, eax
cmp ecx, 0
mov byte [rsp + 0x3f], al
je 0x140001a23
cmp dword [rsp + 0x8c], 0
seta al
mov byte [rsp + 0x3f], al
mov al, byte [rsp + 0x3f]
test al, 1
jne 0x140001a34
jmp 0x140001b38
lea r8, [rsp + 0x90]
mov r9d, dword [rsp + 0x8c]
mov ecx, 0xfde9
xor edx, edx
xor eax, eax
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jle 0x140001b33
movsxd rdx, dword [rsp + 0x88]
lea rax, [rsp + 0x67]
mov qword [rsp + 0x4d0], rax
mov rax, qword [rsp + 0x4d0]
mov qword [rsp + 0x4f0], rax
lea rcx, [rsp + 0x68]
xor r8d, r8d
lea r9, [rsp + 0x67]
call fcn.1400ced70
lea rax, [rsp + 0x67]
mov qword [rsp + 0x4e8], rax
mov rcx, qword [rsp + 0x4e8]
call fcn.1400b7080
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x68]
xor eax, eax
mov edx, eax
call fcn.1400cf020
mov r8, qword [rsp + 0x30]
mov r9d, dword [rsp + 0x38]
mov r10, rax
mov eax, dword [rsp + 0x88]
mov ecx, 0xfde9
xor edx, edx
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
call fcn.1400cf100
lea rcx, [rsp + 0x68]
call fcn.1400cee40
jmp 0x1400019df
mov rcx, qword [rsp + 0x498]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x4a8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [rsp + 0x496], 1
test byte [rsp + 0x496], 1
jne 0x140001b74
mov rcx, qword [rsp + 0x50]
call fcn.1400cee40
jmp 0x140001b79
mov rax, qword [rsp + 0x58]
add rsp, 0x508
ret