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

Disassembly:
push 0x160
mov eax, 0x43bec3
call fcn.00418271
mov esi, ecx
mov dword [ebp - 0x16c], esi
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
call fcn.0040d835
xor edi, edi
lea edx, [ebx + 0x30]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.0040d835
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 0x40d289
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0x10
cmova eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_initialize_common_controls
jmp 0x40d358
cmp dword [ebp - 0x38], 7
lea eax, [ebp - 0x4c]
push edi
cmova eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d2c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40d2c5
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0x10
cmova eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_create_user_data_directory
jmp 0x40d358
mov eax, dword [ebx + 0x68]
push 0x7f00
push edi
mov dword [ebp - 0x12c], 0x30
mov dword [ebp - 0x128], 3
mov dword [ebp - 0x124], 0x40d670
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 0x40d364
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0x10
cmova eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_register_window_class
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40d647
mov ecx, 0x12c
call fcn.0040dc74
mov esi, eax
push 0x5a
pop ecx
mov dword [ebp - 0x168], esi
call fcn.0040dc74
lea edx, [ebx + 0xac]
mov edi, eax
lea ecx, [ebp - 0x7c]
call fcn.0040d835
push 0
push dword [ebp - 0x16c]
mov byte [ebp - 4], 2
lea ebx, [ebp - 0x7c]
cmp dword [ebp - 0x68], 7
push 0
cmova 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 0x40d41f
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
push 0x10
cmova eax, dword [ebp - 0x2c]
push eax
push str.Failed_to_create_window
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40d63f
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.0040dc74
mov edx, dword [ebp - 0xe0]
sub edx, dword [ebp - 0xe8]
sub edx, eax
push edx
push 0x14
pop ecx
call fcn.0040dc74
mov ecx, dword [ebp - 0xe4]
sub ecx, dword [ebp - 0xec]
sub ecx, eax
push ecx
push 0xa
pop ecx
call fcn.0040dc74
add eax, dword [ebp - 0xe8]
push eax
push 0xa
pop ecx
call fcn.0040dc74
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.00401aa3
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], 0x456fdc
call fcn.0040d691
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0040d691
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 0x40d1b2
push ebx
push ebx
call fcn.00424ab7
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0x18
mov esi, eax
jmp 0x40d57b
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 0x40d561
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.004197c0
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], 7
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x4c]
cmova eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x50], 7
push eax
cmova 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 0x40d621
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.00401da8
lea ecx, [ebp - 0x164]
call fcn.00401da8
lea ecx, [ebp - 0x64]
call fcn.00401da8
lea ecx, [ebp - 0x7c]
call fcn.00401da8
lea ecx, [ebp - 0x2c]
call fcn.00401da8
lea ecx, [ebp - 0x4c]
call fcn.00401da8
call fcn.00418220
ret