Function at 0x140001da0
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa8]
sub rsp, 0x1a8
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1400180a8]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r12, r9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x58], rcx
mov r13, qword [rbp + 0x110]
xor r14d, r14d
mov dword [rsp + 0x4c], r14d
mov qword [rcx + 0x18], 0xf
mov qword [rcx + 0x10], r14
mov byte [rcx], r14b
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 1]
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
je 0x140002116
mov r8d, 0x1bb
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectW]
mov r14, rax
test rax, rax
je 0x14000210d
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x84800000
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, rsi
mov rdx, r12
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov r12, rax
test rax, rax
je 0x140002104
lea rcx, str.Accept:__
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8d, eax
mov r9d, 0xa0000000
lea rdx, str.Accept:__
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
test eax, eax
je 0x1400020fb
mov eax, dword [rbp + 0x118]
mov dword [rsp + 0x20], eax
mov r9, r13
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x1400020fb
mov dword [rsp + 0x48], 4
xor r13d, r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x44]
mov edx, 0x20000013
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x1400020fb
cmp dword [rsp + 0x44], 0xc8
jne 0x1400020fb
mov dword [rsp + 0x40], r13d
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x70]
call fcn.140006eb0
lea r9, [rsp + 0x40]
mov r8d, 0xff
lea rdx, [rbp - 0x70]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400020fb
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400020fb
mov edi, eax
mov qword [rsp + 0x78], 0xf
mov rcx, r13
mov qword [rsp + 0x70], rcx
mov byte [rsp + 0x60], cl
cmp rax, 0xfffffffffffffffe
ja 0x1400020ee
cmp rax, 0xf
jbe 0x140001fad
xor r8d, r8d
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.140005480
mov rcx, qword [rsp + 0x70]
jmp 0x140001fbd
test eax, eax
jne 0x140001fbd
mov rcx, r13
mov qword [rsp + 0x70], rcx
mov byte [rsp + 0x60], cl
test rdi, rdi
setne al
test al, al
je 0x140002003
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
mov r8, rdi
lea rdx, [rbp - 0x70]
call fcn.140005c10
mov qword [rsp + 0x70], rdi
lea rax, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rax, qword [rsp + 0x60]
mov byte [rax + rdi], 0
mov rcx, qword [rsp + 0x70]
or rsi, 0xffffffffffffffff
cmp rcx, rsi
cmovb rsi, rcx
mov r8, qword [rbx + 0x10]
or rax, 0xffffffffffffffff
sub rax, r8
cmp rax, rsi
jbe 0x1400020e1
test rsi, rsi
je 0x1400020b6
lea rdi, [r8 + rsi]
cmp rdi, 0xfffffffffffffffe
ja 0x1400020d4
mov rax, qword [rbx + 0x18]
cmp rax, rdi
jae 0x14000204f
mov rdx, rdi
mov rcx, rbx
call fcn.140005480
jmp 0x140002069
test rdi, rdi
jne 0x14000206c
mov qword [rbx + 0x10], r13
cmp rax, 0x10
jb 0x140002063
mov rax, qword [rbx]
jmp 0x140002066
mov rax, rbx
mov byte [rax], 0
test rdi, rdi
setne al
test al, al
je 0x1400020b6
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
cmp qword [rbx + 0x18], 0x10
jb 0x140002090
mov rcx, qword [rbx]
jmp 0x140002093
mov rcx, rbx
add rcx, qword [rbx + 0x10]
mov r8, rsi
call fcn.140005c10
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 0x10
jb 0x1400020af
mov rax, qword [rbx]
jmp 0x1400020b2
mov rax, rbx
mov byte [rdi + rax], 0
cmp qword [rsp + 0x78], 0x10
jb 0x1400020c8
mov rcx, qword [rsp + 0x60]
call fcn.1400059f8
cmp dword [rsp + 0x40], 0
jbe 0x1400020fb
jmp 0x140001f33
lea rcx, str.string_too_long
call fcn.140005910
int3
lea rcx, str.string_too_long
call fcn.140005910
nop
lea rcx, str.string_too_long
call fcn.140005910
int3
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, rbx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140005a10
add rsp, 0x1a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret