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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x3c8]
sub rsp, 0x4a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x18003fb50]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rbx, rdx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
lea rcx, str.A_WinINet_Example_Program_1.0
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r14, rax
test rax, rax
jne 0x18000b4fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, str.Error_in_InternetOpen:
call fcn.180012540
mov rcx, rax
mov edx, ebx
call fcn.18000cda0
mov r12, rax
mov dl, 0xa
mov rcx, rax
call fcn.18000cf80
mov ebx, edi
mov rax, qword [r12]
movsxd rcx, dword [rax + 4]
test byte [rcx + r12 + 0x10], 6
jne 0x18000b4b0
mov rcx, qword [rcx + r12 + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [r12]
movsxd rcx, dword [rax + 4]
add rcx, r12
test ebx, ebx
je 0x18000b4d5
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], rdi
jne 0x18000b4cd
or edx, 4
xor r8d, r8d
call fcn.180007a70
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rdi
mov word [rsi], di
xor r8d, r8d
lea rdx, [0x180036858]
mov rcx, rsi
call fcn.180006a30
jmp 0x18000b7f7
cmp qword [rbx + 0x18], 8
jb 0x18000b505
mov rbx, qword [rbx]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x84000100
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r13, rax
test rax, rax
jne 0x18000b5b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, str.Error_in_InternetOpenUrl:
call fcn.180012540
mov rcx, rax
mov edx, ebx
call fcn.18000cda0
mov r12, rax
mov dl, 0xa
mov rcx, rax
call fcn.18000cf80
mov ebx, edi
mov rcx, qword [r12]
movsxd rcx, dword [rcx + 4]
test byte [rcx + r12 + 0x10], 6
jne 0x18000b583
mov rcx, qword [rcx + r12 + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [r12]
movsxd rcx, dword [rax + 4]
add rcx, r12
test ebx, ebx
je 0x18000b5a8
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], rdi
jne 0x18000b5a0
or edx, 4
xor r8d, r8d
call fcn.180007a70
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x18000b4d5
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rdi
mov word [rsp + 0x40], di
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18000b6c7
nop dword [rax]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18000b6c7
lea r8, [rbp + rax - 0x70]
lea rax, [rsp + 0x40]
mov r9, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
cmovae rax, r9
mov rcx, qword [rsp + 0x50]
lea r12, [rax + rcx*2]
lea rax, [rsp + 0x40]
cmovae rax, r9
lea rbx, [rax + rcx*2]
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rdi
mov word [rsp + 0x68], di
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
call fcn.1800141b0
nop
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rax, qword [rsp + 0x40]
test r12, r12
jne 0x18000b66a
mov r12, rdi
jmp 0x18000b670
sub r12, rbx
sar r12, 1
test rbx, rbx
jne 0x18000b67a
mov rbx, rdi
jmp 0x18000b680
sub rbx, rax
sar rbx, 1
lea r9, [rsp + 0x68]
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.180013eb0
nop
cmp qword [rbp - 0x80], 8
jb 0x18000b6a7
mov rcx, qword [rsp + 0x68]
call fcn.1800176d4
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rbp - 0x70]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x18000b5f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18000b74a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rcx, str.Error_in_InternetReadFile:
call fcn.180012540
mov rcx, rax
mov edx, ebx
call fcn.18000cda0
mov r12, rax
mov dl, 0xa
mov rcx, rax
call fcn.18000cf80
mov ebx, edi
mov rcx, qword [r12]
movsxd rcx, dword [rcx + 4]
test byte [rcx + r12 + 0x10], 6
jne 0x18000b724
mov rcx, qword [rcx + r12 + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove ebx, ecx
mov rax, qword [r12]
movsxd rcx, dword [rax + 4]
add rcx, r12
test ebx, ebx
je 0x18000b74a
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x18000b742
or edx, 4
xor r8d, r8d
call fcn.180007a70
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rdi
mov word [rsi], di
lea rax, [rsp + 0x40]
cmp rsi, rax
je 0x18000b7e2
cmp qword [rsi + 0x18], 8
jb 0x18000b784
mov rcx, qword [rsi]
call fcn.1800176d4
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rdi
mov word [rsi], di
mov rcx, qword [rsp + 0x58]
cmp rcx, 8
jae 0x18000b7bc
mov r8, qword [rsp + 0x50]
lea r8, [r8 + r8 + 2]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.180017720
mov rcx, qword [rsp + 0x58]
jmp 0x18000b7c9
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0x50]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
jmp 0x18000b7e7
mov rdi, qword [rsp + 0x58]
cmp rdi, 8
jb 0x18000b7f7
mov rcx, qword [rsp + 0x40]
call fcn.1800176d4
mov rax, rsi
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1800176f0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret