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

Disassembly:
push 0xffffffffffffffff
push 0x46c489
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x47c], eax
push ebx
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x494]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], 0
lea ecx, [esp + 0x18]
push 0x48d68c
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 0
call fcn.0040af10
add esp, 4
mov dword [esp + 0x49c], 1
cmp dword [eax + 0x14], 8
jb 0x407cd9
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x38]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
sete bl
mov byte [esp + 0x49c], 0
cmp dword [esp + 0x2c], 8
jb 0x407d13
push dword [esp + 0x18]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
test bl, bl
jne 0x407daa
push 0x48d68c
mov edx, str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x1c]
call fcn.0040af10
add esp, 4
mov dword [esp + 0x49c], 2
cmp dword [eax + 0x14], 8
jb 0x407d57
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
sete bl
mov byte [esp + 0x49c], 0
cmp dword [esp + 0x2c], 8
jb 0x407d8b
push dword [esp + 0x18]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
test bl, bl
je 0x40807e
mov edi, dword [esp + 0x38]
test edi, edi
je 0x40807e
xor eax, eax
mov dword [esp + 0x58], 1
push 0x410
push eax
mov word [esp + 0x7c], ax
xor bl, bl
lea eax, [esp + 0x7e]
mov dword [esp + 0x5c], 0
push eax
call fcn.00451b50
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push 0
lea eax, [esp + 0x60]
push eax
push 0
push str.UninstallString
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
test eax, eax
jne 0x407e35
cmp dword [esp + 0x54], 0x208
jae 0x407e35
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x60]
push eax
push 0
push str.UninstallString
push dword [esp + 0x4c]
call edi
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x407e54
push 0x47cbf4
mov ecx, esi
call fcn.00402c40
jmp 0x40809e
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x40]
call fcn.00402c40
mov dword [esp + 0x49c], 3
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
test edi, edi
je 0x407f0b
cmp ecx, 8
lea eax, [esp + 0x3c]
cmovae eax, edx
cmp word [eax], 0x22
jne 0x407eb6
cmp ecx, 8
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x3c]
cmovae eax, edx
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00402d80
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
test edi, edi
je 0x407f0b
cmp ecx, 8
lea eax, [esp + 0x3c]
cmovae eax, edx
cmp word [eax + edi*2 - 2], 0x22
jne 0x407f0b
lea eax, [edi - 1]
push eax
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
call fcn.00402e10
mov byte [esp + 0x49c], 4
lea ecx, [esp + 0x3c]
push eax
call fcn.00402cd0
mov byte [esp + 0x49c], 3
lea ecx, [esp + 0x18]
call fcn.00402d10
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x3c]
cmp ecx, 8
cmovae eax, edx
push eax
call edi
cmp eax, 0xffffffff
jne 0x407f4d
push 0x47cbf4
mov ecx, esi
call fcn.00402c40
mov dword [esp + 0x14], 1
mov byte [esp + 0x49c], 0
lea ecx, [esp + 0x3c]
call fcn.00402d10
jmp 0x4080b1
xor eax, eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], ax
mov byte [esp + 0x49c], 5
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x3c]
call fcn.00411a10
mov edx, 0x20
lea ecx, [esp + 0x5c]
call fcn.00412010
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x48]
call fcn.00403ac0
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x407fd5
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x407fd5
push 0x47cbf0
lea ecx, [esp + 0x40]
call fcn.00402d40
push 0xffffffffffffffff
push 0
push 0x48d6a4
lea ecx, [esp + 0x48]
call fcn.00403920
cmp dword [esp + 0x50], 8
lea eax, [esp + 0x3c]
cmovae eax, dword [esp + 0x3c]
push eax
call edi
cmp eax, 0xffffffff
je 0x408046
lea ecx, [esp + 0x3c]
call fcn.004110e0
test edx, edx
jne 0x40800e
test eax, eax
je 0x408046
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.00402ca0
mov dword [esp + 0x14], 1
mov byte [esp + 0x49c], 3
lea ecx, [esp + 0x5c]
call fcn.00402d10
mov byte [esp + 0x49c], 0
lea ecx, [esp + 0x3c]
call fcn.00402d10
jmp 0x4080b1
push 0x47cbf4
mov ecx, esi
call fcn.00402c40
mov dword [esp + 0x14], 1
mov byte [esp + 0x49c], 3
lea ecx, [esp + 0x5c]
call fcn.00402d10
mov byte [esp + 0x49c], 0
lea ecx, [esp + 0x3c]
call fcn.00402d10
jmp 0x4080b1
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x47cbf4
mov word [esi], ax
call fcn.00403be0
mov dword [esp + 0x49c], 0
mov dword [esp + 0x14], 1
mov eax, esi
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x47c]
xor ecx, esp
call fcn.0044b642
add esp, 0x490
ret