Function at 0x14006b4e0
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x1400e9070]
xor rax, rsp
mov qword [rbp + 0xd8], rax
mov rdi, rcx
xor r14d, r14d
lea rbx, [rcx + 0xb0]
mov rcx, rbx
call fcn.140073f40
test al, al
jne 0x14006b592
mov dword [rdi + 0x4c0], 0xfffffff6
mov byte [rdi + 0x4ec], 1
lea rcx, [rdi + 0x4c8]
lea rdx, str.Input_parameter_structure_contains_invalid_values_as_preference
call fcn.140002cb0
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x14006b564
cmp byte [0x1400ed7fd], r14b
jne 0x14006b570
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
mov rax, qword [rcx]
lea r8, str.failed_to_init_the_pref_of_GDE
lea rdx, [0x1400c3148]
mov rax, qword [rax + 0x38]
call qword [case.0x140049d6d.0]
xor al, al
jmp 0x14006bb50
lea r12, [rdi + 0x430]
lea rsi, [0x1400c3148]
test rbx, rbx
jne 0x14006b5ce
mov dword [rdi + 0x4c0], 0xfffffff6
mov byte [rdi + 0x4ec], 1
lea rcx, [rdi + 0x4c8]
lea rdx, str.Input_preference_is_null
call fcn.140002cb0
jmp 0x14006bb02
mov qword [rdi + 0x438], rbx
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x14006b5ea
cmp byte [0x1400ed7fd], r14b
jne 0x14006b5f6
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
call fcn.1400446e0
movzx ebx, al
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x70]
call fcn.14007cb40
mov qword [rbp - 0x40], r14
mov byte [rbp - 0x38], r14b
mov qword [rbp - 0x30], r14
mov byte [rbp - 0x28], r14b
mov qword [rbp - 8], r14
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r14w
mov qword [rbp + 0x18], r14
mov dword [rbp + 0x20], r14d
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x38], r14
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r14w
mov qword [rbp + 0x48], r14
mov qword [rbp + 0x58], r14
mov qword [rbp + 0x60], 7
mov word [rbp + 0x48], r14w
mov qword [rbp + 0x68], r14
mov qword [rbp + 0x78], r14
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], r14w
mov qword [rbp + 0x88], r14
mov qword [rbp + 0x90], r14
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r14
mov rcx, qword [r12]
test rcx, rcx
je 0x14006b6bb
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [r12], r14
mov rcx, qword [rdi + 0x438]
add rcx, 0x1c8
cmp qword [rcx + 0x18], 8
jb 0x14006b6d3
mov rcx, qword [rcx]
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [r12], rax
test rax, rax
jne 0x14006b755
mov dword [rdi + 0x4c0], 0xffffffd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x4c4], eax
mov byte [rdi + 0x4ec], 1
lea rcx, [rdi + 0x4c8]
lea rdx, str.Failed_to_open_http_session
call fcn.140002cb0
mov rdi, qword [0x1400ed828]
test rdi, rdi
je 0x14006b734
cmp byte [0x1400ed7fd], 0
jne 0x14006b740
call fcn.14005c3a0
mov rdi, qword [0x1400ed828]
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.failed_to_open_the_winhttp_session____d
jmp 0x14006bae5
mov rax, qword [rdi + 0x438]
lea r9, [rax + 0x128]
movzx eax, byte [rax + 0x214]
mov byte [rsp + 0x20], al
mov r8, r12
lea rdx, [rbp + 0xc0]
lea rcx, [rbp - 0x70]
call fcn.1400642d0
test al, al
jne 0x14006b876
mov dword [rdi + 0x4c0], 0xffffffd8
mov eax, dword [rbp - 0x18]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp - 0x14]
mov dword [rsp + 0x44], eax
mov eax, dword [rbp - 0x10]
mov dword [rsp + 0x48], eax
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x50]
call fcn.140004480
movups xmm0, xmmword [rbp + 0x18]
movaps xmmword [rsp + 0x70], xmm0
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x4c4], eax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14006b80b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006b806
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006bb7b
call fcn.140079b70
movdqa xmm0, xmmword [0x1400d6740]
movdqa xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], r14w
mov byte [rdi + 0x4ec], 1
lea r15, [rdi + 0x4c8]
lea rdx, str.Failed_to_resolve_machine_proxy_settings
mov rcx, r15
call fcn.140002cb0
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x14006b851
cmp byte [0x1400ed7fd], 0
jne 0x14006b85d
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
mov rax, qword [rcx]
lea r8, str.failed_to_resolve_the_proxy_setting_on_the_machine
mov rdx, rsi
mov rax, qword [rax + 0x48]
call qword [case.0x140049d6d.0]
jmp 0x14006b87d
lea r15, [rdi + 0x4c8]
mov r9d, 0x18
lea r8, [rbp + 0xc0]
lea edx, [r9 + 0xe]
mov rcx, qword [r12]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14006b905
mov dword [rdi + 0x4c0], 0xffffffd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x4c4], eax
mov byte [rdi + 0x4ec], 1
lea rdx, str.Failed_to_set_proxy_setting_in_http_session
mov rcx, r15
call fcn.140002cb0
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x14006b8dd
cmp byte [0x1400ed7fd], 0
jne 0x14006b8e9
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
mov rax, qword [rcx]
lea r8, str.failed_to_set_the_proxy_option_in_the_winhttp_session
mov rdx, rsi
mov rax, qword [rax + 0x48]
call qword [case.0x140049d6d.0]
jmp 0x14006baf9
test bl, bl
je 0x14006b9de
mov r14, qword [0x1400ed828]
test r14, r14
je 0x14006b922
cmp byte [0x1400ed7fd], 0
jne 0x14006b92e
call fcn.14005c3a0
mov r14, qword [0x1400ed828]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x14006b9de
test r14, r14
je 0x14006b94f
mov rbx, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
jmp 0x14006b9b5
cmp qword [0x1400ed810], 0
je 0x14006b999
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.In_revertThreadContextToProcessContext._Cant_RevertToSelf._ErrorCode:__d_.
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9, rsi
lea r8, str.ProcessUtils
lea rdx, str.OOBEUtils
mov ecx, PathResolve
mov rax, qword [0x1400ed810]
call qword [case.0x140049d6d.0]
jmp 0x14006b9de
mov rbx, qword [0x1400ed818]
test rbx, rbx
je 0x14006b9de
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400ed818]
mov dword [rsp + 0x28], eax
lea rax, str.In_revertThreadContextToProcessContext._Cant_RevertToSelf._ErrorCode:__d_.
mov qword [rsp + 0x20], rax
lea r9, str.ProcessUtils
mov r8, rsi
mov edx, PathResolve
mov rax, qword [rbx + 0x68]
call qword [case.0x140049d6d.0]
mov dword [rsp + 0x20], 0xea60
xor edx, edx
mov r9d, 0xea60
mov r8d, r9d
mov rcx, qword [r12]
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x14006ba61
mov dword [rdi + 0x4c0], 0xffffffd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x4c4], eax
mov byte [rdi + 0x4ec], 1
lea rdx, str.Failed_to_set_timeout_http_session
mov rcx, r15
call fcn.140002cb0
mov rdi, qword [0x1400ed828]
test rdi, rdi
je 0x14006ba40
cmp byte [0x1400ed7fd], 0
jne 0x14006ba4c
call fcn.14005c3a0
mov rdi, qword [0x1400ed828]
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.failed_to_set_the_timeout_for_http_session._Err____d
jmp 0x14006bae5
mov dword [rbp - 0x80], 2
mov r9d, 4
lea r8, [rbp - 0x80]
lea edx, [r9 + 0x54]
mov rcx, qword [r12]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14006bb3e
mov dword [rdi + 0x4c0], 0xffffffd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x4c4], eax
mov byte [rdi + 0x4ec], 1
lea rdx, str.Failed_to_set_redirection_policy
mov rcx, r15
call fcn.140002cb0
mov rdi, qword [0x1400ed828]
test rdi, rdi
je 0x14006bac9
cmp byte [0x1400ed7fd], 0
jne 0x14006bad5
call fcn.14005c3a0
mov rdi, qword [0x1400ed828]
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.failed_to_set_the_redirection_policy_for_http_session._Err____d
mov r9d, eax
mov rdx, rsi
mov rcx, rdi
mov rax, qword [rbx + 0x48]
call qword [case.0x140049d6d.0]
nop
lea rcx, [rbp - 0x70]
call fcn.140063080
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x14006bb17
cmp byte [0x1400ed7fd], 0
jne 0x14006bb23
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
mov rax, qword [rcx]
lea r8, str.failed_to_init_the_http_session
mov rdx, rsi
mov rax, qword [rax + 0x38]
call qword [case.0x140049d6d.0]
xor al, al
jmp 0x14006bb50
lea rcx, [rbp - 0x70]
call fcn.140063080
mov byte [rdi + 0x428], 1
mov al, 1
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.140079b50
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140080d34
nop
int3