Function at 0x1400e5660
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [rcx]
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
xor r13d, r13d
mov dword [rsi + 0x58], ebx
mov eax, r13d
mov r14d, r13d
lea r12, [r13 - 1]
test rdi, rdi
je 0x1400e56ba
mov rbx, r12
nop dword [rax + rax]
inc rbx
cmp byte [rdi + rbx], al
jne 0x1400e56b0
jmp 0x1400e56bd
mov rbx, r13
lea r15, [rbx + 1]
test r15, r15
je 0x1400e56e0
mov eax, 2
mul r15
cmovo rax, r12
mov rcx, rax
call fcn.140247068
mov r14, rax
mov rax, r15
test rdi, rdi
je 0x1400e575d
cmp rbx, r12
jne 0x1400e56f9
mov rbx, r12
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], r13b
jne 0x1400e56f0
lea r15, [rbx + 1]
cmp r15, rax
jbe 0x1400e5738
mov eax, 2
mul r15
cmovo rax, r12
mov rcx, rax
call fcn.140247068
mov r12, rax
test r14, r14
je 0x1400e5732
movzx ecx, word [r14]
mov edx, 2
mov word [rax], cx
mov rcx, r14
call fcn.140247060
mov r14, r12
mov rax, r15
test rbx, rbx
je 0x1400e5756
mov dword [rsp + 0x28], eax
mov r9d, ebx
mov r8, rdi
mov qword [rsp + 0x20], r14
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [r14 + rbx*2], r13w
jmp 0x1400e5761
mov word [r14], r13w
mov ebx, 1
cmp dword [rsi + 0x10], r13d
je 0x1400e58fd
xor eax, eax
lea rcx, [rbp - 0x11]
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x1400e58fd
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x1400e57c5
cmp word [rcx], r13w
je 0x1400e57c5
mov r9, qword [rbp + 7]
lea edx, [rbx + 2]
mov r8, rcx
mov dword [rsp + 0x20], r13d
mov rcx, qword [rsi + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsi + 0x50], rax
jmp 0x1400e58c9
cmp dword [rbp - 0x11], r13d
jne 0x1400e57e2
mov rax, qword [rbp - 9]
test rax, rax
je 0x1400e58e3
cmp word [rax], r13w
je 0x1400e58d1
mov rcx, qword [rsi + 0x68]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r13d
mov edx, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
test rax, rax
je 0x1400e58c9
mov rdx, qword [rbp - 9]
mov qword [rbp + 0x1f], r13
mov dword [rbp + 0x27], r13d
test rdx, rdx
je 0x1400e5822
mov r8d, 2
cmp word [rdx], r13w
jne 0x1400e5825
mov r8d, r13d
mov rcx, qword [rbp - 0x11]
mov eax, r13d
test ecx, ecx
setne al
or eax, r8d
neg ecx
mov dword [rbp + 0xf], eax
sbb eax, eax
and eax, 3
mov dword [rbp + 0x13], eax
test rdx, rdx
je 0x1400e5850
cmp word [rdx], r13w
mov qword [rbp + 0x17], rdx
jne 0x1400e5854
mov qword [rbp + 0x17], r13
xor eax, eax
mov dword [rbp + 0x2b], ebx
lea r9, [rbp - 0x29]
mov qword [rbp - 0x29], rax
lea r8, [rbp + 0xf]
mov qword [rbp - 0x21], rax
mov rdx, r14
mov qword [rbp - 0x19], rax
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x1400e58a2
mov r8, qword [rbp - 0x21]
test r8, r8
je 0x1400e58b1
mov r9, qword [rbp - 0x19]
mov edx, 3
mov rcx, qword [rsi + 0x68]
mov dword [rsp + 0x20], r13d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsi + 0x50], rax
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400e58b1
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x1400e58c0
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp - 1]
mov rax, qword [rbp - 9]
test rax, rax
je 0x1400e58e3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x1400e58ee
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1400e58fd
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsi + 0x50]
test rcx, rcx
jne 0x1400e5929
mov rcx, qword [rsi + 0x68]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r13d
mov edx, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsi + 0x50], rax
mov rcx, rax
test rax, rax
je 0x1400e5960
cmp dword [rsi + 0x58], r13d
mov edx, 0x1bb
mov r8d, 0x50
cmovne r8w, dx
xor r9d, r9d
mov rdx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsi + 0x48], rax
test rax, rax
jne 0x1400e5963
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rsi + 0x50], r13
mov ebx, r13d
mov edx, 2
mov rcx, r14
call fcn.140247060
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret