Function at 0x14017017c
Capabilities:
Initialize winhttp library

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov qword [r11 - 0x1e8], 0xfffffffffffffffe
mov rax, qword [0x1403c9cb8]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rbx, r9
mov qword [rsp + 0xa0], rbx
mov r15, rdx
mov rsi, rcx
mov dword [rsp + 0x58], r8d
mov r9, qword [rsp + 0x320]
mov qword [rsp + 0x98], r9
mov eax, dword [rsp + 0x328]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x338]
mov qword [rsp + 0xa8], rax
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [r11 - 0xd8], rdi
lea r14d, [rdi + 7]
mov qword [r11 - 0xd0], r14
mov word [rsp + 0x210], di
mov qword [r11 - 0xf8], rdi
mov qword [r11 - 0xf0], r14
mov word [rsp + 0x1f0], di
mov qword [r11 - 0x118], rdi
mov qword [r11 - 0x110], r14
mov word [rsp + 0x1d0], di
mov r13d, edi
mov dword [rsp + 0x40], edi
mov rcx, qword [0x1403c1308]
call fcn.14003bb84
movzx ecx, byte [rsp + 0x330]
test eax, eax
cmovne ecx, edi
mov dword [rsp + 0x60], ecx
lea r12d, [rdi + 1]
test cl, cl
jne 0x140170286
mov eax, r12d
lock xadd dword [rsi + 0x28], eax
mov eax, dword [rsi + 0x28]
test eax, eax
jne 0x14017027f
mov eax, r12d
lock xadd dword [rsi + 0x28], eax
mov eax, dword [rsi + 0x28]
mov dword [rsp + 0x40], eax
test r15, r15
je 0x140170320
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x188], r14
mov word [rsp + 0x170], di
or r14, 0xffffffffffffffff
mov r8, r14
inc r8
cmp word [r15 + r8*2], di
jne 0x1401702ae
mov rdx, r15
lea rcx, [rsp + 0x170]
call fcn.140018284
lea rcx, [rsp + 0x210]
call fcn.14000c764
movups xmm0, xmmword [rsp + 0x170]
movups xmmword [rsp + 0x210], xmm0
movups xmm1, xmmword [rsp + 0x180]
movups xmmword [rsp + 0x220], xmm1
mov qword [rsp + 0x180], rdi
mov qword [rsp + 0x188], 7
mov word [rsp + 0x170], di
lea rcx, [rsp + 0x170]
call fcn.14000c764
jmp 0x140170324
or r14, 0xffffffffffffffff
test rbx, rbx
je 0x1401703bf
mov qword [rsp + 0x1a0], rdi
mov qword [rsp + 0x1a8], 7
mov word [rsp + 0x190], di
mov r8, r14
inc r8
cmp word [rbx + r8*2], di
jne 0x14017034c
mov rdx, rbx
lea rcx, [rsp + 0x190]
call fcn.140018284
lea rcx, [rsp + 0x1f0]
call fcn.14000c764
movups xmm0, xmmword [rsp + 0x190]
movups xmmword [rsp + 0x1f0], xmm0
movups xmm1, xmmword [rsp + 0x1a0]
movups xmmword [rsp + 0x200], xmm1
mov qword [rsp + 0x1a0], rdi
mov ebx, 7
mov qword [rsp + 0x1a8], rbx
mov word [rsp + 0x190], di
lea rcx, [rsp + 0x190]
call fcn.14000c764
jmp 0x1401703c4
mov ebx, 7
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x14017045d
mov qword [rsp + 0x1c0], rdi
mov qword [rsp + 0x1c8], rbx
mov word [rsp + 0x1b0], di
mov r8, r14
inc r8
cmp word [rax + r8*2], di
jne 0x1401703f0
mov rdx, rax
lea rcx, [rsp + 0x1b0]
call fcn.140018284
lea rcx, [rsp + 0x1d0]
call fcn.14000c764
movups xmm0, xmmword [rsp + 0x1b0]
movups xmmword [rsp + 0x1d0], xmm0
movups xmm1, xmmword [rsp + 0x1c0]
movups xmmword [rsp + 0x1e0], xmm1
mov qword [rsp + 0x1c0], rdi
mov qword [rsp + 0x1c8], rbx
mov word [rsp + 0x1b0], di
lea rcx, [rsp + 0x1b0]
call fcn.14000c764
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1f0]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x68]
call fcn.14016fb90
nop
lea rcx, [rsi + 0x20]
mov qword [rsp + 0x78], rcx
mov dword [rsp + 0x80], edi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov eax, r12d
lock xadd dword [rsp + 0x80], eax
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0x118]
mov rcx, rsi
call fcn.140171104
mov rbx, qword [rax]
cmp byte [rsp + 0x60], dil
jne 0x1401705cc
mov rax, qword [rsi]
mov qword [rsp + 0x120], rax
cmp rbx, rax
je 0x1401705cc
mov eax, r12d
lock xadd dword [rsi + 0x28], eax
mov eax, dword [rsi + 0x28]
test eax, eax
jne 0x140170511
mov eax, r12d
lock xadd dword [rsi + 0x28], eax
mov eax, dword [rsi + 0x28]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1f0]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x130]
call fcn.14016fb90
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1401dfe68
mov rbx, qword [rsp + 0x138]
test rbx, rbx
je 0x1401705af
mov eax, r14d
lock xadd dword [rbx + 8], eax
add eax, r14d
jne 0x1401705af
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14002a211.0]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
add eax, r14d
jne 0x1401705af
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14002a211.0]
nop
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0x128]
mov rcx, rsi
call fcn.140171104
mov rbx, qword [rax]
jmp 0x1401704e6
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x1401705f3
mov eax, r14d
lock xadd dword [rsp + 0x80], eax
mov rcx, qword [rsp + 0x78]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x1401705cc
mov rax, qword [rsi]
mov qword [rsp + 0x150], rax
cmp rbx, rax
jne 0x140170890
lea rcx, [rsi + 0x18]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x90], rdi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov eax, r12d
lock xadd dword [rsp + 0x90], eax
test eax, eax
jne 0x14017065c
cmp dword [rsp + 0x94], edi
sete al
test al, al
jne 0x140170650
xor edx, edx
mov ecx, 0x131f4c4
call fcn.1400235f8
nop
nop
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rsp + 0x94], eax
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0x158]
mov rcx, rsi
call fcn.140171104
mov rbx, qword [rax]
cmp byte [rsp + 0x60], dil
jne 0x140170765
mov rax, qword [rsi]
mov qword [rsp + 0xf0], rax
cmp rbx, rax
je 0x140170765
mov eax, r12d
lock xadd dword [rsi + 0x28], eax
mov eax, dword [rsi + 0x28]
test eax, eax
jne 0x1401706aa
mov eax, r12d
lock xadd dword [rsi + 0x28], eax
mov eax, dword [rsi + 0x28]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1f0]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x140]
call fcn.14016fb90
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1401dfe68
mov rbx, qword [rsp + 0x148]
test rbx, rbx
je 0x140170748
mov eax, r14d
lock xadd dword [rbx + 8], eax
add eax, r14d
jne 0x140170748
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14002a211.0]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
add eax, r14d
jne 0x140170748
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14002a211.0]
nop
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0xf8]
mov rcx, rsi
call fcn.140171104
mov rbx, qword [rax]
jmp 0x14017067f
mov rax, qword [rsi]
mov qword [rsp + 0x100], rax
cmp rbx, rax
jne 0x140170878
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x98]
mov r8, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x58]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0xb0]
call fcn.14016fc68
nop
cmp qword [rsp + 0x48], rdi
je 0x14017082a
cmp qword [rsp + 0xb0], rdi
sete al
test al, al
jne 0x14017081e
lea r8, [rsp + 0xb0]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x230]
call fcn.14016f374
nop
mov rdx, rax
mov rcx, rsi
call fcn.14016f514
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x160]
mov rcx, rsi
call fcn.14016f870
nop
lea rcx, [rsp + 0x230]
call fcn.14016fd60
jmp 0x14017082f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov qword [rsp + 0x48], rdi
mov r15, qword [rsp + 0xb8]
test r15, r15
je 0x140170878
mov eax, r14d
lock xadd dword [r15 + 8], eax
add eax, r14d
jne 0x140170878
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax]
call qword [case.0x14002a211.0]
mov eax, r14d
lock xadd dword [r15 + 0xc], eax
add eax, r14d
jne 0x140170878
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 8]
call qword [case.0x14002a211.0]
nop
lea rcx, [rsp + 0x88]
call fcn.140025400
nop
nop word [rax + rax]
mov rax, qword [rsi]
mov qword [rsp + 0x108], rax
cmp rbx, rax
je 0x1401708b6
mov rax, qword [rbx + 0x90]
mov rdx, qword [rax + 8]
mov qword [rsp + 0x48], rdx
lock xadd dword [rax + 0x10], r12d
cmp qword [rsp + 0x48], rdi
je 0x1401708d0
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xa8]
call fcn.1400c9bec
nop
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140170914
mov eax, r14d
lock xadd dword [rbx + 8], eax
add eax, r14d
jne 0x140170914
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14002a211.0]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
add eax, r14d
jne 0x140170914
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14002a211.0]
nop
jmp 0x140170926
test r13d, r13d
jns 0x1401709d0
lea rax, str.SH_ErrorCode
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xd0], r13d
lea rax, [0x1402dbf50]
mov qword [rsp + 0xc0], rax
lea rax, str.Message
mov qword [rsp + 0xe0], rax
lea rax, str.Exception_was_thrown
mov qword [rsp + 0xe8], rax
lea rax, method.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.virtual_0
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9, qword [str.p_n._]
mov edx, 0x33f
mov ecx, 0x7e325d
mov r8d, 0xa
call fcn.1401af15c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401709d0
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rsp + 0x48], rdi
nop dword [rax]
lea rcx, [rsp + 0x1d0]
call fcn.14000c764
nop
lea rcx, [rsp + 0x1f0]
call fcn.14000c764
nop
lea rcx, [rsp + 0x210]
call fcn.14000c764
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14020ed60
nop
nop
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret