Function at 0x14001b920
Capabilities:
Access peb ldr_data
Initialize winhttp library
Inspect load icon resource

Disassembly:
push rsi
push rdi
sub rsp, 0x298
movaps xmmword [rsp + 0x280], xmm6
mov rsi, rcx
mov dword [rsp + 0x20], 0
lea rcx, str.WinHTTP_1.0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.WINHTTP.dll_WinHttpOpen
mov qword [0x14009e2e0], rax
test rax, rax
je 0x14001bf74
cmp qword [0x14009e838], 2
jl 0x14001b98f
mov rcx, rsi
call fcn.14000f000
mov rcx, qword [0x14009e2e0]
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x298
pop rdi
pop rsi
jmp fcn.14005521a
mov byte [0x14009e2d8], 1
pxor xmm0, xmm0
movdqa xmmword [rsp + 0xd0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
lea rax, str.C:BuildTools
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x1a8], 0xd
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0xc0], rax
movabs rax, 0x600000000000002
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], 1
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
test rax, rax
je 0x14001ba7f
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rdx
lea rdx, str.c:_odin_core_fmt_fmt.odin
mov qword [rsp + 0x30], rdx
movdqu xmmword [rsp + 0x20], xmm0
mov edi, 0x10
mov r8d, 0x10
mov r9d, 1
xor edx, edx
call rax
test al, al
jne 0x14001bab2
mov rax, qword [rsp + 0x60]
movdqu xmm0, xmmword [rsi]
test rax, rax
jne 0x14001ba8d
jmp 0x14001ba89
movq xmm0, rcx
pslldq xmm0, 8
xor edi, edi
xor eax, eax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], rdi
movdqu xmmword [rsp + 0x98], xmm0
mov qword [rsp + 0x20], rsi
lea r9, [0x14008b5f8]
lea rcx, [rsp + 0x110]
lea rdx, [rsp + 0x80]
lea r8, [rsp + 0xd0]
call fcn.14001dad0
movaps xmm0, xmmword [rsp + 0x80]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x230], xmm0
movaps xmm0, xmmword [rsp + 0x230]
movups xmmword [0x14009e2c8], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], 0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov eax, dword [0x14009e890]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x10]
cmp qword [rsi + 0x18], rax
jne 0x14001bc0c
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
mov eax, dword [0x14009e890]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x10]
mov qword [rsp + 0x80], rcx
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14001bba3
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x90], rax
mov eax, dword [0x14009e890]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
inc qword [rax + 0x40]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x120], rax
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x118]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x1c0]
mov qword [rsp + 0xf0], rcx
mov rcx, qword [rsp + 0x1c8]
mov qword [rsp + 0xf8], rcx
mov qword [rsp + 0x100], rax
lea rax, str.c:_odin_core_dynlib_lib_windows.odin
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0x24
movabs rax, 0x20000000d
mov qword [rsp + 0x90], rax
lea rax, str._load_library
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0xd
lea r8, [rsi + 0x10]
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.riched20.dll
lea rcx, [rsp + 0x60]
mov r9, rsi
call fcn.14002c6d0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001bcce
cmp qword [rsp + 0x68], 0
je 0x14001c061
call sub.KERNEL32.dll_LoadLibraryW
mov rdi, rax
lea rcx, [rsp + 0xf0]
lea rdx, [rsp + 0x80]
mov r8, rsi
call fcn.14004c110
movaps xmm0, xmmword [0x14008b630]
movaps xmmword [rsp + 0x150], xmm0
movaps xmm0, xmmword [0x14008b640]
movaps xmmword [rsp + 0x160], xmm0
movaps xmm0, xmmword [0x14008b650]
movaps xmmword [rsp + 0x170], xmm0
movaps xmm0, xmmword [0x14008b660]
movaps xmmword [rsp + 0x180], xmm0
lea rax, [0x14009d3d0]
mov qword [rsp + 0x190], rax
xor ecx, ecx
call sub.KERNEL32.dll_GetModuleHandleW
mov qword [rsp + 0x168], rax
mov ecx, 0xf
call sub.USER32.dll_GetSysColorBrush
mov qword [rsp + 0x180], rax
mov rdx, qword [0x14009e3c0]
xor ecx, ecx
call sub.USER32.dll_LoadCursorA
mov qword [rsp + 0x178], rax
movaps xmm0, xmmword [rsp + 0x150]
movaps xmm1, xmmword [rsp + 0x160]
movaps xmm2, xmmword [rsp + 0x180]
movaps xmmword [rsp + 0x1e0], xmm0
movaps xmmword [rsp + 0x1f0], xmm1
movaps xmmword [rsp + 0x210], xmm2
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x220], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x200], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x208], rax
lea rcx, [rsp + 0x1e0]
call sub.USER32.dll_RegisterClassW
mov eax, dword [0x14009d168]
mov ecx, dword [0x14009d16c]
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0xb4], ecx
lea rcx, [rsp + 0xa8]
mov edx, 0x10ca0000
xor r8d, r8d
call sub.USER32.dll_AdjustWindowRect
mov eax, dword [rsp + 0xb0]
mov ecx, dword [rsp + 0xb4]
sub eax, dword [rsp + 0xa8]
sub ecx, dword [rsp + 0xac]
mov dword [0x14009d168], eax
mov dword [0x14009d16c], ecx
mov r8, qword [rsp + 0x1f8]
mov rdx, qword [rsp + 0x220]
mov qword [rsp + 0x50], r8
xorps xmm6, xmm6
movups xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
lea r8, str.PortableBuildTools_Setup
xor ecx, ecx
mov r9d, 0x10ca0000
call sub.USER32.dll_CreateWindowExW
mov qword [0x14009e320], rax
mov rcx, qword [rsp + 0x1f8]
lea rdx, str.icon
call sub.USER32.dll_LoadIconW
mov qword [0x14009e318], rax
mov rcx, qword [0x14009e320]
mov edx, 0xfffffff2
mov r8, rax
call sub.USER32.dll_SetClassLongPtrW
call sub.KERNEL32.dll_FreeConsole
movaps xmmword [rsp + 0x250], xmm6
movaps xmmword [rsp + 0x260], xmm6
movaps xmmword [rsp + 0x270], xmm6
lea rcx, [rsp + 0x250]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.USER32.dll_GetMessageW
test eax, eax
je 0x14001bf49
lea rsi, [rsp + 0x250]
jmp 0x14001bf24
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.USER32.dll_GetMessageW
test eax, eax
je 0x14001bf49
mov rcx, qword [0x14009e320]
mov rdx, rsi
call sub.USER32.dll_IsDialogMessageW
test eax, eax
jne 0x14001bf10
mov rcx, rsi
call sub.USER32.dll_TranslateMessage
mov rcx, rsi
call sub.USER32.dll_DispatchMessageW
jmp 0x14001bf10
test rdi, rdi
je 0x14001bf56
mov rcx, rdi
call sub.KERNEL32.dll_FreeLibrary
mov rcx, qword [0x14009e2e0]
call fcn.14005521a
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x298
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
xorps xmm0, xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0x130], xmm0
movaps xmmword [rsp + 0x140], xmm0
lea rcx, str.WinHttpOpen_failed_with_error_code:
mov qword [rsp + 0x1b0], rcx
mov qword [rsp + 0x1b8], 0x23
lea rcx, [rsp + 0x1b0]
mov qword [rsp + 0x130], rcx
movabs rcx, 0x600000000000002
mov qword [rsp + 0x138], rcx
mov dword [rsp + 0xbc], eax
lea rax, [rsp + 0xbc]
mov qword [rsp + 0x140], rax
movabs rax, 0x100000000000001
mov qword [rsp + 0x148], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], 2
movaps xmmword [rsp + 0x240], xmm0
lea r8, [0x14008b5f8]
lea rdi, [rsp + 0x240]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r9, rsi
call fcn.14001c430
mov qword [rsp + 0x20], rsi
lea rdx, str._vs_b_
mov ecx, 0x10
mov r8, rdi
xor r9d, r9d
call fcn.14002c600
call fcn.14002c150
mov qword [rsp + 0x20], 0
lea rcx, str.c:_odin_core_sys_windows_util.odin
mov edx, 0x39
mov r8d, 0xf
xor r9d, r9d
call fcn.1400525f0
int3