Function at 0x1003c920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010d214
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x1015746c]
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 edx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x818], edx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x824], edx
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x830], edi
cmp dword [ebp + 0x14], edi
mov edx, 0x100
mov esi, 0x200
mov dword [ebp - 4], edi
cmovne esi, edx
mov dword [ebp - 0x814], edi
lea edx, [ebp - 0x814]
or esi, 0x20019
push edx
push esi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003cc16
mov ebx, dword [ebp - 0x814]
and esi, 0x300
push 0x800
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x838], ebx
push eax
mov dword [ebp - 0x834], esi
call fcn.10094f30
add esp, 0xc
mov dword [ebp - 0x814], 0x800
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x820]
push eax
push edi
push dword [ebp - 0x818]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003cc0b
mov eax, dword [ebp - 0x820]
cmp eax, 1
je 0x1003ca32
cmp eax, 2
jne 0x1003cc0b
mov ecx, dword [ebp - 0x814]
test ecx, ecx
je 0x1003ca59
test cl, 1
jne 0x1003cc0b
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x1003ca62
jmp 0x1003cc0b
xor eax, eax
mov word [ebp - 0x810], ax
shr ecx, 1
je 0x1003cc0b
call fcn.1001a3c0
mov ecx, eax
test ecx, ecx
je 0x1003cc36
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
mov eax, dword [ebp - 0x824]
mov byte [ebp - 4], 1
test eax, eax
je 0x1003cb8e
cmp eax, 0x10118b70
je 0x1003cb8e
push eax
lea ecx, [ebp - 0x81c]
call fcn.10003e60
mov dword [ebp - 0x824], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x82c]
call fcn.10003e60
push 0x10118d3c
push eax
lea eax, [ebp - 0x820]
mov byte [ebp - 4], 3
push eax
call fcn.10024b80
add esp, 0xc
mov esi, eax
mov ecx, dword [esi]
mov byte [ebp - 4], 5
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x1003caff
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x1003cb15
call fcn.1001a3c0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1003cc40
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi]
add eax, 0x10
mov dword [ebp - 0x818], eax
mov eax, dword [ebp - 0x824]
mov dword [ebp - 0x828], 1
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push dword [ecx - 0xc]
lea eax, [ebp - 0x818]
push ecx
push eax
call fcn.100390b0
add esp, 0x14
lea eax, [ebp - 0x818]
lea ecx, [ebp - 0x814]
push eax
call fcn.1000aae0
lea ecx, [ebp - 0x818]
call fcn.10003f60
lea ecx, [ebp - 0x820]
call fcn.10003f60
lea ecx, [ebp - 0x82c]
call fcn.10003f60
lea ecx, [ebp - 0x81c]
call fcn.10003f60
jmp 0x1003cbd2
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x81c]
call fcn.10003e60
push eax
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 6
call fcn.1000aae0
mov edx, dword [ebp - 0x81c]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003cbd2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x814]
lea eax, [ebp - 0x83c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov byte [ebp - 4], 0
mov ecx, 1
cmovne edi, ecx
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003cc0b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x1003cc16
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.10068438
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.10004170
push 0x80004005
call fcn.10004170
int3