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

Disassembly:
push 0xffffffffffffffff
push 0x46d690
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x4c]
mov esi, dword [edi + 0xc]
lea ebx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
call fcn.004270a0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42664f
mov eax, dword [0x4863c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4863c4
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov ebx, 0x105
sub eax, ebx
or eax, ecx
jge 0x4262bf
mov ecx, ebx
lea eax, [esp + 0x28]
call fcn.004034e0
mov esi, dword [esp + 0x28]
cmp dword [esi - 8], ebx
jge 0x4262ce
push 0x80070057
call fcn.00401000
push 0x104
mov dword [esi - 0xc], ebx
push 0
mov byte [esi + 0x105], 0
push esi
mov dword [esp + 0x30], 0x104
call fcn.00446e10
mov eax, dword [edi + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push esi
lea edx, [esp + 0x38]
push edx
push 0
push eax
mov eax, dword [esp + 0x34]
push eax
call ebp
mov byte [esi + 0x104], 0
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00442f3d
add esp, 8
test eax, eax
jl 0x4262c4
cmp eax, dword [esi - 8]
jg 0x4262c4
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
mov eax, dword [esi - 0xc]
test eax, eax
jle 0x4267ba
mov eax, dword [edi + 0x14]
cmp dword [eax - 0xc], 0
jle 0x426380
test eax, eax
jne 0x42634f
or eax, 0xffffffff
jmp 0x42636f
cmp dword [esi - 0xc], 0
jge 0x42635a
or eax, 0xffffffff
jmp 0x42636f
push eax
push esi
call fcn.00442f26
add esp, 8
test eax, eax
jne 0x42636d
or eax, 0xffffffff
jmp 0x42636f
sub eax, esi
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
test eax, eax
je 0x4267ba
cmp dword [edi + 0x38], 0
mov edx, dword [0x4863c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4863c4
jbe 0x426653
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x44], 1
mov ecx, dword [edi + 0x18]
cmp dword [ecx - 0xc], 0
jle 0x42644d
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ebx
or edx, eax
jge 0x4263d3
mov ecx, ebx
lea eax, [esp + 0x1c]
call fcn.004034e0
mov esi, dword [esp + 0x1c]
cmp dword [esi - 8], ebx
jge 0x4263e2
push 0x80070057
call fcn.00401000
push 0x104
mov dword [esi - 0xc], ebx
push 0
mov byte [esi + 0x105], 0
push esi
mov dword [esp + 0x30], 0x104
call fcn.00446e10
mov eax, dword [edi + 0x18]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push esi
lea edx, [esp + 0x38]
push edx
push 0
push eax
push ecx
call ebp
mov byte [esi + 0x103], 0
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00442f3d
add esp, 8
test eax, eax
jl 0x4262c4
cmp eax, dword [esi - 8]
jg 0x4262c4
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
jmp 0x4265e5
lea esi, [esp + 0x18]
call fcn.00403110
mov byte [esp + 0x44], 2
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
mov edi, 0x30c
sub eax, edi
or eax, ecx
jge 0x426482
mov ecx, edi
mov eax, esi
call fcn.004034e0
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 8], edi
jge 0x426491
push 0x80070057
call fcn.00401000
lea edx, [esp + 0x24]
push edx
push ebx
lea eax, [esp + 0x38]
push eax
mov dword [ebx - 0xc], edi
push 0
mov byte [ebx + 0x30c], 0
mov ecx, dword [esp + 0x30]
push str.UninstallString
push ecx
mov dword [esp + 0x3c], edi
call ebp
mov byte [ebx + 0x30b], 0
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.00442f3d
add esp, 8
test eax, eax
jl 0x4262c4
cmp eax, dword [ebx - 8]
jg 0x4262c4
mov dword [ebx - 0xc], eax
mov byte [eax + ebx], 0
lea eax, [ebx - 0x10]
call fcn.00403350
add eax, 0x10
mov dword [esp + 0x2c], eax
lea edi, [esp + 0x2c]
mov byte [esp + 0x44], 3
call fcn.00426bb0
mov ecx, str..exe
mov esi, edi
call fcn.00404bf0
test eax, eax
jle 0x42654f
lea ecx, [esp + 0x34]
lea edx, [esp + 0x18]
call fcn.00404c90
lea ebx, [esp + 0x18]
mov byte [esp + 0x44], 4
call fcn.00403260
lea ecx, [esp + 0x34]
mov byte [esp + 0x44], 3
call fcn.004031d0
mov edx, str..exe
mov edi, ebx
call fcn.0040bda0
call fcn.00426c90
mov ebx, dword [esp + 0x18]
lea esi, [esp + 0x1c]
call fcn.00403480
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x426581
mov ecx, edi
lea eax, [esp + 0x1c]
call fcn.004034e0
mov esi, dword [esp + 0x1c]
cmp dword [esi - 8], edi
jge 0x426590
push 0x80070057
call fcn.00401000
mov dword [esi - 0xc], edi
push esi
mov ecx, ebx
mov byte [esi + 0x104], 0
call fcn.00427160
mov eax, dword [esi - 8]
add esp, 4
push eax
push esi
call fcn.00442f3d
add esp, 8
test eax, eax
jl 0x4262c4
cmp eax, dword [esi - 8]
jg 0x4262c4
mov dword [esi - 0xc], eax
lea ecx, [esp + 0x2c]
mov byte [eax + esi], 0
call fcn.004031d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 1
call fcn.004031d0
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.00426810
test eax, eax
je 0x426632
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.004267f0
mov esi, eax
lea ecx, [esp + 0x1c]
call fcn.004031d0
lea ecx, [esp + 0x28]
call fcn.004031d0
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
call fcn.004031d0
lea ecx, [esp + 0x28]
call fcn.004031d0
xor eax, eax
jmp 0x42661c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x44], 5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x30c
sub eax, edi
or eax, ecx
jge 0x426686
mov ecx, edi
lea eax, [esp + 0x1c]
call fcn.004034e0
mov esi, dword [esp + 0x1c]
cmp dword [esi - 8], edi
jge 0x426695
push 0x80070057
call fcn.00401000
lea ecx, [esp + 0x24]
push ecx
push esi
lea edx, [esp + 0x38]
push edx
mov dword [esi - 0xc], edi
push 0
mov byte [esi + 0x30c], 0
mov eax, dword [esp + 0x30]
push str.UninstallString
push eax
mov dword [esp + 0x3c], edi
call ebp
mov byte [esi + 0x30b], 0
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00442f3d
add esp, 8
test eax, eax
jl 0x4262c4
cmp eax, dword [esi - 8]
jg 0x4262c4
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea eax, [esi - 0x10]
call fcn.00403350
add eax, 0x10
mov dword [esp + 0x18], eax
lea edi, [esp + 0x18]
mov byte [esp + 0x44], 6
call fcn.00426bb0
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
jl 0x426765
push str..exe
push edi
call fcn.00442f26
add esp, 8
test eax, eax
je 0x426765
sub eax, edi
test eax, eax
jle 0x426765
lea ecx, [esp + 0x34]
lea edx, [esp + 0x1c]
call fcn.00404c90
lea ebx, [esp + 0x1c]
mov byte [esp + 0x44], 7
call fcn.00403260
lea ecx, [esp + 0x34]
mov byte [esp + 0x44], 6
call fcn.004031d0
mov edx, str..exe
mov edi, ebx
call fcn.0040bda0
call fcn.00426c90
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [esp + 0x20]
push ecx
test eax, eax
jne 0x42679b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.00425e90
add esp, 8
lea ecx, [esp + 0x18]
call fcn.004031d0
jmp 0x42663d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x4c]
call fcn.004267f0
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.004031d0
jmp 0x426608
lea eax, [esi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42664f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x42661c