Function at 0x140339c84
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 [0x1404e1800]
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.140339f3c
nop
cmp qword [rbp + 0x27], 0
jbe 0x140339cdd
mov dword [rbx], 3
lea rcx, [rbx + 8]
lea rdx, [rbp + 0x17]
call fcn.140099980
jmp 0x140339f00
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 0x140339d61
call fcn.140091ae4
mov rsi, rax
cmp dword [rax], 3
jbe 0x140339d49
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, [0x140459a69]
mov rcx, rsi
call fcn.14000615c
and dword [rbx], 0
lea rdx, [0x1403a9f84]
lea rcx, [rbx + 8]
call fcn.14008c350
jmp 0x140339ef6
cmp dword [rbp - 0x41], 3
jne 0x140339d81
mov dword [rbx], 2
lea rdx, [0x1403a9f84]
mov rax, qword [rbp - 0x39]
test rax, rax
cmovne rdx, rax
jmp 0x140339d53
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 0x140339e0c
call fcn.140091ae4
mov rsi, rax
cmp dword [rax], 3
jbe 0x140339df4
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, [0x140459a69]
mov rcx, rsi
call fcn.14000615c
and dword [rbx], 0
lea rcx, [rbx + 8]
lea rdx, [0x1403a9f84]
call fcn.14008c350
jmp 0x140339eec
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 0x140339e3f
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 0x140339ebd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x2f94
je 0x140339ecb
call fcn.140091ae4
mov rsi, rax
cmp dword [rax], 3
jbe 0x140339eb8
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, [0x140459a69]
mov rcx, rsi
call fcn.14000615c
and dword [rbx], 0
jmp 0x140339ed1
cmp dword [rbp - 0x29], 3
jne 0x140339ecb
mov dword [rbx], esi
mov rdx, qword [rbp - 0x21]
jmp 0x140339ed8
mov dword [rbx], 1
lea rdx, [0x1403a9f84]
lea rcx, [rbx + 8]
call fcn.14008c350
nop
lea rcx, [rbp - 0x29]
call fcn.140339c50
nop
lea rcx, [rbp - 0x51]
call fcn.140339c0c
nop
lea rcx, [rbp - 0x41]
call fcn.140339c50
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.140112420
mov rbx, qword [rsp + 0x100]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret