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

Disassembly:
push 0x120
mov eax, 0x438abb
call fcn.004166f7
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x12c], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x18], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
jne 0x413ab6
add edi, 0x30
cmp dword [edi + 0x14], 8
jb 0x413aa1
mov edi, dword [edi]
push 0x10
push edi
push str.Failed_to_initialize_common_controls
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x413e6c
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x413ac0
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x413aef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x413aef
add edi, 0x30
cmp dword [edi + 0x14], 8
jb 0x413ae5
mov edi, dword [edi]
push 0x10
push edi
push str.Failed_to_create_user_data_directory
jmp 0x413aa9
mov eax, dword [edi + 0x68]
xor ecx, ecx
push 0x7f00
push ecx
mov dword [ebp - 0xe4], 0x30
mov dword [ebp - 0xe0], 3
mov dword [ebp - 0xdc], 0x413e72
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xcc], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
and dword [ebp - 0xc0], 0
mov dword [ebp - 0xc8], eax
mov eax, dword [edi + 0x68]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xe4]
push eax
mov dword [ebp - 0xc4], 5
mov dword [ebp - 0xbc], str.WebView2Setup
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x413b8a
add edi, 0x30
cmp dword [edi + 0x14], 8
jb 0x413b7d
mov edi, dword [edi]
push 0x10
push edi
push str.Failed_to_register_window_class
jmp 0x413aa9
mov ecx, 0x12c
call fcn.00413f96
push 0x5a
pop ecx
mov dword [ebp - 0x124], eax
call fcn.00413f96
mov ecx, eax
lea eax, [edi + 0xa8]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x128], eax
jb 0x413bc4
mov eax, dword [eax]
mov dword [ebp - 0x128], eax
xor eax, eax
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push eax
push ecx
push dword [ebp - 0x124]
push 1
call esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x120]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push 0
call esi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x124]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub ecx, eax
push ecx
push 0x10ca0000
push dword [ebp - 0x128]
push str.WebView2Setup
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
mov dword [ebp - 0x120], esi
test esi, esi
jne 0x413c45
add edi, 0x30
cmp dword [edi + 0x14], 8
jb 0x413c38
mov edi, dword [edi]
push 0x10
push edi
push str.Failed_to_create_window
jmp 0x413aa9
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
xor edi, edi
push edi
push dword [ebp - 0x12c]
push edi
push esi
push 0x14
pop ecx
call fcn.00413f96
mov edx, dword [ebp - 0x98]
sub edx, dword [ebp - 0xa0]
sub edx, eax
push edx
push 0x14
pop ecx
call fcn.00413f96
mov ecx, dword [ebp - 0x9c]
sub ecx, dword [ebp - 0xa4]
sub ecx, eax
push ecx
push 0xa
pop ecx
call fcn.00413f96
add eax, dword [ebp - 0xa0]
push eax
push 0xa
pop ecx
call fcn.00413f96
add eax, dword [ebp - 0xa4]
push eax
push 0x50000000
push edi
push str.msctls_progress32
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push 0x640000
push 0
push 0x401
push edi
call esi
push 0
push 1
push 0x404
push edi
call esi
push str.Webview2Setup.exe
mov edx, ebx
lea ecx, [ebp - 0x34]
call fcn.0040a564
pop ecx
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
push 7
pop ecx
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x108], ecx
mov word [ebp - 0x11c], ax
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xf0], ecx
mov word [ebp - 0x104], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
cmp dword [0x451a6c], 8
mov eax, 0x451a58
push dword [0x451a68]
cmovae eax, dword [0x451a58]
push eax
call fcn.004087ac
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x104]
call fcn.004087ac
mov eax, dword [ebp - 0x120]
push esi
push esi
mov dword [ebp - 0xec], eax
lea eax, [ebp - 0x11c]
push eax
push 0x4139f1
push esi
push esi
mov dword [ebp - 0xe8], edi
call fcn.0042166a
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0x18
mov esi, eax
jmp 0x413daa
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x50]
push eax
call edi
test eax, eax
jne 0x413d96
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.00417f60
mov dword [ebp - 0x94], edi
xor eax, eax
lea edi, [ebp - 0xb4]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
cmp dword [ebx + 0x14], 8
mov word [ebp - 0x14], ax
jb 0x413e00
mov ebx, dword [ebx]
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0xb4]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push ebx
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x413e4e
push 0xffffffffffffffff
push dword [ebp - 0xb4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xb4]
call esi
push dword [ebp - 0xb0]
call esi
lea ecx, [ebp - 0x104]
call fcn.00408757
lea ecx, [ebp - 0x11c]
call fcn.00408757
lea ecx, [ebp - 0x34]
call fcn.00408757
call fcn.004166a1
ret