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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x551580]
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 ebx, 0x551090
mov dword [ebp - 4], 0
mov dword [ebp - 0x42c], ebx
xor edi, edi
mov edx, dword [ebx]
mov esi, edx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x409c10
mov eax, dword [ebp + 0x18]
sub esi, ecx
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
cmp eax, esi
jne 0x409c82
mov esi, eax
sub esi, 4
jb 0x409c43
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x409c48
add ecx, 4
add edx, 4
sub esi, 4
jae 0x409c32
cmp esi, 0xfffffffc
je 0x409c7c
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x409c75
cmp esi, 0xfffffffd
je 0x409c7c
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x409c75
cmp esi, 0xfffffffe
je 0x409c7c
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x409c75
cmp esi, 0xffffffff
je 0x409c7c
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x409c7c
sbb eax, eax
or eax, 1
jmp 0x409c7e
xor eax, eax
test eax, eax
je 0x409cdb
add edi, 0x1c
add ebx, 0x1c
mov dword [ebp - 0x42c], ebx
cmp edi, 0x16c
jb 0x409c02
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x409e8e
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409e84
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409eac
jmp 0x409e84
cmp dword [ebx + 0x14], 0
mov ecx, 0x100
mov esi, dword [ebx + 0x10]
mov eax, 0x200
mov edi, dword [ebx + 0xc]
cmovne eax, ecx
or eax, 0x20019
mov dword [ebp - 0x438], 0
push eax
push dword [ebx + 8]
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x434], 0
push dword [ebx + 4]
mov dword [ebp - 0x430], 0
call fcn.00409ec0
test eax, eax
je 0x409d3c
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x409dbb
push eax
jmp 0x409db5
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004cfda0
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 edi
mov edi, dword [ebp - 0x438]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409db0
mov eax, dword [ebp - 0x424]
cmp eax, 1
je 0x409d95
cmp eax, 2
jne 0x409db0
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x409de0
test al, 1
jne 0x409db0
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x409de9
test edi, edi
je 0x409dbb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x409ca4
push 0
push eax
call fcn.004099f0
add esp, 8
mov bl, al
jmp 0x409ca4
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004cfda0
add esp, 0xc
lea eax, [ebp - 0x218]
test esi, esi
je 0x409e29
push esi
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 esi, eax
jmp 0x409e67
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test esi, esi
jne 0x409e69
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 0x409e67
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
setne bl
test edi, edi
je 0x409e77
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x409ca4
jmp 0x409dbd
push edx
push ecx
call fcn.0043b077
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.0043b31f
mov esp, ebp
pop ebp
ret
call fcn.004d3209
int3