Function at 0x40d560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f114c
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x5341c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp word [0x539848], 0
jne 0x40d811
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
push 0x20219
push str.SOFTWAREUltra_Uninstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x828]
mov dword [ebp - 4], 0
call fcn.0040da70
mov ebx, dword [ebp - 0x828]
test eax, eax
jne 0x40d806
lea eax, [ebp - 0x818]
mov dword [ebp - 0x818], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
push eax
push 0
push 0x4fda3c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d806
mov eax, dword [ebp - 0x814]
cmp eax, 1
je 0x40d632
cmp eax, 2
jne 0x40d806
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x40d656
test al, 1
jne 0x40d806
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x40d65f
jmp 0x40d806
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x539848
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x40d68f
movzx eax, word [esi + ecx]
test ax, ax
je 0x40d68f
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40d671
lea eax, [ecx - 2]
test edx, edx
push 0x539848
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x814]
call fcn.00406a20
mov byte [ebp - 4], 1
call fcn.004073a0
mov ecx, eax
test ecx, ecx
je 0x40d82f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
mov eax, dword [ebp - 0x814]
or edi, 0xffffffff
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], 0
jl 0x40d744
push 0x4fdff0
push eax
call fcn.00471b44
add esp, 8
test eax, eax
je 0x40d744
sub eax, dword [ebp - 0x814]
sar eax, 1
test eax, eax
jle 0x40d744
push eax
lea eax, [ebp - 0x81c]
push eax
lea ecx, [ebp - 0x814]
call fcn.0040da00
push eax
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 3
call fcn.00406cd0
mov edx, dword [ebp - 0x81c]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d756
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40d756
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x818]
call fcn.00406cd0
mov eax, dword [ebp - 0x818]
mov edx, 0x4fdff4
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x40d789
test si, si
je 0x40d785
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x40d789
add ecx, 4
add edx, 4
test si, si
jne 0x40d763
xor ecx, ecx
jmp 0x40d78e
sbb ecx, ecx
or ecx, 1
lea edx, [eax - 0x10]
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test ecx, ecx
jne 0x40d7db
test eax, eax
jg 0x40d7ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x814]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40d7cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x40d7d7
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40d813
test eax, eax
jg 0x40d7e7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x814]
mov byte [ebp - 4], 0
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40d806
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x40d811
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044666a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403b30
int3