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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509c28
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x553418]
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, 0x559558
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 0x40cdf7
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.00404eb0
add esp, 0x10
test al, al
jne 0x40ce3a
add edi, 0x1c
add esi, 0x1c
cmp edi, 0x16c
jb 0x40cdf0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x40cf30
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.0040d040
test eax, eax
je 0x40ce9b
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x40cf1a
push eax
jmp 0x40cf14
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d2e90
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 0x40cf0f
mov eax, dword [ebp - 0x424]
cmp eax, 1
je 0x40cef4
cmp eax, 2
jne 0x40cf0f
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x40cf67
test al, 1
jne 0x40cf0f
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x40cf70
test ebx, ebx
je 0x40cf1a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40cf30
push 0
push eax
call fcn.0040cbe0
add esp, 8
mov bl, al
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40d01b
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d011
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d039
jmp 0x40d011
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004d2e90
add esp, 0xc
lea eax, [ebp - 0x218]
test edi, edi
je 0x40cfb0
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 0x40cfee
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
test edi, edi
jne 0x40cff0
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 0x40cfee
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 0x40d004
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x40cf30
jmp 0x40cf1c
push edx
push ecx
call fcn.0043e101
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.0043e3a9
mov esp, ebp
pop ebp
ret
call fcn.004d62f9
int3