Function at 0x14009c06c
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x14023ab58]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rbx, rcx
mov al, byte [rcx + 0x3c8]
xor r12d, r12d
test al, al
je 0x14009c0b5
xor eax, eax
jmp 0x14009c541
add rcx, 0x110
mov qword [rsp + 0x60], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov al, byte [rbx + 0x3c8]
test al, al
je 0x14009c0da
mov ebx, r12d
jmp 0x14009c534
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov r14, r12
mov r15, r12
mov byte [rbx + 0x3e1], r12b
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r12w
lea rdx, [0x1402006d0]
lea rcx, [rbp - 0x40]
call fcn.14001e81c
nop
lea rcx, [rbp - 0x20]
call fcn.140068e40
nop
lea rdx, [rbx + 0x170]
mov eax, dword [rdx + 0xe8]
mov edi, 1
test eax, eax
jne 0x14009c142
call fcn.14009b030
mov esi, eax
jmp 0x14009c2fd
cmp eax, 2
jne 0x14009c14e
mov esi, edi
jmp 0x14009c2fd
cmp eax, edi
jne 0x14009c216
call fcn.14009b030
mov esi, eax
cmp eax, 4
je 0x14009c2fd
mov byte [rbx + 0x3e1], dil
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpGetDefaultProxyConfiguration]
test eax, eax
je 0x14009c191
cmp dword [rsp + 0x68], edi
jne 0x14009c1ed
lea rcx, [rsp + 0x38]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x14009c1ed
cmp dword [rsp + 0x38], r12d
je 0x14009c1b0
mov byte [rbx + 0x3e1], dil
jmp 0x14009c1ed
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14009c1cf
mov byte [rbx + 0x3e1], dil
lea rcx, [rbx + 0x3e8]
call fcn.140095bec
jmp 0x14009c1ed
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14009c1ed
mov esi, 3
mov r14, rax
mov rax, qword [rsp + 0x50]
test rax, rax
cmovne r15, rax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14009c1fd
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14009c2fd
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14009c2fd
mov esi, 3
lea rcx, [rbp - 0x40]
call fcn.140095df0
cmp qword [rbp - 0x30], r12
je 0x14009c25a
lea rdx, [0x1402006d0]
lea rcx, [rbp - 0x40]
call fcn.140095fc8
test al, al
jne 0x14009c25a
cmp dword [rbp + 0xa0], r12d
jne 0x14009c25a
lea r14, [rbp]
cmp qword [rbp + 0x18], 8
cmovae r14, qword [rbp]
jmp 0x14009c2fd
lea rdx, [rbp]
lea rcx, [rbp - 0x80]
call fcn.140095d7c
cmp dword [rbp + 0xa0], r12d
jle 0x14009c2ef
mov rcx, qword [rbp - 0x70]
cmp rcx, qword [rbp - 0x68]
jae 0x14009c299
lea rax, [rcx + 1]
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rax, qword [rbp - 0x80]
mov dword [rax + rcx*2], 0x3a
jmp 0x14009c2a8
mov r9d, 0x3a
lea rcx, [rbp - 0x80]
call fcn.140028414
mov edx, dword [rbp + 0xa0]
lea rcx, [rbp - 0x60]
call fcn.140095c68
nop
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x50]
lea rcx, [rbp - 0x80]
call fcn.140017bfc
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14009c2ef
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
call fcn.1400131d4
lea r14, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r14, qword [rbp - 0x80]
mov dword [rsp + 0x20], 0x10000000
mov r9, r15
mov r8, r14
mov edx, esi
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rcx, rax
mov qword [rbx + 0x3d0], rax
test rax, rax
je 0x14009c491
movabs rax, 0x20c49ba5e353f7cf
imul qword [rbx + 0x2e8]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edx, edi
cmovl edx, edi
mov dword [rsp + 0x20], edx
mov r9d, edx
mov r8d, edx
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
je 0x14009c491
cmp byte [rbx + 0x2e0], r12b
je 0x14009c395
mov dword [rsp + 0x30], edi
mov r9d, 4
lea r8, [rsp + 0x30]
lea edx, [r9 + 0x45]
mov rcx, qword [rbx + 0x3d0]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x14009c491
mov dword [rsp + 0x34], 0xaa0
mov r9d, 4
lea r8, [rsp + 0x34]
lea edx, [r9 + 0x50]
mov rcx, qword [rbx + 0x3d0]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x14009c491
mov rcx, qword [rbx + 0x3d0]
cmp qword [rbx + 0x378], r12
je 0x14009c409
mov qword [rsp + 0x58], rcx
mov rcx, qword [rbx + 0x378]
test rcx, rcx
je 0x14009c56c
mov rax, qword [rcx]
movabs r10, 0xdc55be8d5edac070
lea rdx, [rsp + 0x58]
mov rax, qword [rax + 0x10]
call qword [case.0x14003356e.0]
mov rcx, qword [rbx + 0x3d0]
xor r9d, r9d
mov r8d, 0x17f4c30
lea rdx, [0x14009fef0]
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp rax, 0xffffffffffffffff
je 0x14009c491
cmp qword [rbx + 0x38], r12
je 0x14009c45d
lea rdx, [0x1402006d0]
lea rcx, [rbx + 0x28]
call fcn.140095fc8
test al, al
jne 0x14009c45d
cmp dword [rbx + 0x108], r12d
jne 0x14009c45d
mov al, byte [rbx + 0x3e0]
neg al
sbb ecx, ecx
and ecx, 0x16b
add ecx, 0x50
jmp 0x14009c463
mov ecx, dword [rbx + 0x108]
lea rdx, [rbx + 0x68]
cmp qword [rdx + 0x18], 8
jb 0x14009c471
mov rdx, qword [rdx]
xor r9d, r9d
movzx r8d, cx
mov rcx, qword [rbx + 0x3d0]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbx + 0x3d8], rax
test rax, rax
jne 0x14009c49b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14009c4a5
xchg byte [rbx + 0x3c8], dil
mov ebx, r12d
lea rcx, [rbp - 0x20]
call fcn.1400690fc
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14009c4c9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
call fcn.1400131d4
mov qword [rbp - 0x30], r12
mov edi, 7
mov qword [rbp - 0x28], rdi
mov word [rbp - 0x40], r12w
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14009c4f6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
call fcn.1400131d4
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x68], rdi
mov word [rbp - 0x80], r12w
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009c513
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14009c523
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14009c534
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1401d2140
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140056d6c
nop
int3