Function at 0x140003490
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140046080]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_program
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
test rax, rax
je 0x140003550
mov r8d, 0x1bb
xor r9d, r9d
lea rdx, str.drive.google.com
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
je 0x140003547
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, str._u_0_uc_id1hEC_9EvXflSkB9lt2OzKUGSSJAkgqVFvexportdownload
lea rdx, [0x14003f250]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
jne 0x140003557
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
jmp 0x140003728
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400036f0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400036f0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x80]
call fcn.140030a10
lea rcx, [rbp - 0x80]
call fcn.1400051d0
nop
mov dword [rsp + 0x7c], r15d
lea rdx, str.Writed:
lea rcx, [0x140047620]
call fcn.140009860
mov edx, dword [rsp + 0x7c]
mov rcx, rax
call fcn.1400064f0
mov rcx, rax
call fcn.140009b10
mov dword [rsp + 0x78], r15d
lea rdx, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000364b
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x14000364b
lea ecx, [rax + 1]
call fcn.14000d854
mov rbx, rax
mov r8d, dword [rsp + 0x78]
inc r8d
xor edx, edx
mov rcx, rax
call fcn.140030a10
lea r9, [rsp + 0x7c]
mov r8d, dword [rsp + 0x78]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140003640
mov r8d, dword [rsp + 0x7c]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140006350
cmp dword [rsp + 0x78], 0
ja 0x1400035b2
lea rcx, [rbp - 0x78]
call fcn.140007f90
test rax, rax
jne 0x140003689
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x38], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x70]
and eax, 0x17
mov dword [rbp + rcx - 0x70], eax
and eax, dword [rbp + rcx - 0x6c]
jne 0x140003754
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.140004f20
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x7c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x28]
call fcn.14000ca40
nop
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, str.DownloadAndExtractFile___good_
lea rcx, [0x140047620]
call fcn.140009860
mov rcx, rax
call fcn.140009b10
mov al, 1
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14000d5b0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
test al, 4
je 0x140003761
lea rbx, str.ios_base::badbit_set
jmp 0x140003775
test dl, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140001520
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400029f0
lea rdx, [0x140044cd8]
lea rcx, [rsp + 0x50]
call fcn.14000f34c
int3