Function at 0x10005240
Capabilities:
Accept command line arguments
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10011200
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x10017040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [0x100178c8]
push str._Attempting_to_relaunch_with_codepage__d._n
call fcn.10002950
push 0x178
lea eax, [ebp - 0x638]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x100178c8]
add esp, 0x14
mov ecx, dword [0x100170f0]
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x644], eax
mov eax, dword [0x100178d0]
mov dword [ebp - 0x640], eax
mov eax, dword [0x100178cc]
mov dword [ebp - 0x63c], eax
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 0x38
jb 0x1000552a
cmp dword [0x100170f4], 0xf
mov eax, 0x100170e0
push ecx
cmova eax, dword [0x100170e0]
push eax
push 0x38
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionTime_Zones_
push ecx
push dword [ebp - 0x64c]
lea ecx, [ebp - 0x43c]
call fcn.10004d10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64c]
cmp dword [ebp - 0x428], 0xf
lea eax, [ebp - 0x43c]
push ecx
cmova eax, dword [ebp - 0x43c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x100053eb
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x5f0]
mov dword [ebp - 0x424], 0x40
push eax
push 0
push 2
push 0x100127ac
push 0
push dword [ebp - 0x64c]
call esi
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x40
push eax
lea eax, [ebp - 0x59c]
push eax
push 0
push 2
push 0x100127b4
push 0
push dword [ebp - 0x64c]
call esi
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0x2c
push eax
lea eax, [ebp - 0x47c]
push eax
push 0
push 8
push 0x100127bc
push 0
push dword [ebp - 0x64c]
call esi
mov eax, dword [ebp - 0x47c]
push dword [ebp - 0x64c]
mov dword [ebp - 0x5f4], eax
mov eax, dword [ebp - 0x478]
mov dword [ebp - 0x5a0], eax
mov dword [ebp - 0x54c], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x44
lea eax, [ebp - 0x4c0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x440], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x450], xmm0
push str.LoaderDll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x10005466
mov eax, str._Failed_to_load_LoaderDll.dll_n
push eax
call fcn.10002950
add esp, 4
mov byte [ebp - 0x64d], 0
jmp 0x100054cd
push str.LeCreateProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
jne 0x1000548f
mov eax, str._Failed_to_find_function_LeCreateProcess_n
push eax
call fcn.10002950
add esp, 4
mov byte [ebp - 0x64d], 0
jmp 0x100054cd
push 0
push 0
push 0
push 0
test edi, edi
lea eax, [ebp - 0x450]
cmovne eax, edi
push eax
lea eax, [ebp - 0x4c0]
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x648]
push eax
call ecx
test eax, eax
sete byte [ebp - 0x64d]
mov ecx, dword [ebp - 0x428]
cmp ecx, 0xf
jbe 0x10005509
mov edx, dword [ebp - 0x43c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100054ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100054ff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000d131
add esp, 8
mov al, byte [ebp - 0x64d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000d0ee
mov esp, ebp
pop ebp
ret
call fcn.100012a0
int3