Function at 0x40cdc0
Capabilities:
Accept command line arguments
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50baa8
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x557460]
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 - 4], 0
mov esi, 0x55d5a8
xor edi, edi
nop dword [eax]
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ce07
sub ecx, ebx
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
push ecx
cmovae eax, dword [ebp + 8]
push edx
push dword [ebp + 0x18]
push eax
call fcn.00404ec0
add esp, 0x10
test al, al
jne 0x40ce4a
add edi, 0x1c
add esi, 0x1c
cmp edi, 0x16c
jb 0x40ce00
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x40cf40
cmp dword [esi + 0x14], 0
mov ecx, 0x100
mov edi, dword [esi + 0x10]
mov eax, 0x200
mov ebx, dword [esi + 0xc]
cmovne eax, ecx
or eax, 0x20019
mov dword [ebp - 0x434], 0
push eax
push dword [esi + 8]
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x430], 0
push dword [esi + 4]
mov dword [ebp - 0x42c], 0
call fcn.0040d050
test eax, eax
je 0x40ceab
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x40cf2a
push eax
jmp 0x40cf24
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d49e0
add esp, 0xc
mov dword [ebp - 0x428], 0x208
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push ebx
mov ebx, dword [ebp - 0x434]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cf1f
mov eax, dword [ebp - 0x424]
cmp eax, 1
je 0x40cf04
cmp eax, 2
jne 0x40cf1f
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x40cf77
test al, 1
jne 0x40cf1f
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x40cf80
test ebx, ebx
je 0x40cf2a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40cf40
push 0
push eax
call fcn.0040cbf0
add esp, 8
mov bl, al
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40d02b
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d021
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d049
jmp 0x40d021
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004d49e0
add esp, 0xc
lea eax, [ebp - 0x218]
test edi, edi
je 0x40cfc0
push edi
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
jmp 0x40cffe
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test edi, edi
jne 0x40d000
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x40cffe
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
mov eax, dword [ebp - 0x434]
setne bl
test eax, eax
je 0x40d014
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40cf40
jmp 0x40cf2c
push edx
push ecx
call fcn.00440184
add esp, 8
mov al, bl
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.0044042c
mov esp, ebp
pop ebp
ret
call fcn.004d7e49
int3