Function at 0x4051a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408c7a
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x40e00c]
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 dword [ebp - 0x220], edx
mov dword [ebp - 0x22c], 0
mov dword [ebp - 4], 0
mov ecx, 0x40fac4
mov eax, dword [0x40f924]
mov dword [ebp - 0x228], eax
lea eax, [ebp + 8]
push eax
call fcn.00402260
cmp byte [0x40fb08], 0
jne 0x40524f
push 0x208
lea eax, [ebp - 0x218]
mov byte [0x40fb08], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push str._.3s
push 0x40facc
call fcn.004027d0
add esp, 0xc
or ebx, 0xffffffff
cmp dword [0x40fb78], 0
jne 0x405325
mov byte [ebp - 4], 1
mov eax, dword [0x40facc]
mov dword [ebp - 0x224], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x405284
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x40529a
call fcn.00401660
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x40545e
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edx, dword [0x40facc]
add eax, 0x10
push 0xa
push ecx
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], eax
push dword [edx - 0xc]
mov dword [ebp - 0x22c], 1
call fcn.00402500
mov esi, dword [ebp - 0x224]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x40fb78], eax
add esi, 0xfffffff0
mov dword [ebp - 0x22c], 0
mov eax, ebx
mov byte [ebp - 4], 0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x405303
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x40fb78], 0
jne 0x405325
push str.MyEdge.dll
call fcn.00401af0
add esp, 4
mov byte [ebp - 0x219], 0
jmp 0x40541d
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
call esi
push 0x11
mov edi, eax
call esi
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x220]
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov eax, 0x14
cmp ecx, esi
jle 0x405364
sub ecx, esi
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x405367
lea esi, [ecx - 0x1e]
push 0
push esi
push dword [ebp - 0x220]
mov esi, dword [ebp - 0x228]
push eax
push edi
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push str.ck_W
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push str.CreateCoreWebView2EnvironmentWithOptions
push dword [0x40fb78]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a37a
push 0x10
mov dword [ebp - 0x220], eax
xor esi, esi
call fcn.00407e83
mov edi, eax
add esp, 8
test edi, edi
je 0x4053e9
mov ecx, dword [0x40faf8]
mov dword [edi + 8], 1
mov dword [edi], vtable.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.0
test ecx, ecx
je 0x4053d8
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [ebp - 0x228]
mov esi, edi
mov dword [edi + 0xc], eax
mov dword [edi], method.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_.virtual_0
mov dword [ebp - 0x228], esi
push esi
push 0
mov byte [ebp - 4], 2
push dword [0x40facc]
push 0
call dword [ebp - 0x220]
mov byte [ebp - 4], 0
mov edi, eax
test esi, esi
je 0x405414
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
test edi, edi
sete byte [ebp - 0x219]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40543c
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x219]
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.004078bc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013b0
int3