Function at 0x1c40ce7
Capabilities:
Accept command line arguments
Link many functions at runtime
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x1cea148]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x1cb8a40
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov esi, eax
mov ebx, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.RtlInitUnicodeString
push eax
call ebx
mov dword [0x1ceb87c], eax
push str.NtCreateKey
push esi
call ebx
mov dword [0x1cebe98], eax
push str.NtDeleteKey
push esi
call ebx
mov dword [0x1ceb878], eax
push str.NtOpenKeyEx
push esi
call ebx
mov dword [0x1ceb880], eax
push str.NtClose
push esi
call ebx
mov dword [0x1ceb874], eax
push str.NtQueryKey
push esi
call ebx
mov dword [0x1ceb88c], eax
push str.NtEnumerateKey
push esi
call ebx
mov dword [0x1ceb890], eax
push str.NtQueryValueKey
push esi
call ebx
mov dword [0x1ceb884], eax
push str.NtSetValueKey
push esi
call ebx
mov dword [0x1ceb888], eax
xor ecx, ecx
test eax, eax
je 0x1c40f76
cmp dword [0x1ceb87c], 0
je 0x1c40f76
cmp dword [0x1cebe98], 0
je 0x1c40f76
cmp dword [0x1ceb880], 0
je 0x1c40f76
cmp dword [0x1ceb878], 0
je 0x1c40f76
cmp dword [0x1ceb874], 0
je 0x1c40f76
cmp dword [0x1ceb88c], 0
je 0x1c40f76
cmp dword [0x1ceb890], 0
je 0x1c40f76
cmp dword [0x1ceb884], 0
je 0x1c40f76
push str.RtlFormatCurrentUserKeyPath
push esi
call ebx
mov edi, eax
push str.RtlFreeUnicodeString
push esi
call ebx
xor ecx, ecx
test edi, edi
je 0x1c40f76
mov esi, eax
test eax, eax
je 0x1c40f76
xor eax, eax
dec eax
lea ebx, [ebp - 0x220]
mov dword [ebx + 4], eax
mov dword [ebx], eax
push ebx
call edi
test eax, eax
setns cl
js 0x1c40f76
mov dword [ebp - 0x224], ecx
mov eax, 0xff
mov edi, 0x1cebe9c
push eax
push dword [ebp - 0x21c]
push edi
call fcn.01c8b147
add esp, 0xc
push edi
call fcn.01c8b147
add esp, 4
mov ecx, 0xff
sub ecx, eax
push ecx
push 0x1cb8afe
push edi
call fcn.01c8b147
add esp, 0xc
push 0x5c
push dword [ebp - 0x21c]
call fcn.01c8b147
add esp, 8
add eax, 2
mov ecx, 0xff
push ecx
push eax
push 0x1ceb894
call fcn.01c8b147
add esp, 0xc
push ebx
call esi
lea edi, [ebp - 0x218]
push 0x208
push 0
push edi
call fcn.01c8cb90
add esp, 0xc
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov esi, eax
push 0x104
push edi
push str.PROGRAMFILES
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1c40eeb
push eax
push edi
push esi
call fcn.01c8b147
add esp, 0xc
test eax, eax
je 0x1c40f1a
push 0x104
push edi
push str.PROGRAMFILES_X86_
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1c40f16
push eax
push edi
push esi
call fcn.01c8b147
add esp, 0xc
test eax, eax
je 0x1c40f1a
xor eax, eax
jmp 0x1c40f1c
mov al, 1
mov byte [0x1ceb871], al
mov dword [ebp - 0x218], 0
push 0x1cb52f0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push str.IsWow64Process
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x1c40f62
mov esi, eax
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push edi
push eax
call esi
test eax, eax
je 0x1c40f62
cmp dword [ebp - 0x218], 0
setne al
jmp 0x1c40f64
xor eax, eax
mov ecx, dword [ebp - 0x224]
mov byte [0x1ceba94], al
mov byte [0x1ceb870], 1
mov ebx, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c8b52d
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret