Function at 0x403df0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x47f034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x41c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x40
xor eax, eax
mov dword [ebp - 0x428], ebx
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x40c], esi
mov dword [ebp - 0x408], 7
mov word [ebp - 0x41c], ax
call fcn.00404610
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e50
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x41c]
call fcn.00404610
cmp dword [ebp - 0x408], 8
lea ecx, [ebp - 0x420]
push ecx
push 0x109
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x403f26
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0041d840
add esp, 0xc
mov dword [ebp - 0x42c], 0x200
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x424], 1
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403f11
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, 1
cmovne esi, eax
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x403f1e
push eax
call ebx
test esi, esi
jne 0x404028
cmp dword [ebp - 0x408], 8
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x40c], 0
cmovae eax, dword [ebp - 0x41c]
xor ecx, ecx
push 0x34
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
mov word [eax], cx
lea ecx, [ebp - 0x41c]
call fcn.00404610
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403f60
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x41c]
call fcn.00404610
cmp dword [ebp - 0x408], 8
lea ecx, [ebp - 0x420]
push ecx
push 0x109
lea eax, [ebp - 0x41c]
cmovae eax, dword [ebp - 0x41c]
push 0
push eax
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404028
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0041d840
add esp, 0xc
mov dword [ebp - 0x428], 0x200
lea eax, [ebp - 0x428]
mov dword [ebp - 0x424], 1
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40401b
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, 1
cmovne esi, eax
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x404028
push eax
call ebx
mov edx, dword [ebp - 0x408]
cmp edx, 8
jb 0x404064
mov ecx, dword [ebp - 0x41c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40405a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404077
push edx
push ecx
call fcn.0041afbd
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041afcb
mov esp, ebp
pop ebp
ret
call fcn.004262f9
int3