Function at 0x140084920
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rbx, rcx
cmp byte [rcx + 0x570], 0
je 0x1400849be
call fcn.1400553d0
mov r8d, 3
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140055290
lea rax, str.EventSender.cpp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0xc8
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.1400244b0
lea rdx, str.Event_Sender_already_initialized_for_AWS
lea rcx, [rsp + 0x48]
call fcn.1400244e0
lea rcx, [rbp - 0x20]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.140128970
nop
mov al, 1
jmp 0x140084c9b
cmp qword [rcx + 0x578], 0
jne 0x140084c2e
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401ef090]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx + 0x578], rax
test rax, rax
je 0x140084c2e
mov dword [rbx + 0x5b0], 0x68
lea rsi, [rbx + 0x638]
mov rcx, qword [rbx + 0x5a0]
mov r8, qword [rsi + 0x10]
cmp rcx, r8
ja 0x140084a32
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x140084a27
mov rax, qword [rsi]
mov qword [rsi + 0x10], rcx
mov word [rax + rcx*2], r15w
jmp 0x140084a89
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rsi + 0x18]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x140084a75
mov qword [rsi + 0x10], rcx
mov r9, rsi
cmp rdi, 8
jb 0x140084a57
mov r9, qword [rsi]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x140084a6a
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r15w
jmp 0x140084a89
mov word [rsp + 0x20], r15w
mov r9, rdx
xor r8d, r8d
mov rcx, rsi
call fcn.140054700
cmp qword [rsi + 0x18], 8
jb 0x140084a93
mov rsi, qword [rsi]
mov qword [rbx + 0x5c8], rsi
mov eax, dword [rbx + 0x648]
mov dword [rbx + 0x5d0], eax
lea rsi, [rbx + 0x618]
mov rcx, qword [rbx + 0x5a0]
mov r8, qword [rsi + 0x10]
cmp rcx, r8
ja 0x140084ad5
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x140084aca
mov rax, qword [rsi]
mov qword [rsi + 0x10], rcx
mov word [rax + rcx*2], r15w
jmp 0x140084b2c
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rsi + 0x18]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x140084b18
mov qword [rsi + 0x10], rcx
mov r9, rsi
cmp rdi, 8
jb 0x140084afa
mov r9, qword [rsi]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x140084b0d
movzx eax, r15w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r15w
jmp 0x140084b2c
mov word [rsp + 0x20], r15w
mov r9, rdx
xor r8d, r8d
mov rcx, rsi
call fcn.140054700
cmp qword [rsi + 0x18], 8
jb 0x140084b36
mov rsi, qword [rsi]
mov qword [rbx + 0x5f8], rsi
mov eax, dword [rbx + 0x628]
mov dword [rbx + 0x600], eax
lea rcx, [rbx + 0x590]
cmp qword [rcx + 0x18], 8
jb 0x140084b5a
mov rcx, qword [rcx]
lea r9, [rbx + 0x5b0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x140084bfd
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140055290
lea rax, str.EventSender.cpp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0xdf
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.1400244b0
lea rdx, str.WinHttpCrackUrl_failed_for_AWS:
lea rcx, [rsp + 0x48]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140030540
lea rcx, [rbp - 0x20]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.140128970
nop
jmp 0x140084c99
cmp word [rbx + 0x5d4], r15w
jne 0x140084c23
mov eax, 0x50
mov ecx, 0x1bb
cmp dword [rbx + 0x5c4], 2
cmove ax, cx
mov word [rbx + 0x5d4], ax
mov byte [rbx + 0x570], 1
mov al, 1
jmp 0x140084c9b
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140055290
lea rax, str.EventSender.cpp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0xcf
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.1400244b0
lea rdx, str.Unable_to_open_HTTP_session_for_AWS
lea rcx, [rsp + 0x48]
call fcn.1400244e0
lea rcx, [rbp - 0x20]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x20]
call fcn.140128970
nop
xor al, al
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret