Function at 0x140027d80
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 [0x1400aabb0], rax
test rax, rax
je 0x1400283d4
cmp qword [0x1400ab108], 2
jl 0x140027def
mov rcx, rsi
call fcn.14001c2e0
mov rcx, qword [0x1400aabb0]
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x298
pop rdi
pop rsi
jmp fcn.14005fbf2
mov byte [0x1400aaba8], 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, 0x600000000000001
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 0x140027edf
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rdx
lea rdx, str.c:_programs_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 0x140027f12
mov rax, qword [rsp + 0x60]
movdqu xmm0, xmmword [rsi]
test rax, rax
jne 0x140027eed
jmp 0x140027ee9
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, [0x14008bbd8]
lea rcx, [rsp + 0x110]
lea rdx, [rsp + 0x80]
lea r8, [rsp + 0xd0]
call fcn.140028b00
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 [0x1400aab98], 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 [0x1400ab160]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rax, [rax + 0x10]
cmp qword [rsi + 0x18], rax
jne 0x14002806c
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
mov eax, dword [0x1400ab160]
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 0x140028003
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x90], rax
mov eax, dword [0x1400ab160]
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:_programs_odin_core_dynlib_lib_windows.odin
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0x2d
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.1400350a0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14002812e
cmp qword [rsp + 0x68], 0
je 0x1400284c1
call sub.KERNEL32.dll_LoadLibraryW
mov rdi, rax
lea rcx, [rsp + 0xf0]
lea rdx, [rsp + 0x80]
mov r8, rsi
call fcn.140056d50
movaps xmm0, xmmword [0x14008bc10]
movaps xmmword [rsp + 0x150], xmm0
movaps xmm0, xmmword [0x14008bc20]
movaps xmmword [rsp + 0x160], xmm0
movaps xmm0, xmmword [0x14008bc30]
movaps xmmword [rsp + 0x170], xmm0
movaps xmm0, xmmword [0x14008bc40]
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 [0x1400ab0d8]
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 [0x1400aabf0], rax
mov rcx, qword [rsp + 0x1f8]
lea rdx, str.icon
call sub.USER32.dll_LoadIconW
mov qword [0x1400aabe8], rax
mov rcx, qword [0x1400aabf0]
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 0x1400283a9
lea rsi, [rsp + 0x250]
jmp 0x140028384
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.USER32.dll_GetMessageW
test eax, eax
je 0x1400283a9
mov rcx, qword [0x1400aabf0]
mov rdx, rsi
call sub.USER32.dll_IsDialogMessageW
test eax, eax
jne 0x140028370
mov rcx, rsi
call sub.USER32.dll_TranslateMessage
mov rcx, rsi
call sub.USER32.dll_DispatchMessageW
jmp 0x140028370
test rdi, rdi
je 0x1400283b6
mov rcx, rdi
call sub.KERNEL32.dll_FreeLibrary
mov rcx, qword [0x1400aabb0]
call fcn.14005fbf2
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, 0x600000000000001
mov qword [rsp + 0x138], rcx
mov dword [rsp + 0xbc], eax
lea rax, [rsp + 0xbc]
mov qword [rsp + 0x140], rax
movabs rax, 0x100000000000008
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, [0x14008bbd8]
lea rdi, [rsp + 0x240]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r9, rsi
call fcn.140028850
mov qword [rsp + 0x20], rsi
lea rdx, str.f_b_
mov ecx, 0x10
mov r8, rdi
xor r9d, r9d
call fcn.140013d10
call fcn.14003d060
mov qword [rsp + 0x20], 0
lea rcx, str.c:_programs_odin_core_sys_windows_util.odin
mov edx, 0x39
mov r8d, 0xf
xor r9d, r9d
call fcn.14005d190
int3