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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x1c8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xa0], xmm6
movaps xmmword [rbp + 0xb0], xmm7
movaps xmmword [rbp + 0xc0], xmm8
movaps xmmword [rbp + 0xd0], xmm9
movaps xmmword [rbp + 0xe0], xmm10
movaps xmmword [rbp + 0xf0], xmm11
movaps xmmword [rbp + 0x100], xmm12
movaps xmmword [rbp + 0x110], xmm13
movaps xmmword [rbp + 0x120], xmm14
movaps xmmword [rbp + 0x130], xmm15
mov qword [rbp + 0x190], rcx
mov qword [rbp + 0x198], rdx
mov qword [rbp + 0x1a0], r8
lea rax, [sym.__gxx_personality_sj0]
mov qword [rbp - 0x10], rax
lea rax, [0x004f80c0]
mov qword [rbp - 8], rax
mov rax, rbp
lea rbx, [rbp + 0xa0]
mov qword [rax], rbx
lea rdx, [0x00401904]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rsp
lea rax, [rbp - 0x40]
mov rcx, rax
call dbg._Unwind_SjLj_Register
mov dword [rsp + 0x20], 0
mov dword [rbp - 0x38], 0xffffffff
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rcx, str.HTTP_1.1
call sym.WinHttpOpen
mov qword [rbp + 0x98], rax
cmp qword [rbp + 0x98], 0
jne 0x401655
mov dword [rbp + 0x28], 1
jmp 0x4018fc
mov rax, qword [rbp + 0x98]
mov dword [rsp + 0x20], 0x5265c00
mov dword [rbp - 0x38], 0xffffffff
mov r9d, 0x2710
mov r8d, 0x2710
mov edx, 0x2710
mov rcx, rax
call sym.WinHttpSetTimeouts
mov rax, qword [rbp + 0x198]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov rdx, rax
mov rax, qword [rbp + 0x98]
mov r9d, 0
mov r8d, 0x1bb
mov rcx, rax
call sym.WinHttpConnect
mov qword [rbp + 0x90], rax
cmp qword [rbp + 0x90], 0
jne 0x4016ce
mov dword [rbp + 0x28], 2
jmp 0x4018fc
mov rax, qword [rbp + 0x1a0]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov rdx, rax
mov rax, qword [rbp + 0x90]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov dword [rbp - 0x38], 0xffffffff
mov r9d, 0
mov r8, rdx
lea rdx, [0x004de014]
mov rcx, rax
call sym.WinHttpOpenRequest
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x40173d
mov dword [rbp + 0x28], 3
jmp 0x4018fc
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov dword [rbp - 0x38], 0xffffffff
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.WinHttpSendRequest
mov rax, qword [rbp + 0x88]
mov edx, 0
mov rcx, rax
call sym.WinHttpReceiveResponse
lea rax, [rbp + 0x50]
mov rcx, rax
call fcn.004bd4f0
lea rax, [rbp + 0x30]
mov rcx, rax
call fcn.004bd4f0
mov dword [rbp + 0x84], 0
lea rax, [rbp + 0x84]
mov rcx, qword [rbp + 0x88]
mov dword [rbp - 0x38], 1
mov rdx, rax
call sym.WinHttpQueryDataAvailable
test eax, eax
sete al
test al, al
je 0x4017e5
mov dword [rbp + 0x28], 4
jmp 0x4018e4
mov eax, dword [rbp + 0x84]
add eax, 1
mov eax, eax
mov dword [rbp - 0x38], 1
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov qword [rbp + 0x78], rax
mov eax, dword [rbp + 0x84]
add eax, 1
mov edx, eax
mov rax, qword [rbp + 0x78]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov r8d, dword [rbp + 0x84]
mov rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x80]
mov rax, qword [rbp + 0x88]
mov r9, rcx
mov rcx, rax
call sym.WinHttpReadData
test eax, eax
sete al
test al, al
je 0x40185b
mov dword [rbp + 0x28], 5
jmp 0x4018e4
mov rdx, qword [rbp + 0x78]
lea rax, [rbp + 0x50]
mov dword [rbp - 0x38], 1
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.operator_char_const_
mov rax, qword [rbp + 0x78]
test rax, rax
je 0x401887
mov rax, qword [rbp + 0x78]
mov rcx, rax
call sym.operator_delete___void_
mov eax, dword [rbp + 0x84]
test eax, eax
je 0x401896
jmp 0x4017a9
mov rax, qword [rbp + 0x88]
mov dword [rbp - 0x38], 1
mov rcx, rax
call sym.WinHttpCloseHandle
mov rax, qword [rbp + 0x90]
mov rcx, rax
call sym.WinHttpCloseHandle
mov rax, qword [rbp + 0x98]
mov rcx, rax
call sym.WinHttpCloseHandle
lea rax, [rbp + 0x50]
mov rdx, rax
mov rcx, qword [rbp + 0x190]
call fcn.004bd980
mov dword [rbp + 0x28], 0
lea rax, [rbp + 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov eax, dword [rbp + 0x28]
mov dword [rbp + 0x28], eax
jmp 0x401946
lea rax, [rbp - 0x40]
mov rcx, rax
call sym._Unwind_SjLj_Unregister
mov eax, dword [rbp + 0x28]
movaps xmm6, xmmword [rbp + 0xa0]
movaps xmm7, xmmword [rbp + 0xb0]
movaps xmm8, xmmword [rbp + 0xc0]
movaps xmm9, xmmword [rbp + 0xd0]
movaps xmm10, xmmword [rbp + 0xe0]
movaps xmm11, xmmword [rbp + 0xf0]
movaps xmm12, xmmword [rbp + 0x100]
movaps xmm13, xmmword [rbp + 0x110]
movaps xmm14, xmmword [rbp + 0x120]
movaps xmm15, xmmword [rbp + 0x130]
add rsp, 0x1c8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret