Function at 0x140006410
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x6e0
mov qword [rax - 0x630], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rsp + 0x6d0], rax
mov r13, rcx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ecx, 4
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [rcx + rdx]
cmp dword [0x14006e5b4], eax
jg 0x14000703b
or rbx, 0xffffffffffffffff
xor r14d, r14d
cmp qword [0x140068dd0], r14
jne 0x1400064c9
mov r8d, 0x104
lea rdx, [rsp + 0x2b0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x4c0]
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
lea rdx, [rsp + 0x4c0]
lea rcx, [0x140068dc0]
call fcn.14000b708
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
lea rdx, [0x140068dc0]
lea rcx, [rsp + 0x68]
call fcn.1400168e8
nop
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov qword [rsp + 0x248], rbx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000653d
dec rcx
mov qword [rsp + 0xd0], rcx
mov rax, rbx
cmp rcx, rbx
cmovb rax, rcx
lea r9, [rdx + rax*2]
jmp 0x14000652e
cmp r9, rdx
je 0x14000653d
sub r9, 2
cmp word [r9], 0x5c
jne 0x140006525
sub r9, rdx
sar r9, 1
jmp 0x140006540
mov r9, rbx
cmp r9, rbx
jne 0x140006565
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x98], xmm0
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x88]
call fcn.1400168e8
jmp 0x14000657d
inc r9
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x68]
call fcn.1400090f0
lea rsi, [0x140068d30]
mov rcx, rsi
call fcn.14000b6a4
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [0x140068d30], xmm0
movups xmm1, xmmword [rsp + 0x98]
movups xmmword [0x140068d40], xmm1
movdqa xmm0, xmmword [0x14005ad60]
movdqu xmmword [rsp + 0x98], xmm0
mov word [rsp + 0x88], r14w
lea rcx, [rsp + 0x88]
call fcn.14000b6a4
nop
lea rcx, [rsp + 0x68]
call fcn.14000b6a4
lea r8, [0x140056e80]
mov rdx, rsi
lea rcx, [rsp + 0xe8]
call fcn.14000d5a8
mov rbx, rax
mov qword [rsp + 0x1c0], r14
mov edi, 0xf
mov qword [rsp + 0x1c8], rdi
mov byte [rsp + 0x1b0], r14b
mov qword [rsp + 0x148], r14
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140006628
mov rdx, qword [rax]
lea r8, [0x140059b30]
lea rcx, [rsp + 0x148]
call fcn.14002a0a8
cmp qword [rsp + 0x148], r14
jne 0x1400066ac
mov qword [rsp + 0x1e0], r14
mov qword [rsp + 0x1e8], rdi
mov byte [rsp + 0x1d0], r14b
mov rdx, qword [rsp + 0x1c8]
mov r12d, 0x1000
cmp rdx, 0x10
jb 0x14000678f
inc rdx
mov rcx, qword [rsp + 0x1b0]
mov rax, rcx
cmp rdx, r12
jb 0x1400066a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007091
call fcn.14001e740
jmp 0x14000678f
cmp qword [rbx + 0x18], 8
jb 0x1400066b6
mov rbx, qword [rbx]
lea rdx, [rsp + 0x280]
mov rcx, rbx
call fcn.14002aa80
movsxd rbx, dword [rsp + 0x294]
test rbx, rbx
je 0x14000675c
cmp rbx, qword [rsp + 0x1c0]
ja 0x140006709
mov qword [rsp + 0x1c0], rbx
lea rax, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 0x10
cmovae rax, qword [rsp + 0x1b0]
mov byte [rax + rbx], r14b
jmp 0x140006724
mov rdx, rbx
sub rdx, qword [rsp + 0x1c0]
xor r8d, r8d
lea rcx, [rsp + 0x1b0]
call fcn.14000b7ec
lea rcx, [rsp + 0x1b0]
cmp qword [rsp + 0x1c8], 0x10
cmovae rcx, qword [rsp + 0x1b0]
mov qword [rsp + 0xd8], rcx
mov r9, qword [rsp + 0x148]
mov r8d, 1
mov rdx, rbx
call fcn.14002ae40
mov rcx, qword [rsp + 0x148]
call fcn.14002a184
movups xmm0, xmmword [rsp + 0x1b0]
movups xmmword [rsp + 0x1d0], xmm0
movups xmm1, xmmword [rsp + 0x1c0]
movups xmmword [rsp + 0x1e0], xmm1
mov r12d, 0x1000
mov byte [rsp + 0x1b0], r14b
mov qword [rsp + 0x1c8], rdi
mov qword [rsp + 0x1c0], r14
lea rcx, [rsp + 0xe8]
call fcn.14000b6a4
cmp qword [rsp + 0x1e0], r14
jne 0x140006822
mov r9d, 0x10
lea r8, str.Windows_WebView2_wrapper
lea rdx, str.Failed_to_load_package.json._Check_the_file_is_in_the_same_folder_as_the_app.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x1e8]
cmp rdx, 0x10
jb 0x140007008
inc rdx
mov rcx, qword [rsp + 0x1d0]
mov rax, rcx
cmp rdx, r12
jb 0x140007003
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007097
jmp 0x140007003
lea rbx, [0x140068bf0]
mov rdx, rbx
lea rcx, [rsp + 0x1d0]
call fcn.14001a9ac
nop
lea rcx, [rsp + 0x108]
call fcn.14001c300
nop
mov r8d, 1
lea rdx, [0x140057044]
mov rcx, rax
call fcn.1400103e4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xb8], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0xa8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0xb8], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, rbx
cmp qword [0x140068c08], 8
cmovae rdx, qword [0x140068bf0]
mov r8, qword [0x140068c00]
lea rcx, [rsp + 0xa8]
call fcn.1400103e4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x218], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x208], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x218], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rcx, [rsp + 0xa8]
call fcn.14000b6a4
nop
lea rcx, [rsp + 0x108]
call fcn.14000b6a4
mov dword [rsp + 0x230], 1
mov qword [rsp + 0x238], r14
and qword [rsp + 0x240], 0
xor r8d, r8d
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x228]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
cmp qword [0x140068c68], r14
je 0x140006976
lea r8, [0x140068c58]
mov rdx, rsi
lea rcx, [rsp + 0x128]
call fcn.14000d660
mov rcx, rax
call fcn.14001c23c
mov qword [0x140068c78], rax
lea rcx, [rsp + 0x128]
call fcn.14000b6a4
cmp qword [0x140068c78], r14
jne 0x140006994
mov edx, 0x7f00
mov rcx, r13
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [0x140068c78], rax
mov qword [rsp + 0x60], r14
mov eax, dword [0x140068ca8]
test eax, eax
jne 0x140006acc
lea rdx, [rsp + 0x150]
xor ecx, ecx
call qword [sym.imp.WebView2Loader.dll_GetAvailableCoreWebView2BrowserVersionString]
mov rcx, qword [rsp + 0x150]
lea rsi, [0x140068c30]
test rcx, rcx
jne 0x140006ac1
mov r8, rsi
cmp qword [0x140068c48], 8
cmovae r8, qword [0x140068c30]
lea rdx, [0x140068cb0]
cmp qword [0x140068cc8], 8
cmovae rdx, qword [0x140068cb0]
lea r9d, [rcx + 0x40]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov r8, rbx
lea rdx, [rsp + 0x208]
mov rcx, r13
call fcn.14001b9ec
lea rdx, [rsp + 0x150]
xor ecx, ecx
call qword [sym.imp.WebView2Loader.dll_GetAvailableCoreWebView2BrowserVersionString]
mov rcx, qword [rsp + 0x150]
test rcx, rcx
jne 0x140006ac1
cmp qword [0x140068c48], 8
cmovae rsi, qword [0x140068c30]
lea rdx, [0x140068cf0]
cmp qword [0x140068d08], 8
cmovae rdx, qword [0x140068cf0]
lea r9d, [rcx + 0x10]
mov r8, rsi
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rsp + 0x208]
call fcn.14000b6a4
nop
mov rdx, qword [rsp + 0x1e8]
cmp rdx, 0x10
jb 0x140007008
inc rdx
mov rcx, qword [rsp + 0x1d0]
mov rax, rcx
cmp rdx, r12
jb 0x140007003
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000709d
jmp 0x140007003
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140006b8a
cmp eax, 1
jne 0x140006b83
lea rbx, [0x140057048]
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x158]
mov rcx, rbx
call qword [sym.imp.WebView2Loader.dll_GetAvailableCoreWebView2BrowserVersionString]
mov rcx, qword [rsp + 0x158]
test rcx, rcx
jne 0x140006b7d
lea r8, [0x140068c30]
cmp qword [0x140068c48], 8
cmovae r8, qword [0x140068c30]
lea r9d, [rcx + 0x10]
lea rdx, str.This_app_is_set_to__fixed__distribution_mode__but_the_WebView2_control_failed_to_initialize._Check_there_is_a_valid_fixed_distribution_of_Microsoft_Edge_WebView2_runtime_in_the__webview2__subfolder.
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rsp + 0x208]
call fcn.14000b6a4
nop
mov rdx, qword [rsp + 0x1e8]
cmp rdx, 0x10
jb 0x140007008
inc rdx
mov rcx, qword [rsp + 0x1d0]
mov rax, rcx
cmp rdx, r12
jb 0x140007003
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400070a3
jmp 0x140007003
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rsi, [0x140068c30]
mov dword [rsp + 0x160], 0x50
mov dword [rsp + 0x164], 3
lea rax, [0x140007778]
mov qword [rsp + 0x168], rax
and qword [rsp + 0x170], 0
mov qword [rsp + 0x178], r13
mov rax, qword [0x140068c78]
mov qword [rsp + 0x180], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rsp + 0x188], rax
movdqa xmm0, xmmword [0x14005ad50]
movdqa xmmword [rsp + 0x190], xmm0
lea rax, str.WindowsWebview2Wrapper
mov qword [rsp + 0x1a0], rax
mov rax, qword [0x140068c78]
mov qword [rsp + 0x1a8], rax
lea rcx, [rsp + 0x160]
call qword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x140006c98
mov r9d, 0x10
lea r8, str.Windows_WebView2_wrapper
lea rdx, str.Failed_to_register_window_class
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rsp + 0x208]
call fcn.14000b6a4
nop
mov rdx, qword [rsp + 0x1e8]
cmp rdx, 0x10
jb 0x140007008
inc rdx
mov rcx, qword [rsp + 0x1d0]
mov rax, rcx
cmp rdx, r12
jb 0x140007003
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400070a9
jmp 0x140007003
mov edi, 0xca0000
mov eax, 0xcf0000
cmp byte [0x140068c80], r14b
cmovne edi, eax
mov ecx, dword [0x140068c54]
call fcn.14001c064
mov ebx, eax
mov ecx, dword [0x140068c50]
call fcn.14001c064
and qword [rsp + 0x1f0], 0
mov dword [rsp + 0x1f8], eax
mov dword [rsp + 0x1fc], ebx
xor r9d, r9d
xor r8d, r8d
mov edx, edi
lea rcx, [rsp + 0x1f0]
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ecx, dword [rsp + 0x1f8]
sub ecx, dword [rsp + 0x1f0]
mov eax, dword [rsp + 0x1fc]
sub eax, dword [rsp + 0x1f4]
cmp qword [0x140068c48], 8
cmovae rsi, qword [0x140068c30]
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov eax, 0x80000000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
lea rdx, str.WindowsWebview2Wrapper
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x14006e450], rax
test rax, rax
jne 0x140006dd7
lea r9d, [rax + 0x10]
lea r8, str.Windows_WebView2_wrapper
lea rdx, str.Failed_to_create_window
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rsp + 0x208]
call fcn.14000b6a4
nop
mov rdx, qword [rsp + 0x1e8]
cmp rdx, 0x10
jb 0x140007008
inc rdx
mov rcx, qword [rsp + 0x1d0]
mov rax, rcx
cmp rdx, r12
jb 0x140007003
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400070af
jmp 0x140007003
mov qword [rsp + 0x200], r14
lea rcx, [rsp + 0x200]
call fcn.14000d704
nop
lea rdx, [0x140068c88]
cmp qword [0x140068ca0], 8
cmovae rdx, qword [0x140068c88]
mov rsi, qword [rsp + 0x200]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
mov rdi, r14
mov qword [rsp + 0xe0], r14
lea rdx, [0x14006cce1]
mov ecx, 0x18
call fcn.14001e39c
mov rbx, rax
mov r13, r14
test rax, rax
je 0x140006e6f
mov dword [rax + 0xc], 1
lea rax, vtable.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.0
mov qword [rbx], rax
mov rcx, qword [0x14006e530]
test rcx, rcx
je 0x140006e5f
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, method.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.virtual_0
mov qword [rbx], rax
mov rdi, rbx
mov r13, rbx
lea rdx, [rsp + 0x208]
cmp qword [rsp + 0x220], 8
jb 0x140006e8a
mov rdx, qword [rsp + 0x208]
mov r9, rdi
mov r8, rsi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WebView2Loader.dll_CreateCoreWebView2EnvironmentWithOptions]
test r13, r13
je 0x140006ec7
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
jmp 0x140006ec7
lea rcx, [rsp + 0x250]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x250]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x250]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140006eab
mov rdi, qword [0x14006e480]
mov rbx, qword [rdi]
jmp 0x140006f4e
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], r14b
je 0x140006f33
mov rax, qword [rbx + 8]
jmp 0x140006f28
cmp rbx, qword [rax + 0x10]
jne 0x140006f2e
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], r14b
je 0x140006f1b
mov rbx, rax
jmp 0x140006f4e
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], r14b
jne 0x140006f4e
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], r14b
je 0x140006f3f
cmp rbx, rdi
jne 0x140006eed
mov rcx, qword [rsp + 0x228]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov ebx, dword [rsp + 0x260]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
nop
lea rcx, [rsp + 0x208]
call fcn.14000b6a4
nop
mov rdx, qword [rsp + 0x1e8]
cmp rdx, 0x10
jb 0x140006fbf
inc rdx
mov rcx, qword [rsp + 0x1d0]
mov rax, rcx
cmp rdx, r12
jb 0x140006fba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400070b5
call fcn.14001e740
mov eax, ebx
jmp 0x14000700d
call fcn.14001e740
mov eax, 1
mov rcx, qword [rsp + 0x6d0]
xor rcx, rsp
call fcn.14001e0a0
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
lea rcx, [0x14006e5b4]
call fcn.14001e95c
or rbx, 0xffffffffffffffff
xor r14d, r14d
cmp dword [0x14006e5b4], ebx
jne 0x140006480
mov qword [0x140068dd0], r14
mov qword [0x140068dd8], 7
mov word [0x140068dc0], r14w
lea rcx, [0x140044bf4]
call fcn.14001e728
lea rcx, [0x14006e5b4]
call fcn.14001e8fc
jmp 0x140006480
call fcn.140029a54
nop
call fcn.140029a54
int3
call fcn.140029a54
int3
call fcn.140029a54
int3
call fcn.140029a54
int3
call fcn.140029a54
int3
call fcn.140029a54
int3