Function at 0x421700
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cd22
mov eax, dword fs:[0]
push eax
sub esp, 0xaec
mov eax, dword [0x4ce6a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xaf8], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xae8], 0
push 0x2e6
mov dword [ebx + 0x84], eax
lea eax, [ebp - 0x2f8]
push 0
push eax
call fcn.0044a900
push 0x5e0
lea eax, [ebp - 0xae0]
push 0
push eax
call fcn.0044a900
push 0x483ea5
xor edi, edi
mov dword [ebp - 4], 0
push 0x28
mov dword [ebp - 0xaf4], edi
mov dword [ebp - 0xae8], 1
call fcn.004483b7
mov esi, eax
add esp, 0x20
test esi, esi
je 0x421802
mov dword [esi], vtable.CoreWebView2EnvironmentOptionsBase_void_____stdcall___unsigned_long_int___void____stdcall_CoTaskMemAlloc_unsigned_long_int___void____stdcall___void____void___stdcall_CoTaskMemFree_void___.0
lea ecx, [esi + 0x14]
mov dword [esi + 4], vtable.CoreWebView2EnvironmentOptionsBase_void_____stdcall___unsigned_long_int___void____stdcall_CoTaskMemAlloc_unsigned_long_int___void____stdcall___void____void___stdcall_CoTaskMemFree_void___.1.0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
push str.102.0.1245.22
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call fcn.00421e80
mov dword [esi + 0x14], eax
mov dword [esi + 0x24], 1
mov dword [esi], method.CoreWebView2EnvironmentOptionsBaseClass_void_____stdcall___unsigned_long_int___void____stdcall_CoTaskMemAlloc_unsigned_long_int___void____stdcall___void____void___stdcall_CoTaskMemFree_void___.virtual_0
mov dword [esi + 4], 0x476534
mov ecx, dword [0x554710]
test ecx, ecx
je 0x4217ed
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov edi, esi
mov dword [esi], vtable.CoreWebView2EnvironmentOptionsBaseClass_void_____stdcall___unsigned_long_int___void____stdcall_CoTaskMemAlloc_unsigned_long_int___void____stdcall___void____void___stdcall_CoTaskMemFree_void___.0
mov dword [esi + 4], vtable.CoreWebView2EnvironmentOptionsBaseClass_void_____stdcall___unsigned_long_int___void____stdcall_CoTaskMemAlloc_unsigned_long_int___void____stdcall___void____void___stdcall_CoTaskMemFree_void___.1.0
mov dword [ebp - 0xaf4], edi
cmp dword [0x51f460], 0
mov eax, dword [edi]
je 0x42182b
push str.__remote_debugging_port9222
push edi
mov byte [ebp - 0xae1], 0
call dword [eax + 0x10]
push eax
lea ecx, [ebp - 0xae1]
call fcn.0041e9c0
jmp 0x421844
push 0
push edi
mov byte [ebp - 0xae2], 0
call dword [eax + 0x10]
push eax
lea ecx, [ebp - 0xae2]
call fcn.0041d660
cmp dword [ebx + 0x9c], 0
je 0x421878
cmp dword [ebx + 0xa0], 8
lea ecx, [ebx + 0x8c]
mov byte [ebp - 0xae3], 0
jb 0x421865
mov ecx, dword [ecx]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x18]
push eax
lea ecx, [ebp - 0xae3]
call fcn.0041e3c0
push 0x208
lea eax, [ebp - 0x500]
push 0
push eax
call fcn.0044a900
add esp, 0xc
lea eax, [ebp - 0x500]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x551208
push str.pathToExtractExe__s
push 1
push dword [0x50c768]
call fcn.00444090
push 0x551208
lea eax, [ebp - 0x2f8]
push 0x104
push eax
call fcn.00456be4
add esp, 0x1c
lea ecx, [ebp - 0x500]
lea eax, [ebp - 0x2f8]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421906
test dx, dx
je 0x421902
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421906
add eax, 4
add ecx, 4
test dx, dx
jne 0x4218e0
xor eax, eax
jmp 0x42190b
sbb eax, eax
or eax, 1
lea ecx, [ebp - 0x2f8]
add ecx, 0xfffffffe
test eax, eax
jne 0x421960
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x421920
mov eax, dword [0x476764]
mov dword [ecx], eax
mov eax, dword [0x476768]
mov dword [ecx + 4], eax
mov eax, dword [0x47676c]
mov dword [ecx + 8], eax
mov eax, dword [0x476770]
mov dword [ecx + 0xc], eax
mov eax, dword [0x476774]
mov dword [ecx + 0x10], eax
mov ax, word [0x476778]
mov word [ecx + 0x14], ax
jmp 0x42199b
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x421960
mov eax, dword [str..WebView2_]
mov dword [ecx], eax
mov eax, dword [str.__rH]
mov dword [ecx + 4], eax
mov eax, dword [0x476784]
mov dword [ecx + 8], eax
mov eax, dword [0x476788]
mov dword [ecx + 0xc], eax
mov eax, dword [0x47678c]
mov dword [ecx + 0x10], eax
mov eax, dword [0x476790]
mov dword [ecx + 0x14], eax
xor ecx, ecx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x2f8]
lea ecx, [ecx + 2]
mov word [ecx + 0x55143a], ax
test ax, ax
jne 0x4219a0
push 0
lea eax, [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x421b3e
lea ecx, [ebp - 0x2f8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4219d7
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x2f8]
push 0
push 0
push 0
push 0
sub ecx, edx
sar ecx, 1
push ecx
push eax
push 0
push 0xfde9
call ebx
mov esi, eax
lea ecx, [esi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
mov dword [ebp - 0xaec], eax
lea eax, [ebp - 0x2f8]
push eax
push 0
push 0xfde9
call ebx
call fcn.0041f890
mov ecx, eax
test ecx, ecx
je 0x421d5a
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xaf0], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov byte [ebp - 4], 1
jge 0x421a7c
push 0x104
lea ecx, [ebp - 0xaf0]
call fcn.00422ea0
mov esi, dword [ebp - 0xaf0]
push esi
push 0
push 0x476794
push 0x551208
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x421ab1
xor ebx, ebx
jmp 0x421ac4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x421ae0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x421b38
push dword [ebp - 0xaec]
mov ecx, 0x51eff8
push str._dllPath_
push str.You_do_not_have_write_and_execute_permissions_to_at_least_one_of_the_following_folders._To_use_this_application__you_must_have_write_execute_access._r_n_dllPath_.
push str.NoFolderAccess
call fcn.0041b7b0
push 1
mov ecx, 0x51eff8
mov dword [0x52e298], 1
mov dword [0x50e0a0], 1
call fcn.0041bbb0
mov ecx, 0x51eff8
call fcn.004139d0
mov dword [0x553474], ebx
jmp 0x421d2f
mov ebx, dword [ebp - 0xaf8]
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x483ea5
push 0x10
mov dword [ebp - 0xae8], 3
call fcn.004483b7
mov esi, eax
add esp, 8
test esi, esi
je 0x421ba6
mov dword [esi + 8], 1
mov dword [esi], vtable.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.0
mov ecx, dword [0x554710]
test ecx, ecx
je 0x421b84
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push esi
push 0
lea eax, [ebp - 0x2f8]
mov dword [esi + 0xc], ebx
push eax
push 0
mov dword [esi], method.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.virtual_0
call fcn.00401447
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x421bb8
push 0
push 0
lea eax, [ebp - 0x2f8]
push eax
push 0
call fcn.00401447
cmp dword [ebx + 4], 0
jne 0x421c5a
push str.runtime_not_available_trying_to_load_stable
push 1
push dword [0x50c768]
call fcn.00444090
add esp, 0xc
xor ecx, ecx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x2f8]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xae2], ax
test ax, ax
jne 0x421be0
lea ecx, [ebp - 0xae0]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x421c01
mov eax, dword [str.EdgeStable]
mov dword [ecx], eax
mov eax, dword [0x4767cc]
mov dword [ecx + 4], eax
mov eax, dword [0x4767d0]
mov dword [ecx + 8], eax
mov eax, dword [0x4767d4]
mov dword [ecx + 0xc], eax
mov eax, dword [0x4767d8]
mov dword [ecx + 0x10], eax
mov ax, word [0x4767dc]
mov word [ecx + 0x14], ax
lea eax, [ebp - 0xae0]
push eax
mov ecx, 0x51eff8
call fcn.0041bef0
push eax
mov ecx, 0x51eff8
call fcn.0041bd10
push 0x483ea5
push 0x14
mov dword [ebp - 0xae8], 7
call fcn.004483b7
mov esi, eax
add esp, 8
test esi, esi
je 0x421cc3
mov dword [esi + 8], 1
mov dword [esi], vtable.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.0
mov ecx, dword [0x554710]
test ecx, ecx
je 0x421c96
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
push esi
push edi
lea eax, [ebp - 0x2f8]
mov dword [esi + 0xc], ebx
push eax
lea eax, [ebp - 0xae0]
mov dword [esi + 0x10], 0x4224c0
push eax
mov dword [esi], method.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.virtual_0
call fcn.00401447
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x421cd9
push 0
push edi
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0xae0]
push eax
call fcn.00401447
mov ecx, 0x470a68
lea eax, [ebp - 0xae0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421d0a
test dx, dx
je 0x421d06
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421d0a
add eax, 4
add ecx, 4
test dx, dx
jne 0x421ce4
xor eax, eax
jmp 0x421d0f
sbb eax, eax
or eax, 1
test eax, eax
je 0x421d1a
push str.Using_EdgeStable
jmp 0x421d1f
push str.Using_runtime
push 1
push dword [0x50c768]
call fcn.00444090
add esp, 0xc
mov eax, dword [edi]
push edi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447cbd
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0041ee40
int3