Function at 0x140064fd0
Capabilities:
Check http status code
Connect to http server
Parse url
Query remote server for available data
Send data
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x8e0]
sub rsp, 0x9e0
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x8d0], rax
xor ebx, ebx
mov rdi, rdx
mov r14, rcx
movzx esi, bx
test rdx, rdx
je 0x140065215
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x100
call fcn.1402767a0
xor edx, edx
lea rcx, [rbp + 0xd0]
mov r8d, 0x800
call fcn.1402767a0
xor edx, edx
lea r8d, [rbx + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1402767a0
lea rax, [rbp - 0x30]
mov dword [rsp + 0x40], WSAGetLastError
mov qword [rsp + 0x58], rax
or rdx, 0xffffffffffffffff
lea rax, [rbp + 0xd0]
mov dword [rsp + 0x60], 0x100
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0x800
inc rdx
cmp byte [rdi + rdx], bl
jne 0x140065076
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x1400650ab
mov eax, dword [rsp + 0x54]
cmp eax, 3
jne 0x1400650a1
lea esi, [rax + 0x4d]
jmp 0x1400650ab
cmp eax, 4
jne 0x1400650ab
mov esi, 0x1bb
mov rcx, qword [r14]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x38], rbx
xor r9d, r9d
mov dword [rsp + 0x30], ebx
movzx r8d, si
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rsi, rax
test rax, rax
je 0x140065215
mov qword [rsp + 0x38], rbx
lea r9, [0x14031f780]
mov dword [rsp + 0x30], 0x800000
lea r8, [rbp + 0xd0]
mov qword [rsp + 0x28], rbx
lea rdx, [0x14031e8ec]
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rdi, rax
test rax, rax
je 0x14006520c
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x1400651a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f0d
jne 0x140065203
lea r9, [rbp - 0x48]
mov dword [rbp - 0x48], 4
lea r8, [rbp - 0x4c]
mov edx, 0x1f
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [rbp - 0x4c], 0x100
lea r8, [rbp - 0x4c]
mov r9d, 4
mov rcx, rdi
lea edx, [r9 + 0x1b]
call qword [sym.imp.WININET.dll_InternetSetOptionW]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x140065203
xor eax, eax
mov dword [rbp - 0x50], reloc.WS2_32.dll_recv
lea r9, [rbp - 0x50]
mov qword [rbp - 0x40], rax
lea r8, [rbp - 0x40]
mov qword [rbp - 0x38], rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
lea edx, [rax + 0x13]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x140065203
lea rcx, [rbp - 0x40]
call fcn.1402884cc
cmp eax, 0xc8
jne 0x140065203
xor r9d, r9d
mov dword [rbp - 0x50], ebx
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x140065203
cmp dword [rbp - 0x50], ebx
mov eax, 1
cmova ebx, eax
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x8d0]
xor rcx, rsp
call fcn.140125a70
lea r11, [rsp + 0x9e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret