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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b5d2
mov eax, dword fs:[0]
push eax
sub esp, 0xaec
mov eax, dword [0x4cc5a8]
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.00449240
push 0x5e0
lea eax, [ebp - 0xae0]
push 0
push eax
call fcn.00449240
push 0x481945
xor edi, edi
mov dword [ebp - 4], 0
push 0x28
mov dword [ebp - 0xaf4], edi
mov dword [ebp - 0xae8], 1
call fcn.00446ce6
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4202d2
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.00420930
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], 0x474104
mov ecx, dword [0x551bf8]
test ecx, ecx
je 0x4202bd
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 [0x51d230], 0
mov eax, dword [edi]
je 0x4202fb
push str.__remote_debugging_port9222
push edi
mov byte [ebp - 0xae1], 0
call dword [eax + 0x10]
push eax
lea ecx, [ebp - 0xae1]
call fcn.0041d1a0
jmp 0x420314
push 0
push edi
mov byte [ebp - 0xae2], 0
call dword [eax + 0x10]
push eax
lea ecx, [ebp - 0xae2]
call fcn.0041d0e0
cmp dword [ebx + 0x9c], 0
je 0x420348
cmp dword [ebx + 0xa0], 8
lea ecx, [ebx + 0x8c]
mov byte [ebp - 0xae3], 0
jb 0x420335
mov ecx, dword [ecx]
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x18]
push eax
lea ecx, [ebp - 0xae3]
call fcn.0041c5e0
push 0x208
lea eax, [ebp - 0x500]
push 0
push eax
call fcn.00449240
add esp, 0xc
lea eax, [ebp - 0x500]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x54e7d0
push str.pathToExtractExe__s
push 1
push dword [0x50a534]
call fcn.004429d0
push 0x54e7d0
lea eax, [ebp - 0x2f8]
push 0x104
push eax
call fcn.00455534
add esp, 0x1c
lea ecx, [ebp - 0x500]
lea eax, [ebp - 0x2f8]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4203d6
test dx, dx
je 0x4203d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4203d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4203b0
xor eax, eax
jmp 0x4203db
sbb eax, eax
or eax, 1
lea ecx, [ebp - 0x2f8]
add ecx, 0xfffffffe
test eax, eax
jne 0x420430
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4203f0
mov eax, dword [0x474334]
mov dword [ecx], eax
mov eax, dword [0x474338]
mov dword [ecx + 4], eax
mov eax, dword [0x47433c]
mov dword [ecx + 8], eax
mov eax, dword [0x474340]
mov dword [ecx + 0xc], eax
mov eax, dword [0x474344]
mov dword [ecx + 0x10], eax
mov ax, word [0x474348]
mov word [ecx + 0x14], ax
jmp 0x42046b
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x420430
mov eax, dword [str..WebView2_]
mov dword [ecx], eax
mov eax, dword [0x474350]
mov dword [ecx + 4], eax
mov eax, dword [0x474354]
mov dword [ecx + 8], eax
mov eax, dword [0x474358]
mov dword [ecx + 0xc], eax
mov eax, dword [0x47435c]
mov dword [ecx + 0x10], eax
mov eax, dword [0x474360]
mov dword [ecx + 0x14], eax
xor ecx, ecx
nop dword [eax]
movzx eax, word [ebp + ecx - 0x2f8]
lea ecx, [ecx + 2]
mov word [ecx + 0x54ea02], ax
test ax, ax
jne 0x420470
push 0
lea eax, [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42060e
lea ecx, [ebp - 0x2f8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4204a7
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.0041e3b0
mov ecx, eax
test ecx, ecx
je 0x42080a
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 0x42054c
push 0x104
lea ecx, [ebp - 0xaf0]
call fcn.00421950
mov esi, dword [ebp - 0xaf0]
push esi
push 0
push 0x474364
push 0x54e7d0
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 0x420581
xor ebx, ebx
jmp 0x420594
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 0x4205b0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x420608
push dword [ebp - 0xaec]
mov ecx, 0x51cdc8
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.0041a7c0
push 1
mov ecx, 0x51cdc8
mov dword [0x52b860], 1
mov dword [0x50b9b4], 1
call fcn.0041abc0
mov ecx, 0x51cdc8
call fcn.00412f70
mov dword [0x550a38], ebx
jmp 0x4207df
mov ebx, dword [ebp - 0xaf8]
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0x481945
push 0x10
mov dword [ebp - 0xae8], 3
call fcn.00446ce6
mov esi, eax
add esp, 8
test esi, esi
je 0x420676
mov dword [esi + 8], 1
mov dword [esi], vtable.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.0
mov ecx, dword [0x551bf8]
test ecx, ecx
je 0x420654
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 0x420688
push 0
push 0
lea eax, [ebp - 0x2f8]
push eax
push 0
call fcn.00401447
cmp dword [ebx + 4], 0
jne 0x42070a
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x2f8]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0xae2], ax
test ax, ax
jne 0x420690
lea ecx, [ebp - 0xae0]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4206b1
mov eax, dword [str.EdgeStable]
mov dword [ecx], eax
mov eax, dword [0x474370]
mov dword [ecx + 4], eax
mov eax, dword [0x474374]
mov dword [ecx + 8], eax
mov eax, dword [0x474378]
mov dword [ecx + 0xc], eax
mov eax, dword [0x47437c]
mov dword [ecx + 0x10], eax
mov ax, word [0x474380]
mov word [ecx + 0x14], ax
lea eax, [ebp - 0xae0]
push eax
mov ecx, 0x51cdc8
call fcn.0041aef0
push eax
mov ecx, 0x51cdc8
call fcn.0041ad10
push 0x481945
push 0x14
mov dword [ebp - 0xae8], 7
call fcn.00446ce6
mov esi, eax
add esp, 8
test esi, esi
je 0x420773
mov dword [esi + 8], 1
mov dword [esi], vtable.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.0
mov ecx, dword [0x551bf8]
test ecx, ecx
je 0x420746
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], 0x420f70
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 0x420789
push 0
push edi
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0xae0]
push eax
call fcn.00401447
mov ecx, 0x46ea58
lea eax, [ebp - 0xae0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4207ba
test dx, dx
je 0x4207b6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4207ba
add eax, 4
add ecx, 4
test dx, dx
jne 0x420794
xor eax, eax
jmp 0x4207bf
sbb eax, eax
or eax, 1
test eax, eax
je 0x4207ca
push str.Using_EdgeStable
jmp 0x4207cf
push str.Using_runtime
push 1
push dword [0x50a534]
call fcn.004429d0
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.004465ed
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0041d990
int3