Function at 0x180005350
Capabilities:
Send data
Send http request
Send http request with host header

Disassembly:
push rbp
push rdi
mov eax, 0x10c8
call fcn.1800ac0d0
sub rsp, rax
mov rax, qword [0x1800eb008]
xor rax, rsp
mov qword [rsp + 0x10b0], rax
mov rbp, rdx
mov rdi, rcx
cmp rdx, qword [rcx + 0x88]
jb 0x18000538c
mov qword [rcx + 0x18], rdx
xor eax, eax
jmp 0x180005604
cmp rbp, qword [rcx + 0x18]
jne 0x180005399
cmp qword [rcx + 0x10], 0
jne 0x180005385
mov qword [rsp + 0x10f0], rbx
mov qword [rsp + 0x10c0], rsi
xor esi, esi
cmp qword [rcx + 0x10], rsi
je 0x1800053c4
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1800053c4
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rdi + 0x10], rsi
cmp qword [rdi + 0x40], 8
lea r8, [rdi + 0x28]
jb 0x1800053d2
mov r8, qword [r8]
mov rcx, qword [rdi + 8]
lea rdx, str.GET
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov dword [rsp + 0x30], 0x84000000
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov rbx, rax
test rax, rax
je 0x1800055c4
xor edx, edx
lea rcx, [rsp + 0x110]
mov r8d, 0xfa0
call fcn.18008c000
lea rdx, str.Host:
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
cmp qword [rdi + 0x60], 8
lea rdx, [rdi + 0x48]
jb 0x180005441
mov rdx, qword [rdx]
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1800b93fc]
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.Accept:_
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1800b93fc]
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.Connection:Keep_Alive
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1800b93fc]
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.Pragma:_no_cache
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1800b93fc]
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.Referer:
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rdi + 0x68]
cmp qword [rdx + 0x18], 8
jb 0x180005505
mov rdx, qword [rdx]
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1800b93fc]
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0xc8
call fcn.18008c000
mov r8, rbp
lea rdx, str.Range:_bytes_I64d_
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1800b93fc]
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1800b93fc]
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov r9d, 0x20000000
lea rdx, [rsp + 0x110]
or r8d, 0xffffffff
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x1800055c4
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1800055db
call fcn.180002050
mov esi, eax
test rbx, rbx
je 0x1800055f2
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1800055f2
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1800055ea
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbp
mov rbx, qword [rsp + 0x10f0]
mov eax, esi
mov rsi, qword [rsp + 0x10c0]
mov rcx, qword [rsp + 0x10b0]
xor rcx, rsp
call fcn.180072920
add rsp, 0x10c8
pop rdi
pop rbp
ret