Function at 0x10010640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071520
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x10089040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x230], edi
cmp dword [ebx + 0x130], 0
jne 0x10010963
mov eax, dword [0x1008beb0]
mov dword [ebp - 0x228], 0
test al, 1
jne 0x100106d2
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 esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x228]
push eax
push 0xf003f
push 0
push dword [0x1008be5c]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x1001076a
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10045770
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x228]
mov dword [ebp - 0x224], 0x208
mov dword [ebp - 0x220], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x228], 0
push eax
jmp 0x10010806
mov eax, dword [0x1008beb0]
test al, 1
jne 0x100107ac
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov dword [ebp - 4], 1
call fcn.10045770
add esp, 0xc
call fcn.10005f50
push 0x10074db0
call fcn.10043c72
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x228]
push eax
push 0xf003f
push 0
push dword [0x1008be60]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x10010801
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.10045770
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push str.Path
jmp 0x10010728
push 0x1007d468
lea ecx, [ebp - 0x24c]
call fcn.1000c640
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebx + 0x120]
call fcn.1000cf10
mov ecx, dword [ebp - 0x238]
cmp ecx, 7
jbe 0x10010863
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10010859
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100109e8
push ecx
push edx
call fcn.10043c87
add esp, 8
cmp dword [ebx + 0x130], 0
jne 0x10010963
mov eax, dword [0x1008beb0]
test al, 1
jne 0x100108b2
or eax, 1
mov dword [0x1008beb0], eax
push 0x68
push 0
push 0x1008be48
mov dword [ebp - 4], 2
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 [0x1008be54]
add ecx, 0xfffffff0
call fcn.10005e40
add eax, 0x10
mov dword [ebp - 0x220], eax
push ecx
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 3
call fcn.10011f20
mov esi, dword [ebp - 0x220]
lea ecx, [ebp - 0x22c]
mov edx, esi
call fcn.10007080
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x224], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10010900
sub edx, dword [ebp - 0x224]
sar edx, 1
push edx
push ecx
lea ecx, [ebx + 0x120]
call fcn.1000ce00
mov byte [ebp - 4], 3
or ecx, 0xffffffff
mov edx, dword [ebp - 0x22c]
mov eax, ecx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10010947
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10010963
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x134], 7
lea esi, [ebx + 0x120]
jbe 0x10010974
mov esi, dword [esi]
call fcn.10003fc0
mov ecx, eax
test ecx, ecx
je 0x100109ed
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push esi
mov ecx, edi
mov dword [ebp - 4], 5
call fcn.10005aa0
test al, al
jne 0x100109c8
test esi, esi
jne 0x100109a4
xor ecx, ecx
jmp 0x100109bf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100109b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.10005d10
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 - 0x14]
xor ecx, ebp
call fcn.10043637
mov esp, ebp
pop ebp
ret 4
call fcn.10047604
push 0x80004005
call fcn.100013a0
int3