Function at 0x1400e5170
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 - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x140346fc0]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rbx, rcx
xor esi, esi
movzx eax, byte [rcx + 0x3d8]
nop
test al, al
je 0x1400e51c0
xor eax, eax
jmp 0x1400e5b7f
lea rdi, [rcx + 0x110]
mov qword [rsp + 0x70], rdi
mov byte [rsp + 0x78], sil
mov rcx, rdi
call fcn.140245518
test eax, eax
jne 0x1400e5bb5
mov eax, dword [rdi + 0x4c]
cmp eax, 0x7fffffff
je 0x1400e5bc0
mov byte [rsp + 0x78], 1
movzx eax, byte [rbx + 0x3d8]
nop
test al, al
je 0x1400e5207
mov ebx, esi
jmp 0x1400e5b73
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov r14, rsi
mov r15, rsi
mov qword [rsp + 0x30], rsi
mov byte [rbx + 0x3f1], r14b
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], si
lea rdi, [0x1402f6138]
mov rdx, rdi
lea rcx, [rbp - 0x40]
call fcn.140025de0
nop
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], 7
mov word [rbp - 0x20], si
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], 7
mov word [rbp], si
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], si
mov rdx, rdi
lea rcx, [rbp + 0x40]
call fcn.140025de0
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rsi
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], si
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], rsi
mov qword [rbp + 0x98], 7
mov word [rbp + 0x80], si
mov rsi, 0xffffffffffffffff
mov dword [rbp + 0xa0], esi
mov rcx, rbx
call fcn.1400bda70
mov qword [rsp + 0x40], rax
mov ecx, dword [rax + 0x108]
lea r13d, [rsi + 2]
test ecx, ecx
jne 0x1400e530e
call fcn.1400de850
mov r12d, eax
jmp 0x1400e5730
cmp ecx, 2
jne 0x1400e531b
mov r12d, r13d
jmp 0x1400e5730
cmp ecx, r13d
jne 0x1400e53f1
call fcn.1400de850
mov r12d, eax
cmp eax, 4
je 0x1400e5730
mov byte [rbx + 0x3f1], r13b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
lea rcx, [rbp - 0x80]
call qword [sym.imp.WINHTTP.dll_WinHttpGetDefaultProxyConfiguration]
test eax, eax
je 0x1400e535d
cmp dword [rbp - 0x80], 1
jne 0x1400e53ca
lea rcx, [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x1400e53ca
cmp dword [rsp + 0x48], 0
je 0x1400e537c
mov byte [rbx + 0x3f1], 1
jmp 0x1400e53ca
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x1400e53ab
mov byte [rbx + 0x3f1], 1
nop dword [rax]
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x1400e5390
lea rcx, [rbx + 0x3f8]
mov r8, rsi
call fcn.140048d80
jmp 0x1400e53ca
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1400e53ca
mov r12d, 3
mov r14, rax
mov rax, qword [rsp + 0x60]
test rax, rax
cmovne r15, rax
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400e53d9
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400e5730
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400e5730
mov r12d, 3
lea rsi, [rax + 0x20]
lea rax, [rbp - 0x40]
cmp rax, rsi
je 0x1400e541e
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x1400e5411
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 0x40]
call fcn.140048d80
add rsi, 0x20
lea rax, [rbp - 0x20]
cmp rax, rsi
je 0x1400e5445
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x1400e5438
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 0x20]
call fcn.140048d80
lea r8, [rsi + 0x20]
lea rax, [rbp]
cmp rax, r8
je 0x1400e546c
mov rdx, r8
cmp qword [r8 + 0x18], 7
jbe 0x1400e545f
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp]
call fcn.140048d80
lea r8, [rsi + 0x40]
lea rax, [rbp + 0x20]
cmp rax, r8
je 0x1400e5493
mov rdx, r8
cmp qword [r8 + 0x18], 7
jbe 0x1400e5486
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp + 0x20]
call fcn.140048d80
lea r8, [rsi + 0x60]
lea rax, [rbp + 0x40]
cmp rax, r8
je 0x1400e54ba
mov rdx, r8
cmp qword [r8 + 0x18], 7
jbe 0x1400e54ad
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp + 0x40]
call fcn.140048d80
lea r8, [rsi + 0x80]
lea rax, [rbp + 0x60]
cmp rax, r8
je 0x1400e54e4
mov rdx, r8
cmp qword [r8 + 0x18], 7
jbe 0x1400e54d7
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp + 0x60]
call fcn.140048d80
lea r8, [rsi + 0xa0]
lea rax, [rbp + 0x80]
cmp rax, r8
je 0x1400e5514
mov rdx, r8
cmp qword [r8 + 0x18], 7
jbe 0x1400e5504
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp + 0x80]
call fcn.140048d80
mov r8d, dword [rsi + 0xc0]
mov dword [rbp + 0xa0], r8d
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400e5558
lea rdx, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova rdx, qword [rbp - 0x40]
cmp rcx, r13
jne 0x1400e55af
test rcx, rcx
je 0x1400e5558
sub rdx, rdi
movzx eax, word [rdi]
cmp word [rdi + rdx], ax
jne 0x1400e55af
add rdi, 2
sub rcx, r13
jne 0x1400e5546
lea rdx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rdx, qword [rbp]
mov r8, qword [rbp + 0x10]
lea rcx, [rbp - 0x68]
call fcn.140048d80
cmp dword [rbp + 0xa0], 0
jle 0x1400e5722
mov r14, qword [rbp - 0x58]
mov rsi, qword [rbp - 0x50]
cmp r14, rsi
jae 0x1400e55c7
lea rax, [r14 + 1]
mov qword [rbp - 0x58], rax
lea rax, [rbp - 0x68]
cmp rsi, 7
cmova rax, qword [rbp - 0x68]
mov dword [rax + r14*2], 0x3a
jmp 0x1400e56a1
test r8d, r8d
jne 0x1400e5558
lea r14, [rbp]
cmp qword [rbp + 0x18], 7
cmova r14, qword [rbp]
jmp 0x1400e5730
movabs rdi, 0x7ffffffffffffffe
mov rax, rdi
sub rax, r14
cmp rax, r13
jb 0x1400e5bd0
lea r13, [r14 + 1]
mov rcx, r13
or rcx, 7
cmp rcx, rdi
ja 0x1400e560f
mov rdx, rsi
shr rdx, 1
mov rax, rdi
sub rax, rdx
cmp rsi, rax
ja 0x1400e560f
lea rax, [rdx + rsi]
mov rdi, rcx
cmp rcx, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x68]
call fcn.140049060
mov r15, rax
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x50], rdi
add r14, r14
mov r8, r14
mov rcx, rax
cmp rsi, 7
jbe 0x1400e5681
mov rdi, qword [rbp - 0x68]
mov rdx, rdi
call fcn.1402a12e0
mov dword [r15 + r14], 0x3a
lea rdx, [rsi*2 + 2]
cmp rdx, 0x1000
jb 0x1400e5677
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x1400e5bd6
mov rdi, rcx
mov rcx, rdi
call fcn.140260e60
jmp 0x1400e5692
lea rdx, [rbp - 0x68]
call fcn.1402a12e0
mov dword [r15 + r14], 0x3a
mov qword [rbp - 0x68], r15
mov r13d, 1
mov r15, qword [rsp + 0x30]
mov edx, dword [rbp + 0xa0]
lea rcx, [rbp + 0xb0]
call fcn.1400908a0
nop
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 7
cmova rdx, qword [rbp + 0xb0]
mov r8, qword [rbp + 0xc0]
lea rcx, [rbp - 0x68]
call fcn.140048ec0
nop
mov rdx, qword [rbp + 0xc8]
cmp rdx, 7
jbe 0x1400e5722
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e571d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e5bd6
call fcn.140260e60
lea r14, [rbp - 0x68]
cmp qword [rbp - 0x50], 7
cmova r14, qword [rbp - 0x68]
mov dword [rsp + 0x20], 0x10000000
mov r9, r15
mov r8, r14
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rcx, rax
mov qword [rbx + 0x3e0], rax
test rax, rax
je 0x1400e5899
movabs rax, 0x20c49ba5e353f7cf
mov rdi, qword [rsp + 0x40]
imul qword [rdi + 0x198]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edx, 1
cmovl edx, r13d
mov dword [rsp + 0x20], edx
mov r9d, edx
mov r8d, edx
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x1400e5899
cmp byte [rdi + 0x190], 0
je 0x1400e57d1
mov dword [rsp + 0x38], r13d
mov r9d, 4
lea r8, [rsp + 0x38]
lea edx, [r9 + 0x45]
mov rcx, qword [rbx + 0x3e0]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1400e5899
mov dword [rsp + 0x30], 0xaa0
mov r9d, 4
lea r8, [rsp + 0x30]
lea edx, [r9 + 0x50]
mov rcx, qword [rbx + 0x3e0]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1400e5899
mov rax, qword [rbx + 0x3e0]
mov rcx, qword [rdi + 0x228]
test rcx, rcx
je 0x1400e5820
mov qword [rsp + 0x68], rax
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + reloc.WS2_32.dll_recv]
xor r9d, r9d
mov r8d, 0x97f4c30
lea rdx, [0x1400e2050]
mov rcx, qword [rbx + 0x3e0]
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp rax, 0xffffffffffffffff
je 0x1400e5899
lea rcx, [rbx + 0x28]
call fcn.1400d6b00
test al, al
je 0x1400e5868
mov eax, 0x1bb
mov r8d, 0x50
cmp byte [rbx + 0x3f0], 0
cmovne r8d, eax
jmp 0x1400e586f
mov r8d, dword [rbx + 0x108]
lea rdx, [rbx + 0x68]
cmp qword [rdx + 0x18], 7
jbe 0x1400e587d
mov rdx, qword [rdx]
xor r9d, r9d
mov rcx, qword [rbx + 0x3e0]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbx + 0x3e8], rax
test rax, rax
jne 0x1400e58a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor edi, edi
jmp 0x1400e58b0
xchg byte [rbx + 0x3d8], r13b
xor edi, edi
mov ebx, edi
mov rdx, qword [rbp + 0x98]
cmp rdx, 7
jbe 0x1400e58f6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e58f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e5bdc
call fcn.140260e60
movdqa xmm0, xmmword [0x1402fcf40]
movdqa xmmword [rbp + 0x90], xmm0
mov word [rbp + 0x80], di
mov rdx, qword [rbp + 0x78]
cmp rdx, 7
jbe 0x1400e594d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e5948
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e5bdc
call fcn.140260e60
movdqa xmm0, xmmword [0x1402fcf40]
movdqa xmmword [rbp + 0x70], xmm0
mov word [rbp + 0x60], di
mov rdx, qword [rbp + 0x58]
cmp rdx, 7
jbe 0x1400e599e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e5999
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e5bdc
call fcn.140260e60
movdqa xmm0, xmmword [0x1402fcf40]
movdqa xmmword [rbp + 0x50], xmm0
mov word [rbp + 0x40], di
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x1400e59ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e59ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e5bdc
call fcn.140260e60
movdqa xmm0, xmmword [0x1402fcf40]
movdqa xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], di
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x1400e5a40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e5a3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e5bdc
call fcn.140260e60
movdqa xmm0, xmmword [0x1402fcf40]
movdqa xmmword [rbp + 0x10], xmm0
mov word [rbp], di
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x1400e5a91
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e5a8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e5bdc
call fcn.140260e60
movdqa xmm0, xmmword [0x1402fcf40]
movdqa xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], di
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x1400e5ae2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e5add
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e5bdc
call fcn.140260e60
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], di
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x1400e5b32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e5b2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400e5baf
call fcn.140260e60
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], di
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400e5b52
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400e5b62
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400e5b73
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop
mov rcx, qword [rsp + 0x70]
call fcn.140245520
mov eax, ebx
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140260e40
lea r11, [rsp + 0x1e0]
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
call fcn.14027d5c0
nop
mov ecx, 5
call fcn.1402441d0
int3
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, 6
call fcn.1402441d0
nop
call fcn.140003620
int3
call fcn.14027d5c0
nop
call fcn.14027d5c0
int3