Function at 0x407270
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x423e8e
mov eax, dword fs:[0]
push eax
mov eax, 0x1c10
call fcn.0041cee0
mov eax, dword [0x42e43c]
xor eax, esp
mov dword [esp + 0x1c08], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42e43c]
xor eax, esp
push eax
lea eax, [esp + 0x1c24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c40]
mov edi, dword [esp + 0x1c38]
mov esi, dword [esp + 0x1c3c]
mov ebp, dword [esp + 0x1c34]
mov dword [esp + 0x18], eax
xor eax, eax
push 0x206
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x836]
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], edx
mov word [esp + 0x838], ax
call fcn.0040f840
add esp, 0xc
inc dword [ebp + 0xc]
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x40]
push eax
push 0
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x854]
push edx
push edi
mov dword [esp + 0x6c], 0x104
mov dword [esp + 0x54], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, esi
call fcn.004070c0
mov ecx, str.Uninstall
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x407386
test dx, dx
je 0x407382
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x407386
add ecx, 4
add eax, 4
test dx, dx
jne 0x407360
xor eax, eax
jmp 0x40738b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40739c
cmp byte [esp + 0x1c44], al
jne 0x4079b3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4074cb
mov dword [esp + 0x1c], 0
jbe 0x4074cb
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x20]
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0xe48]
push edx
push eax
push ecx
mov dword [esp + 0x50], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4074b8
cmp word [esp + 0xe34], 0x7b
je 0x40741a
mov ecx, dword [ebp]
add ecx, 0x418
lea edi, [eax + 0xb]
mov eax, dword [ecx + 0x14]
push str.MsiProvider
call fcn.00409720
test eax, eax
je 0x4074b8
mov eax, esi
xor edx, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407421
sub eax, edi
sar eax, 1
je 0x407466
mov ebx, esi
lea eax, [esp + 0x5c]
sub ebx, eax
lea ebx, [ebx]
lea ecx, [esp + edx*2 + 0x5c]
mov ax, word [ecx + ebx]
mov word [esp + edx*2 + 0x5c], ax
mov eax, esi
inc edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407453
sub eax, edi
sar eax, 1
cmp edx, eax
jb 0x407440
mov eax, dword [esp + 0x30]
mov ecx, 0x5c
mov word [esp + edx*2 + 0x5c], cx
inc edx
test eax, eax
jbe 0x407495
mov ecx, eax
shr ecx, 1
lea edi, [esp + edx*2 + 0x5c]
lea esi, [esp + 0xe34]
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x28]
add edx, eax
mov ecx, dword [esp + 0x14]
xor eax, eax
push eax
push ecx
mov word [esp + edx*2 + 0x64], ax
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, ebp
call fcn.00407130
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x24]
jb 0x4073b6
cmp dword [ebp + 0xc], 1
je 0x4079b3
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x42c]
add ecx, 0x418
push str.RegistryProvider
mov edi, 0x10
call fcn.00409720
test eax, eax
jne 0x407572
mov ebx, dword [ebp + 4]
mov edi, dword [ebp]
push str._registrykey__n
call fcn.00404a40
mov eax, dword [ebp]
inc dword [eax + 4]
push str.HKEY_LOCAL_MACHINE_
lea edx, [esp + 0x1438]
push 0x1f4
push edx
call fcn.0040cf33
push esi
lea eax, [esp + 0x1444]
push 0x1f4
push eax
call fcn.0040d5de
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x1450]
push ecx
push eax
push str.__s__s___s__n
lea edx, [esp + 0x46c]
push 0x1f4
push edx
call fcn.0040cf33
mov ebx, dword [ebp + 4]
mov edi, dword [ebp]
add esp, 0x30
lea eax, [esp + 0x444]
push eax
call fcn.00404a40
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x42c]
add ecx, 0x418
push str.MsiProvider
mov edi, 0xb
call fcn.00409720
test eax, eax
jne 0x40762b
mov ebx, dword [ebp + 4]
mov edi, dword [ebp]
push str._msi__n
call fcn.00404a40
mov eax, dword [ebp]
mov edi, dword [esp + 0x14]
inc dword [eax + 4]
push edi
mov ebx, esi
call fcn.004070c0
push eax
push edi
push str.__s__s___s__n
lea ecx, [esp + 0x454]
push 0x1f4
push ecx
call fcn.0040cf33
mov ebx, dword [ebp + 4]
mov edi, dword [ebp]
add esp, 0x18
lea edx, [esp + 0x444]
push edx
call fcn.00404a40
mov ebx, esi
call fcn.004070c0
mov edi, eax
mov eax, ebp
call fcn.00407c00
test eax, eax
je 0x40762b
push eax
push str._upgradecode__s__upgradecode__n
lea eax, [esp + 0x44c]
push 0x1f4
push eax
call fcn.0040cf33
mov ebx, dword [ebp + 4]
mov edi, dword [ebp]
add esp, 0x10
lea ecx, [esp + 0x444]
push ecx
call fcn.00404a40
cmp dword [esp + 0x38], 0
je 0x4077a5
cmp dword [ebp + 8], 0
mov dword [esp + 0x14], 0
jle 0x4077a5
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
sub edi, esi
mov dword [esp + 0x1c], edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xa38]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [edi + esi]
push edx
push eax
mov dword [esp + 0x38], 1
mov dword [esp + 0x40], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40778d
push 0x26
lea ecx, [esp + 0x1038]
push ecx
lea edx, [esp + 0xa3c]
push edx
mov ebx, str.amp_
call fcn.00407000
push 0x3c
lea eax, [esp + 0xa44]
push eax
lea ecx, [esp + 0x1048]
push ecx
mov ebx, str.lt_
call fcn.00407000
push 0x22
lea edx, [esp + 0x1050]
push edx
lea eax, [esp + 0xa54]
push eax
mov ebx, str.quot_
call fcn.00407000
push 0x27
lea ecx, [esp + 0xa5c]
push ecx
lea edx, [esp + 0x1060]
push edx
mov ebx, str.apos_
call fcn.00407000
push 0x3e
lea eax, [esp + 0x1068]
push eax
lea ecx, [esp + 0xa6c]
push ecx
mov ebx, str.gt_
call fcn.00407000
push esi
lea edx, [esp + 0x1074]
push edx
push esi
push str.__s__s___s__n
lea eax, [esp + 0x1868]
push 0x12c
push eax
call fcn.0040cf33
mov edi, dword [ebp]
mov ecx, dword [ebp + 4]
xor ebx, ebx
add esp, 0x54
cmp dword [edi + 4], ebx
mov dword [esp + 0x18], ecx
jle 0x40776f
mov edx, dword [esp + 0x18]
push 0x42889c
push 0x1f70
push edx
call fcn.0040d5de
inc ebx
add esp, 0xc
cmp ebx, dword [edi + 4]
jl 0x407752
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x181c]
push eax
push 0x1f70
push ecx
call fcn.0040d5de
mov edi, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [esp + 0x14]
inc eax
add esi, 0xc8
cmp eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
jl 0x407656
mov esi, dword [ebp]
mov edi, dword [esi + 0x42c]
mov eax, edi
mov edx, edi
cmp edi, 0x10
jb 0x4077bc
mov edx, 0x10
cmp dword [esi + 0x430], 8
jb 0x4077cd
mov ecx, dword [esi + 0x41c]
jmp 0x4077d3
lea ecx, [esi + 0x41c]
mov eax, str.RegistryProvider
test edx, edx
jbe 0x407805
lea esp, [esp]
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x4077f5
add ecx, 2
add eax, 2
sub edx, 1
jne 0x4077e0
jmp 0x407805
mov dx, word [ecx]
cmp dx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
jne 0x407812
cmp edi, 0x10
jb 0x40785c
xor eax, eax
cmp edi, 0x10
setne al
test eax, eax
jne 0x40785c
dec dword [esi + 4]
mov edi, dword [ebp]
mov ebx, dword [ebp + 4]
xor esi, esi
cmp dword [edi + 4], esi
jle 0x407849
jmp 0x407830
push 0x42889c
push 0x1f70
push ebx
call fcn.0040d5de
inc esi
add esp, 0xc
cmp esi, dword [edi + 4]
jl 0x407830
push str.__registrykey__n
push 0x1f70
push ebx
call fcn.0040d5de
add esp, 0xc
mov esi, dword [ebp]
mov edi, dword [esi + 0x42c]
mov eax, edi
mov edx, edi
cmp edi, 0xb
jb 0x407873
mov edx, 0xb
cmp dword [esi + 0x430], 8
jb 0x407884
mov ecx, dword [esi + 0x41c]
jmp 0x40788a
lea ecx, [esi + 0x41c]
mov eax, str.MsiProvider
test edx, edx
jbe 0x4078b8
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x4078a8
add ecx, 2
add eax, 2
sub edx, 1
jne 0x407893
jmp 0x4078b8
mov cx, word [ecx]
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
add eax, 1
jne 0x4078c5
cmp edi, 0xb
jb 0x40790c
xor eax, eax
cmp edi, 0xb
setne al
test eax, eax
jne 0x40790c
dec dword [esi + 4]
mov edi, dword [ebp]
mov ebx, dword [ebp + 4]
xor esi, esi
cmp dword [edi + 4], esi
jle 0x4078f9
lea esp, [esp]
push 0x42889c
push 0x1f70
push ebx
call fcn.0040d5de
inc esi
add esp, 0xc
cmp esi, dword [edi + 4]
jl 0x4078e0
push str.__msi__n
push 0x1f70
push ebx
call fcn.0040d5de
add esp, 0xc
push 0xc
call fcn.0040d736
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
xor ebx, ebx
mov dword [esp + 0x1c2c], ebx
cmp esi, ebx
je 0x407964
mov edi, dword [ebp + 4]
xor ecx, ecx
mov eax, 0x1f70
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040c03e
push edi
push 0x1f70
push eax
mov dword [esi], eax
mov dword [esi + 8], 0x1f70
call fcn.0040d6ac
add esp, 0x10
mov dword [esi + 4], ebx
jmp 0x407966
xor esi, esi
or edi, 0xffffffff
mov dword [esp + 0x1c2c], edi
mov eax, dword [ebp]
add eax, 0x43c
cmp dword [eax], ebx
jne 0x407983
mov dword [eax], esi
mov dword [eax + 4], esi
jmp 0x407992
mov ecx, dword [eax + 4]
mov dword [ecx + 4], esi
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 4]
push edx
call fcn.0040d1fe
push 0x3ee0
call fcn.0040c03e
xor ecx, ecx
mov dword [ebp + 4], eax
add esp, 8
mov word [eax], cx
add dword [ebp + 0xc], edi
mov ecx, dword [esp + 0x1c24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c08]
xor ecx, esp
call fcn.0040cf24
add esp, 0x1c1c
ret 0x14