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

Disassembly:
push 0xffffffffffffffff
push 0x470649
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x49274c]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49274c]
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.00407bf0
add esp, 4
mov dword [esp + 0x4a4], 1
cmp dword [eax + 0x14], 8
jb 0x404433
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 0x40446d
push dword [esp + 0x1c]
call fcn.0044fd7a
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 0x404500
push ebp
mov edx, str.SoftwareWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x20]
call fcn.00407bf0
add esp, 4
mov dword [esp + 0x4a4], 2
cmp dword [eax + 0x14], 8
jb 0x4044ad
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 0x4044e1
push dword [esp + 0x1c]
call fcn.0044fd7a
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 0x4047dc
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4047dc
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.00455ee0
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 0x404594
cmp dword [esp + 0x5c], 0x208
jae 0x404594
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 0x4045b3
push 0x481240
mov ecx, esi
call fcn.00404e90
jmp 0x4047fc
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x48]
call fcn.00404e90
mov dword [esp + 0x4a4], 3
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x44]
test edi, edi
je 0x40466a
cmp ecx, 8
lea eax, [esp + 0x44]
cmovae eax, edx
cmp word [eax], 0x22
jne 0x404615
cmp ecx, 8
lea eax, [esp + 0x44]
lea ecx, [esp + 0x44]
cmovae eax, edx
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00405010
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x44]
test edi, edi
je 0x40466a
cmp ecx, 8
lea eax, [esp + 0x44]
cmovae eax, edx
cmp word [eax + edi*2 - 2], 0x22
jne 0x40466a
lea eax, [edi - 1]
push eax
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x50]
call fcn.00405080
mov byte [esp + 0x4a4], 4
lea ecx, [esp + 0x44]
push eax
call fcn.00404f20
mov byte [esp + 0x4a4], 3
lea ecx, [esp + 0x1c]
call fcn.00404f60
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 0x4046ac
push 0x481240
mov ecx, esi
call fcn.00404e90
mov dword [esp + 0x18], 1
mov byte [esp + 0x4a4], 0
lea ecx, [esp + 0x44]
call fcn.00404f60
jmp 0x40480f
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.00412040
mov edx, 0x20
lea ecx, [esp + 0x64]
call fcn.00411940
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x50]
call fcn.00406750
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x404734
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x404734
push 0x48110c
lea ecx, [esp + 0x48]
call fcn.00404fd0
push 0xffffffffffffffff
push 0
push dword [esp + 0x3c]
lea ecx, [esp + 0x50]
call fcn.004065b0
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
call edi
cmp eax, 0xffffffff
je 0x4047a4
lea ecx, [esp + 0x44]
call fcn.004129c0
test edx, edx
jne 0x40476c
test eax, eax
je 0x4047a4
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.00404ef0
mov dword [esp + 0x18], 1
mov byte [esp + 0x4a4], 3
lea ecx, [esp + 0x64]
call fcn.00404f60
mov byte [esp + 0x4a4], 0
lea ecx, [esp + 0x44]
call fcn.00404f60
jmp 0x40480f
push 0x481240
mov ecx, esi
call fcn.00404e90
mov dword [esp + 0x18], 1
mov byte [esp + 0x4a4], 3
lea ecx, [esp + 0x64]
call fcn.00404f60
mov byte [esp + 0x4a4], 0
lea ecx, [esp + 0x44]
call fcn.00404f60
jmp 0x40480f
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x481240
mov word [esi], ax
call fcn.004073e0
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.0044fd7f
add esp, 0x494
ret