Function at 0x14003d1f0
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x14015a010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, rcx
mov qword [rsp + 0x50], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x70]
call fcn.1400cb730
mov rax, qword gs:[0x58]
mov r14, qword [rax]
mov r15d, 0x18
mov eax, dword [r15 + r14]
mov r12d, 0x10
test al, 1
jne 0x14003d27f
or eax, 1
mov dword [r15 + r14], eax
xor eax, eax
mov qword [r14 + r12], rax
call fcn.14009eb50
mov qword [r14 + r12], rax
mov rax, qword [r14 + r12]
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x78], 1
lea rcx, [rbp + 0x80]
call fcn.14000b2a0
nop
mov rcx, qword [rbp + 0x70]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14010d7b8]
cmp dword [rbp + 0x78], eax
setl byte [rbp + 0x178]
jl 0x14003d2cf
lea rdx, str.Open_WinHttp_session
lea rcx, [rbp + 0x70]
call fcn.140016420
mov byte [rbp + 0x178], 1
lea rcx, [rbp + 0x70]
call fcn.140005530
xor eax, eax
mov qword [rsi], rax
mov dword [rsp + 0x20], 0x10000000
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
lea rcx, str.Sophos_System_Protection_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsi], rax
mov dword [rsp + 0x30], 1
test rax, rax
je 0x14003d60a
mov dword [rsp + 0x58], 2
mov r9d, 4
lea r8, [rsp + 0x58]
lea edx, [r9 + 0x45]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14003d3c0
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x60]
call fcn.1400cb730
mov eax, dword [r15 + r14]
test al, 1
jne 0x14003d367
or eax, 1
mov dword [r15 + r14], eax
xor eax, eax
mov qword [r14 + r12], rax
call fcn.14009eb50
mov qword [r14 + r12], rax
mov rax, qword [r14 + r12]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], r13d
lea rcx, [rsp + 0x70]
call fcn.14000b2a0
nop
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14010d7b8]
cmp dword [rsp + 0x68], eax
setl byte [rbp + 0x68]
jl 0x14003d3b6
mov r8d, dword [rsp + 0x58]
lea rdx, str.Error_setting_max_connections___u___using_default__infinite_
lea rcx, [rsp + 0x60]
call fcn.140016420
mov byte [rbp + 0x68], 1
lea rcx, [rsp + 0x60]
call fcn.140005530
mov dword [rbp + 0x180], 0x800
lea rax, str.TLS1.2
mov qword [rbp + 0x188], rax
mov dword [rbp + 0x190], 0xa00
lea rax, str.TLS1.2TLS1.1
mov qword [rbp + 0x198], rax
mov dword [rbp + 0x1a0], 0xa80
lea rax, str.TLS1.2TLS1.1TLS1.0
mov qword [rbp + 0x1a8], rax
mov dword [rbp + 0x1b0], 0x80
lea rax, str.TLS1.0
mov qword [rbp + 0x1b8], rax
mov rbx, r13
lea rdi, [rbp + 0x180]
nop word [rax + rax]
mov eax, dword [rdi]
mov dword [rsp + 0x5c], eax
mov r9d, 4
lea r8, [rsp + 0x5c]
lea edx, [r9 + 0x50]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14003d465
inc rbx
add rdi, 0x10
cmp rbx, 4
jae 0x14003d596
jmp 0x14003d430
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x60]
call fcn.1400cb730
mov eax, dword [r15 + r14]
test al, 1
jne 0x14003d4ac
or eax, 1
mov dword [r15 + r14], eax
xor eax, eax
mov qword [r14 + r12], rax
mov eax, 8
mov eax, dword [rax + r14]
cmp dword [0x1401651f4], eax
jg 0x14003d53e
lea rax, vtable.sophlib::logging::Logger.0
mov qword [r14 + r12], rax
mov rax, qword [r14 + r12]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], r13d
lea rcx, [rsp + 0x70]
call fcn.14000b2a0
nop
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14010d7b8]
cmp dword [rsp + 0x68], eax
setl byte [rbp + 0x68]
jl 0x14003d501
add rbx, rbx
mov r8, qword [rbp + rbx*8 + 0x188]
lea rdx, str.Set_security_protocol_to__s
lea rcx, [rsp + 0x60]
call fcn.140016420
mov byte [rbp + 0x68], 1
lea rcx, [rsp + 0x60]
call fcn.140005530
mov rax, rsi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400c5980
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [0x1401651f4]
call fcn.1400c5b38
cmp dword [0x1401651f4], 0xffffffff
jne 0x14003d4a1
mov qword [0x14015b048], r13
lea rax, vtable.sophlib::logging::Logger.0
mov qword [vtable.sophlib::logging::Logger.0], rax
lea rcx, [0x14015b048]
call fcn.1400a10a0
lea rcx, [0x14010be80]
call fcn.1400c5ebc
nop
lea rcx, [0x1401651f4]
call fcn.1400c5ad8
jmp 0x14003d4a1
lea rcx, [rsp + 0x60]
call fcn.140008760
call fcn.14009ebd0
mov rdx, rax
mov r8d, 3
lea rcx, [rsp + 0x60]
call fcn.1400054e0
nop
cmp byte [rbp + 0x68], 0
jne 0x14003d5dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Failed_to_set_security_protocol:__lu
lea rcx, [rsp + 0x60]
call fcn.140016420
mov byte [rbp + 0x68], 1
lea rcx, [rsp + 0x60]
call fcn.140005530
lea rdx, str.Failed_to_set_security_protocol
lea rcx, [rsp + 0x38]
call fcn.140004160
lea rdx, [0x140156678]
lea rcx, [rsp + 0x38]
call fcn.1400cb8d0
int3
lea rcx, [rsp + 0x60]
call fcn.140008760
call fcn.14009ebd0
mov rdx, rax
mov r8d, 3
lea rcx, [rsp + 0x60]
call fcn.1400054e0
nop
cmp byte [rbp + 0x68], 0
jne 0x14003d651
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WinHttpOpen_failed:__lu
lea rcx, [rsp + 0x60]
call fcn.140016420
mov byte [rbp + 0x68], 1
lea rcx, [rsp + 0x60]
call fcn.140005530
lea rdx, str.WinHttpOpen_failed
lea rcx, [rsp + 0x38]
call fcn.140004160
lea rdx, [0x140156678]
lea rcx, [rsp + 0x38]
call fcn.1400cb8d0
int3