Function at 0x1402f97c4
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x140477ad0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x49], rcx
mov qword [rbp + 0xf], rdx
lea rcx, [rbp + 0x17]
call fcn.1402f9a70
nop
cmp qword [rbp + 0x27], 0
jbe 0x1402f981d
mov dword [rbx], 3
lea rcx, [rbx + 8]
lea rdx, [rbp + 0x17]
call fcn.140079070
jmp 0x1402f9a32
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x41]
call qword [sym.imp.WINHTTP.dll_WinHttpGetDefaultProxyConfiguration]
nop dword [rax + rax]
test eax, eax
jne 0x1402f98a1
call fcn.1400a4e1c
mov rsi, rax
cmp dword [rax], 3
jbe 0x1402f9889
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x59], eax
lea rax, str.WinHttpGetDefaultProxyConfiguration_failed
mov qword [rbp - 0x51], rax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1403fbe1a]
mov rcx, rsi
call fcn.1400061e0
and dword [rbx], 0
lea rdx, [0x140361390]
lea rcx, [rbx + 8]
call fcn.1400aeef0
jmp 0x1402f9a28
cmp dword [rbp - 0x41], 3
jne 0x1402f98b3
mov dword [rbx], 2
mov rdx, qword [rbp - 0x39]
jmp 0x1402f9893
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea esi, [r9 + 4]
mov edx, esi
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
nop dword [rax + rax]
mov qword [rbp - 0x51], rax
test rax, rax
jne 0x1402f993e
call fcn.1400a4e1c
mov rsi, rax
cmp dword [rax], 3
jbe 0x1402f9926
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x59], eax
lea rax, str.WinHttpOpen_failed
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1403fbe1a]
mov rcx, rsi
call fcn.1400061e0
and dword [rbx], 0
lea rcx, [rbx + 8]
lea rdx, [0x140361390]
call fcn.1400aeef0
jmp 0x1402f9a1e
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rcx
mov dword [rbp - 0x11], 0x20001
mov dword [rbp - 0xd], 3
movdqu xmmword [rbp - 9], xmm0
and dword [rbp + 7], ecx
and dword [rbp + 0xb], ecx
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1402f9971
mov rdx, qword [rdi]
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x11]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
nop dword [rax + rax]
test eax, eax
jne 0x1402f99ef
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x2f94
je 0x1402f99fd
call fcn.1400a4e1c
mov rsi, rax
cmp dword [rax], 3
jbe 0x1402f99ea
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [rbp - 0x59], eax
lea rax, str.WinHttpGetProxyForUrl_failed
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1403fbe1a]
mov rcx, rsi
call fcn.1400061e0
and dword [rbx], 0
jmp 0x1402f9a03
cmp dword [rbp - 0x29], 3
jne 0x1402f99fd
mov dword [rbx], esi
mov rdx, qword [rbp - 0x21]
jmp 0x1402f9a0a
mov dword [rbx], 1
lea rdx, [0x140361390]
lea rcx, [rbx + 8]
call fcn.1400aeef0
nop
lea rcx, [rbp - 0x29]
call fcn.1402f9790
nop
lea rcx, [rbp - 0x51]
call fcn.1402f974c
nop
lea rcx, [rbp - 0x41]
call fcn.1402f9790
nop
lea rcx, [rbp + 0x17]
call fcn.14007a7c0
nop
mov rcx, rdi
call fcn.14007a7c0
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140123570
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret