Function at 0x4074c0
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x587299
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x49c]
mov dword fs:[0], eax
mov ebp, edx
mov esi, ecx
mov eax, dword [esp + 0x4ac]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push ebp
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], 0
call fcn.00409880
add esp, 4
mov dword [esp + 0x4a4], 1
cmp dword [eax + 0x14], 8
jb 0x407543
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x40]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
sete bl
mov byte [esp + 0x4a4], 0
cmp dword [esp + 0x30], 8
jb 0x40757d
push dword [esp + 0x1c]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
test bl, bl
jne 0x407610
push ebp
mov edx, str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x20]
call fcn.00409880
add esp, 4
mov dword [esp + 0x4a4], 2
cmp dword [eax + 0x14], 8
jb 0x4075bd
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
sete bl
mov byte [esp + 0x4a4], 0
cmp dword [esp + 0x30], 8
jb 0x4075f1
push dword [esp + 0x1c]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
test bl, bl
je 0x4078ec
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4078ec
xor eax, eax
mov dword [esp + 0x60], 1
push 0x410
push eax
mov word [esp + 0x84], ax
xor bl, bl
lea eax, [esp + 0x86]
mov dword [esp + 0x64], 0
push eax
call fcn.0056cbb0
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
push 0
lea eax, [esp + 0x68]
push eax
push 0
push str.UninstallString
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
test eax, eax
jne 0x4076a4
cmp dword [esp + 0x5c], 0x208
jae 0x4076a4
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x68]
push eax
push 0
push str.UninstallString
push dword [esp + 0x54]
call edi
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x4076c3
push 0x5a87c4
mov ecx, esi
call fcn.00403a70
jmp 0x40790c
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x48]
call fcn.00403a70
mov dword [esp + 0x4a4], 3
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x44]
test edi, edi
je 0x40777a
cmp ecx, 8
lea eax, [esp + 0x44]
cmovae eax, edx
cmp word [eax], 0x22
jne 0x407725
cmp ecx, 8
lea eax, [esp + 0x44]
lea ecx, [esp + 0x44]
cmovae eax, edx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00403bb0
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x44]
test edi, edi
je 0x40777a
cmp ecx, 8
lea eax, [esp + 0x44]
cmovae eax, edx
cmp word [eax + edi*2 - 2], 0x22
jne 0x40777a
lea eax, [edi - 1]
push eax
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x50]
call fcn.00403c50
mov byte [esp + 0x4a4], 4
lea ecx, [esp + 0x44]
push eax
call fcn.00403b00
mov byte [esp + 0x4a4], 3
lea ecx, [esp + 0x1c]
call fcn.00403b40
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x44]
cmp ecx, 8
cmovae eax, edx
push eax
call edi
cmp eax, 0xffffffff
jne 0x4077bc
push 0x5a87c4
mov ecx, esi
call fcn.00403a70
mov dword [esp + 0x18], 1
mov byte [esp + 0x4a4], 0
lea ecx, [esp + 0x44]
call fcn.00403b40
jmp 0x40791f
xor eax, eax
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
mov byte [esp + 0x4a4], 5
lea edx, [esp + 0x64]
lea ecx, [esp + 0x44]
call fcn.004b26b0
mov edx, 0x20
lea ecx, [esp + 0x64]
call fcn.004b2110
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x50]
call fcn.00404960
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x407844
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x407844
push 0x5a87e8
lea ecx, [esp + 0x48]
call fcn.00403b70
push 0xffffffffffffffff
push 0
push dword [esp + 0x3c]
lea ecx, [esp + 0x50]
call fcn.004047c0
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
call edi
cmp eax, 0xffffffff
je 0x4078b4
lea ecx, [esp + 0x44]
call fcn.004b3170
test edx, edx
jne 0x40787c
test eax, eax
je 0x4078b4
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.00403ad0
mov dword [esp + 0x18], 1
mov byte [esp + 0x4a4], 3
lea ecx, [esp + 0x64]
call fcn.00403b40
mov byte [esp + 0x4a4], 0
lea ecx, [esp + 0x44]
call fcn.00403b40
jmp 0x40791f
push 0x5a87c4
mov ecx, esi
call fcn.00403a70
mov dword [esp + 0x18], 1
mov byte [esp + 0x4a4], 3
lea ecx, [esp + 0x64]
call fcn.00403b40
mov byte [esp + 0x4a4], 0
lea ecx, [esp + 0x44]
call fcn.00403b40
jmp 0x40791f
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x5a87c4
mov word [esi], ax
call fcn.00404a80
mov dword [esp + 0x4a4], 0
mov dword [esp + 0x18], 1
mov eax, esi
mov ecx, dword [esp + 0x49c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.00564de8
add esp, 0x494
ret