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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x14015a038]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov r15, r9
mov r14, r8
mov rsi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x14003e871
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea rdx, str.Initializing_...
call qword [rax]
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.SpreadsheetTools
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rbx, rax
test rax, rax
je 0x14003ebf7
cmp qword [rsi], rdi
je 0x14003e955
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], di
lea r8d, [rdi + 0xe]
lea rdx, str.Connecting_to
lea rcx, [rsp + 0x50]
call fcn.1400123a0
nop
lea r8d, [rdi + 0x14]
lea rdx, str.SpreadsheetTools.com
lea rcx, [rsp + 0x50]
call fcn.14000b610
lea r8d, [rdi + 4]
lea rdx, str._...
lea rcx, [rsp + 0x50]
call fcn.14000b610
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov rcx, qword [rsi]
mov rax, qword [rcx]
call qword [rax]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14003e955
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e950
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003ec31
call fcn.14009b510
mov r8d, 0x50
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea rdx, str.SpreadsheetTools.com
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetConnectW]
mov r12, rax
test rax, rax
je 0x14003ebf7
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x84000000
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, r14
lea rdx, [0x1401370b8]
mov rcx, rax
call qword [sym.imp.WININET.dll_HttpOpenRequestW]
mov r14, rax
test rax, rax
je 0x14003ebee
cmp qword [rsi], 0
je 0x14003ea8d
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], di
mov r8d, select
lea rdx, str.Downloading_from
lea rcx, [rsp + 0x50]
call fcn.1400123a0
nop
mov r8d, SafeArrayGetElement
lea rdx, str.SpreadsheetTools.com
lea rcx, [rsp + 0x50]
call fcn.14000b610
mov r8d, 4
lea rdx, str._...
lea rcx, [rsp + 0x50]
call fcn.14000b610
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov rcx, qword [rsi]
mov rax, qword [rcx]
call qword [rax]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14003ea8d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003ea88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003ec2b
call fcn.14009b510
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x14003ebee
mov dword [rsp + 0x4c], 4
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x48]
mov edx, 0x20000013
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [rsp + 0x48], 0x190
jae 0x14003ebe5
mov dword [rsp + 0x40], edi
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14003ebe5
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x40]
mov edx, 0x20000005
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x14003ebe5
mov edx, dword [rsp + 0x40]
mov rcx, r15
call fcn.140019e80
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003eb3c
mov rax, qword [rcx]
mov edx, dword [rsp + 0x40]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov ebx, edi
mov dword [rsp + 0x44], edi
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14003ebe5
nop word [rax + rax]
lea r9, [rsp + 0x44]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x14003eb97
mov r8d, eax
mov ecx, ebx
add rcx, qword [r15]
lea rdx, [rsp + 0x70]
call fcn.14009de10
mov eax, dword [rsp + 0x44]
add ebx, eax
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003eba9
mov rax, qword [rcx]
mov edx, ebx
call qword [rax + reloc.WS2_32.dll_recv]
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [rsp + 0x40]
test eax, eax
je 0x14003ebd1
cmp dword [rsp + 0x44], 0
jbe 0x14003ebc8
cmp ebx, ecx
jb 0x14003eb60
mov rdx, qword [r15 + 8]
mov rax, qword [r15]
jmp 0x14003ebdb
mov rdx, qword [r15]
mov qword [r15 + 8], rdx
mov rax, rdx
sub rdx, rax
cmp rdx, rcx
sete dil
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003ec08
mov r8, qword [rcx]
mov edx, edi
call qword [r8 + 0x20]
mov eax, edi
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14009b5b0
add rsp, 0x480
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400ac408
int3
call fcn.1400ac408
int3