Function at 0x40e548
Capabilities:
Create directory
Create process on windows
Create thread

Disassembly:
push 0x160
mov eax, 0x43e01d
call fcn.0041a2c0
mov esi, ecx
mov dword [ebp - 0x16c], esi
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
call fcn.0040eaa7
xor edi, edi
lea edx, [ebx + 0x30]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.0040eaa7
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x34], 8
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
jne 0x40e5b2
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_initialize_common_controls
jmp 0x40e681
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push edi
cmovae eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e5ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40e5ee
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_create_user_data_directory
jmp 0x40e681
mov eax, dword [ebx + 0x68]
push 0x7f00
push edi
mov dword [ebp - 0x12c], 0x30
mov dword [ebp - 0x128], 3
mov dword [ebp - 0x124], 0x40e999
mov dword [ebp - 0x120], edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x110], eax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x10c], 5
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x104], str.WebView2Setup
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x40e68d
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_register_window_class
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40e970
mov ecx, 0x12c
call fcn.0040ee2d
mov esi, eax
push 0x5a
pop ecx
mov dword [ebp - 0x168], esi
call fcn.0040ee2d
lea edx, [ebx + 0xac]
mov edi, eax
lea ecx, [ebp - 0x7c]
call fcn.0040eaa7
push 0
push dword [ebp - 0x16c]
mov byte [ebp - 4], 2
lea ebx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 8
push 0
cmovae ebx, dword [ebp - 0x7c]
push 0
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
xor edi, edi
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x168]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push 0x10ca0000
push ebx
push str.WebView2Setup
push edi
call esi
mov ebx, eax
mov dword [ebp - 0x168], ebx
test ebx, ebx
jne 0x40e748
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x10
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_create_window
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40e968
lea eax, [ebp - 0xec]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
push dword [ebp - 0x16c]
push edi
push ebx
push 0x14
pop ecx
call fcn.0040ee2d
mov edx, dword [ebp - 0xe0]
sub edx, dword [ebp - 0xe8]
sub edx, eax
push edx
push 0x14
pop ecx
call fcn.0040ee2d
mov ecx, dword [ebp - 0xe4]
sub ecx, dword [ebp - 0xec]
sub ecx, eax
push ecx
push 0xa
pop ecx
call fcn.0040ee2d
add eax, dword [ebp - 0xe8]
push eax
push 0xa
pop ecx
call fcn.0040ee2d
add eax, dword [ebp - 0xec]
push eax
push 0x50000000
push edi
push str.msctls_progress32
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
push 0x640000
push edi
push 0x401
push ebx
call esi
push edi
push 1
push 0x404
push ebx
call esi
push str.Webview2Setup.exe
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.00402de3
xor eax, eax
lea edi, [ebp - 0x164]
stosd dword es:[edi], eax
push 7
pop ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x154], 0
lea edi, [ebp - 0x14c]
mov word [ebp - 0x164], ax
mov dword [ebp - 0x150], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
and dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], ecx
mov word [ebp - 0x14c], ax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x164]
mov dword [esp], 0x459e14
call fcn.0040e9ba
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040e9ba
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x130], ebx
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x164]
push eax
push 0x40e4db
push ebx
push ebx
call fcn.00426a67
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0x18
mov esi, eax
jmp 0x40e8a4
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x98]
push eax
call edi
test eax, eax
jne 0x40e88a
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push esi
call ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x44
pop edi
push edi
lea eax, [ebp - 0xdc]
push 0
push eax
call fcn.0041b630
xor eax, eax
mov dword [ebp - 0xdc], edi
lea edi, [ebp - 0xfc]
add esp, 0xc
stosd dword es:[edi], eax
lea edx, [ebp - 0xfc]
lea ecx, [ebp - 0x64]
push edx
stosd dword es:[edi], eax
lea edx, [ebp - 0xdc]
push edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
cmp dword [ebp - 0x38], 8
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x50], 8
push eax
cmovae ecx, dword [ebp - 0x64]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40e94a
push 0xffffffffffffffff
push dword [ebp - 0xfc]
call ebx
push dword [ebp - 0xfc]
call esi
push dword [ebp - 0xf8]
call esi
lea ecx, [ebp - 0x14c]
call fcn.004020b7
lea ecx, [ebp - 0x164]
call fcn.004020b7
lea ecx, [ebp - 0x64]
call fcn.004020b7
lea ecx, [ebp - 0x7c]
call fcn.004020b7
lea ecx, [ebp - 0x2c]
call fcn.004020b7
lea ecx, [ebp - 0x4c]
call fcn.004020b7
call fcn.0041a26f
ret