Function at 0x1002c4c0
Capabilities:
Check if file exists
Delete registry key
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1011ed78
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], 0
cmp dword [eax - 0xc], 0
jne 0x1002c53c
mov edx, ecx
lea ecx, [ebp - 0x1c]
call fcn.1003d9f0
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.100244b0
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002c53c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.MountVirtReg:__s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, str.Cerveau
mov edx, dword [ebp - 0x14]
call fcn.10043b30
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002c581
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RegLoadAppKeyW
push str.ADVAPI32.DLL
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1002c5e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1002c5c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push str.RegLoadAppKeyW
push str.ADVAPI32.DLL
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push 0xf003f
lea ecx, [ebp - 0x10]
push ecx
push esi
call eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
push eax
push ebx
lea eax, [ebp - 0x14]
push str.MountVirtReg:__RegLoadAppKey_d__LE_d
push eax
call fcn.10044f30
add esp, 0x10
mov byte [ebp - 4], 3
mov ecx, str.Cerveau
mov edx, dword [ebp - 0x14]
call fcn.10043b30
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002c654
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp ebx, 0xb7
jne 0x1002c6ca
lea eax, [ebp - 0x1c]
push str.MountVirtReg:_ERROR_ALREADY_EXISTS._Please_close_the_currently_running_application_instances.
push eax
call fcn.10044f30
add esp, 8
mov byte [ebp - 4], 4
mov ecx, str.Cerveau
mov edx, dword [ebp - 0x1c]
call fcn.10043b30
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002c69e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
push 1
push dword [eax + 0xc]
push str.Please_close_all_currently_running_instances_of_this_application.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, 2
jne 0x1002c5e0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
test ebx, ebx
jne 0x1002c78b
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x14]
push str.MyTest._d
push eax
call fcn.10044f30
add esp, 0xc
push ebx
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x1002c72f
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1002c76b
call esi
push ecx
mov ecx, esp
push eax
push ebx
push dword [ebp - 0x14]
push str.VirtRegLoad_elevation_problem._Forcing_Legacy__n_s:Res_d__LE_d
push ecx
call fcn.10044f30
add esp, 0x14
call fcn.100278c0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [0x1017221c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
mov dword [eax + 0xac], 1
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002c78b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
push dword [eax + 0xac]
lea ecx, [ecx - 0x10]
call fcn.10024750
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
add esi, 0xfffffff0
mov dword [ebp - 0x18], ecx
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002c7cd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push str.RegLoadAppKeyW
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x10]
mov edx, str._Legacy_
test eax, eax
mov ecx, str._Modern_
push ebx
cmove ecx, edx
push ecx
push eax
lea eax, [ebp - 0x1c]
push str.MountVirtReg:_hMountedKey_x_s__Ret_d__LE_d___RegLoadAppKey___p__RegFileExists_d__Settings.LegacyMode_d_
push eax
call fcn.10044f30
add esp, 0x24
mov byte [ebp - 4], 6
mov ecx, str.Cerveau
mov edx, dword [ebp - 0x1c]
call fcn.10043b30
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1002c846
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1002c86a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret