Function at 0x1400e6670
Capabilities:
Get http content length
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov qword [rsp + 0x20], r9
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x170
xor r12d, r12d
mov r13d, r8d
mov dword [rcx + 0x40], r12d
mov r8, rdx
mov rdi, rcx
test r9, r9
je 0x1400e669c
mov qword [r9], r12
mov rax, qword [rsp + 0x1c0]
test rax, rax
je 0x1400e66ac
mov dword [rax], r12d
cmp dword [rdi + 0x58], r12d
lea rdx, [0x1402b4a68]
mov rsi, qword [rsp + 0x1c8]
mov eax, 0x84803100
mov qword [rsp + 0x38], r12
mov ecx, 0x84000100
cmove eax, ecx
lea rcx, str.POST
mov dword [rsp + 0x30], eax
test rsi, rsi
mov qword [rsp + 0x28], r12
cmovne rdx, rcx
mov qword [rsp + 0x20], r12
mov rcx, qword [rdi + 0x48]
xor r9d, r9d
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov qword [rsp + 0x48], rax
mov r14, rax
test rax, rax
je 0x1400e69e3
mov qword [rsp + 0x1a8], rbx
mov ebx, r12d
mov qword [rsp + 0x160], r15
test rsi, rsi
je 0x1400e67b5
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rsi + rbx], r12b
jne 0x1400e6730
cmp qword [rdi + 0x38], r12
jne 0x1400e67b5
cmp qword [rdi + 0x30], 0x31
jae 0x1400e6787
mov ecx, PathResolve
call fcn.140247068
mov rdx, qword [rdi + 0x28]
mov r14, rax
test rdx, rdx
je 0x1400e6779
mov r8, qword [rdi + 0x38]
mov rcx, rax
inc r8
call fcn.1402496a0
mov rcx, qword [rdi + 0x28]
mov edx, 1
call fcn.140247060
mov qword [rdi + 0x28], r14
mov qword [rdi + 0x30], PathResolve
jmp 0x1400e678b
mov r14, qword [rdi + 0x28]
mov byte [r14], r12b
lea r8, str.Content_Type:_application_x_www_form_urlencoded_n
mov rdx, qword [rdi + 0x30]
mov r9d, PathResolve
mov rcx, qword [rdi + 0x28]
call fcn.140250550
mov r14, qword [rsp + 0x48]
mov qword [rdi + 0x38], PathResolve
mov rax, qword [rdi + 0x38]
test rax, rax
je 0x1400e67c4
mov rdx, qword [rdi + 0x28]
jmp 0x1400e67c7
mov rdx, r12
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8d, eax
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov r15d, eax
test r13d, r13d
je 0x1400e69b7
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x168], rbp
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x40], 0x104
mov edx, 0x20000005
mov byte [rsp + 0x50], r12b
mov rcx, r14
mov dword [rsp + 0x1a0], r12d
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400e684e
mov rax, qword [rcx]
xor r8d, r8d
mov r9d, dword [rsp + 0x50]
xor edx, edx
call qword [rax]
mov r15d, eax
test eax, eax
jne 0x1400e684e
mov dword [rdi + 0x40], 2
lea eax, [r13 - 1]
mov rsi, r12
mov ebx, r12d
mov ebp, r12d
cmp eax, 0xfffffffd
ja 0x1400e686e
mov rcx, r13
call fcn.140247068
mov rsi, rax
mov r12d, r13d
mov r13d, dword [rsp + 0x50]
test r15d, r15d
je 0x1400e6941
nop dword [rax]
xor r9d, r9d
lea rdx, [rsp + 0x1c8]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x1400e6941
mov r8d, dword [rsp + 0x1c8]
test r8d, r8d
je 0x1400e6941
add ebx, r8d
cmp ebx, r12d
jbe 0x1400e68f5
mov ecx, ebx
call fcn.140247068
mov r14, rax
mov r12d, ebx
test rsi, rsi
je 0x1400e68e5
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
call fcn.1402496a0
mov edx, 1
mov rcx, rsi
call fcn.140247060
mov r8d, dword [rsp + 0x1c8]
mov rsi, r14
mov r14, qword [rsp + 0x48]
mov edx, ebp
lea r9, [rsp + 0x44]
add rdx, rsi
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400e6941
add ebp, dword [rsp + 0x44]
mov rcx, qword [rdi + 0x18]
mov ebx, ebp
test rcx, rcx
je 0x1400e6880
mov rax, qword [rcx]
mov r9d, r13d
mov r8d, ebp
mov edx, 1
call qword [rax]
mov r15d, eax
test eax, eax
jne 0x1400e6880
mov dword [rdi + 0x40], 2
mov rcx, qword [rdi + 0x18]
mov rbp, qword [rsp + 0x168]
test rcx, rcx
je 0x1400e6970
mov rax, qword [rcx]
mov r9d, r13d
mov r8d, ebx
mov edx, 2
call qword [rax]
mov r15d, eax
test eax, eax
jne 0x1400e6970
mov dword [rdi + 0x40], 2
test rsi, rsi
je 0x1400e69b7
test r15d, r15d
je 0x1400e6995
test ebx, ebx
je 0x1400e6995
mov rax, qword [rsp + 0x1b8]
mov qword [rax], rsi
mov rax, qword [rsp + 0x1c0]
mov dword [rax], ebx
jmp 0x1400e69b7
mov rax, qword [rsp + 0x1b8]
xor ecx, ecx
mov qword [rax], rcx
lea edx, [rcx + 1]
mov rax, qword [rsp + 0x1c0]
mov dword [rax], ecx
mov rcx, rsi
call fcn.140247060
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rbx, qword [rsp + 0x1a8]
mov eax, r15d
mov r15, qword [rsp + 0x160]
add rsp, 0x170
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, r12d
add rsp, 0x170
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret