Function at 0x405500
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry key
Query or enumerate registry value
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x41a1b9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x46c
mov eax, dword [0x427880]
xor eax, dword [esp + 0x478]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x478], eax
call sub.MFC70U.DLL_Ordinal_972
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
add eax, 0xdc
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
xor edi, edi
cmp eax, edi
jne 0x4059c3
push 0x41efc4
lea ecx, [esp + 0x20]
call fcn.00404410
lea ecx, [esp + 0x4c]
mov dword [esp + 0x484], edi
call fcn.00404770
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push edi
push edx
push 0x80000002
mov byte [esp + 0x498], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405989
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x1c]
push edi
push edi
push edi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x7c]
push edx
push edi
push eax
mov dword [esp + 0x40], 0x208
call ebp
test eax, eax
jne 0x40565e
mov bl, 2
lea ecx, [ecx]
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x14]
call fcn.00404410
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov esi, esp
push eax
mov byte [esp + 0x48c], bl
call fcn.004012c0
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x50]
mov dword [esi], eax
call fcn.00405150
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0x208
inc edi
mov byte [esp + 0x484], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405639
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x7c]
push edx
push edi
push eax
call ebp
test eax, eax
je 0x4055d0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x54]
cmp eax, 1
jge 0x4056a7
lea ecx, [esp + 0x4c]
mov byte [esp + 0x484], 0
call fcn.00404bd0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x484], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4059b9
xor esi, esi
test eax, eax
mov dword [esp + 0x28], esi
jle 0x405989
mov bl, 4
jmp 0x4056c0
push 0x41e710
lea ecx, [esp + 0x14]
call fcn.00404410
mov eax, dword [esp + 0x50]
mov eax, dword [eax + esi*4]
sub eax, 0x10
push eax
mov byte [esp + 0x488], 3
call fcn.004012c0
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
push 0x41efc0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0x494], bl
call fcn.00403db0
lea ecx, [esp + 0x3c]
push ecx
push eax
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x4a0], 5
call fcn.00403d00
push str.InstallPath
push eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0x4ac], 6
call fcn.00403db0
add esp, 0x28
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x484], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405761
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x484], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405787
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x41e710
lea ecx, [esp + 0x18]
call fcn.00404410
mov ebp, dword [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push ebp
push 0x80000002
mov byte [esp + 0x498], 0xa
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4058e5
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x274]
push edx
push eax
push eax
mov eax, dword [esp + 0x28]
push 0x41e710
push eax
mov dword [esp + 0x5c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4058e5
lea ecx, [esp + 0x270]
push ecx
lea ecx, [esp + 0x44]
call fcn.00404410
push str.AcroRd32.exe
push eax
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x490], 0xb
call fcn.00403db0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x488], 0xc
call fcn.00401510
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x484], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405854
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x484], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40587a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4058e5
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0xe0]
add esi, 0xe0
push eax
call dword [sym.imp.MSVCR70.dll__wtof]
fstp dword [esp + 0x28]
push edi
call dword [sym.imp.MSVCR70.dll__wtof]
fcomp dword [esp + 0x2c]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x4058e5
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x34]
add ecx, 0xdc
call fcn.00401510
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00401510
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x484], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40590b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x484], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40592c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x484], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40594e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x484], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405974
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x54]
inc esi
cmp esi, eax
mov dword [esp + 0x28], esi
jl 0x4056c0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x484], 0
call fcn.00404bd0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x484], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4059c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x47c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x470]
xor ecx, dword [esp + 0x480]
pop ebp
pop ebx
add esp, 0x478
jmp fcn.00419c26