Function at 0x10033890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007395d
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x10089040]
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
mov edi, ecx
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x438], edi
mov eax, dword [0x1008beb0]
mov dword [ebp - 0x424], 0
test al, 1
jne 0x10033918
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov dword [ebp - 4], 0
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x1008be5c]
lea ecx, [ecx - 0x10]
call fcn.10005e40
mov ebx, eax
lea esi, [ebx + 0x10]
mov dword [ebp - 0x428], esi
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 1
push eax
push 0x201
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10033a43
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10045770
add esp, 0xc
mov dword [ebp - 0x42c], 1
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], 0
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10033c54
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.10005aa0
test al, al
jne 0x10033a1e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10033a00
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10005d10
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x10033c36
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10033c36
mov eax, dword [0x1008beb0]
test al, 1
jne 0x10033a7f
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov byte [ebp - 4], 3
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
add esp, 4
mov byte [ebp - 4], 1
mov edx, dword [0x1008be60]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x10033ae0
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x10033acb
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x10033acb
call fcn.10005e40
mov dword [ebp - 0x430], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x10033ac0
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x430]
lea esi, [eax + 0x10]
mov dword [ebp - 0x428], esi
jmp 0x10033ae0
push dword [edx - 0xc]
lea ecx, [ebp - 0x428]
push edx
call fcn.10005d10
mov esi, dword [ebp - 0x428]
lea eax, [ebp - 0x424]
push eax
push 0x201
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10033be0
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.10045770
add esp, 0xc
mov dword [ebp - 0x42c], 1
lea eax, [ebp - 0x434]
mov dword [ebp - 0x434], 0x208
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0
push str.Path
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], 0
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10033c5e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 4
push eax
mov ecx, edi
call fcn.10005aa0
test al, al
jne 0x10033bbf
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10033ba1
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10005d10
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10033c36
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10033c36
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x10033c68
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x1007d468
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.10005aa0
test al, al
jne 0x10033c17
push 0
push 0x1007d468
mov ecx, edi
call fcn.10005d10
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10033c36
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.10043637
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
push 0x80004005
call fcn.100013a0
int3