Function at 0x1003c140
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b6e17
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x101cc284]
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 dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [esi], 0x10001254
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x1c]
mov byte [esi + 0x18], 1
call fcn.1003b8a0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], 0
fld dword [0x100398b4]
lea ecx, [esi + 0x40]
fstp dword [ecx + 0xc]
fld dword [0x1003980c]
fstp dword [ecx + 0x10]
fld dword [0x10039ca4]
fstp dword [ecx + 0x14]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x11
mov dword [ecx + 0x18], 0xffffffff
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0xa
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
call fcn.10041eb0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
push 0x20019
xor edi, edi
push edi
push 0x10016060
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003c273
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push 0x101cff10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 4
push eax
push 0
push dword [0x100076d0]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003c273
cmp dword [ebp - 0x20], 4
jne 0x1003c273
mov al, 1
jmp 0x1003c275
xor al, al
mov byte [0x101cff0c], al
test edi, edi
je 0x1003c285
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0x24
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je 0x1003c2bd
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 9
call fcn.1003b8a0
jmp 0x1003c2bf
xor edi, edi
mov ecx, dword [esi + 0x3c]
cmp ecx, edi
je 0x1003c2d3
test ecx, ecx
je 0x1003c2d0
push ecx
call fcn.100419c0
mov dword [esi + 0x3c], edi
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
call fcn.100e7fb0
mov esi, dword [ebp - 0x1c]
push esi
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x101d13b0]
call edi
mov byte [ebp - 4], 5
mov ebx, eax
mov ecx, dword [esi]
push esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101d13b0]
call esi
mov edi, dword [ebp - 0x24]
xor ecx, ecx
mov eax, ebx
mov edx, 0xc
mul edx
push 1
mov dword [edi + 8], ebx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
add esp, 8
test eax, eax
je 0x1003c362
push 0x1003c6b0
push 0x1003c6a0
push dword [ebp - 0x18]
mov dword [eax], ebx
lea ebx, [eax + 4]
push 0xc
push ebx
call fcn.101b698a
jmp 0x1003c364
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x1003c396
test eax, eax
je 0x1003c393
push 0x1003c6b0
lea esi, [eax - 4]
mov byte [ebp - 4], 0xb
push dword [esi]
push 0xc
push eax
call fcn.101b61fa
push esi
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
add esp, 4
mov byte [ebp - 4], 5
mov dword [edi + 4], ebx
mov dword [edi + 0xc], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x18], ebx
cmp ebx, dword [edi + 8]
jae 0x1003c4d1
mov eax, dword [edi + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call fcn.100e7fb0
mov esi, dword [ebp - 0x1c]
push ebx
push esi
mov eax, dword [esi]
mov edi, dword [eax + 0x3c]
mov ecx, edi
call dword [0x101d13b0]
call edi
mov byte [ebp - 4], 5
mov edi, eax
mov ecx, dword [esi]
push esi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101d13b0]
call esi
mov eax, dword [ebp - 0x20]
lea esi, [ebx + ebx*2]
mov ecx, ebx
mov dword [eax + esi*4], edi
call fcn.1003c070
mov edi, dword [ebp - 0x20]
mov dword [edi + esi*4 + 8], eax
cmp ebx, eax
jne 0x1003c4c8
push 1
push 0xc
mov byte [ebp - 4], 0xd
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
add esp, 8
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x1003c435
push ebx
mov ecx, eax
call fcn.100eefe0
mov esi, eax
jmp 0x1003c437
xor esi, esi
lea eax, [ebx + ebx*2]
mov ecx, dword [edi + eax*4 + 4]
cmp ecx, esi
je 0x1003c453
test ecx, ecx
je 0x1003c44f
push ecx
call fcn.10041650
lea eax, [ebx + ebx*2]
mov dword [edi + eax*4 + 4], esi
mov edi, dword [ebp - 0x24]
cmp dword [edi + 0xc], 0xffffffff
jne 0x1003c476
mov dword [edi + 0xc], ebx
movzx eax, byte [0x101cff0c]
neg eax
sbb eax, eax
and eax, dword [0x101cff10]
setne al
mov byte [edi + 0x18], al
mov dword [ebp - 4], 5
inc ebx
jmp 0x1003c39f
mov edi, dword [ebp - 0x24]
inc ebx
jmp 0x1003c39f
push 1
push 0x34
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov ebx, eax
add esp, 8
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x1003c52b
mov dword [ebx + 4], 0
mov byte [ebp - 4], 0x12
lea ecx, [ebx + 8]
mov dword [ebx], 0x10001564
call fcn.1003b8a0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx], 0x10001544
mov dword [ebx + 0x30], 0x1dcd6500
jmp 0x1003c52d
xor ebx, ebx
mov byte [ebp - 4], 5
test ebx, ebx
je 0x1003c539
lock inc dword [ebx + 4]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x1003c565
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x1003c565
test ecx, ecx
je 0x1003c565
mov eax, dword [ecx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x101d13b0]
mov ecx, dword [ebp - 0x18]
call esi
push 1
push 0xc
mov dword [edi + 0x10], ebx
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov ebx, eax
add esp, 8
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 0x13
test ebx, ebx
je 0x1003c620
mov eax, dword [edi + 0x10]
push 1
push 0x50
mov dword [ebp - 0x18], eax
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov esi, eax
add esp, 8
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1003c5f0
mov dword [esi], 0x10005ef4
mov dword [esi + 4], 0
mov byte [ebp - 4], 0x15
lea ecx, [esi + 0x10]
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
call fcn.1003b8a0
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 0x16
call fcn.1003b8a0
mov byte [ebp - 4], 0x17
mov ecx, esi
mov byte [esi + 0x40], 1
mov dword [esi + 0x44], 0
call fcn.100e8180
mov dword [esi], 0x10005ef4
jmp 0x1003c5f2
xor esi, esi
mov dword [ebx], esi
mov eax, dword [ebp - 0x18]
mov dword [ebx + 4], eax
test eax, eax
je 0x1003c602
lock inc dword [eax + 4]
lea edx, [ebx + 8]
mov dword [edx], 0
mov byte [ebp - 4], 0x1a
mov eax, dword [ebx]
cmp byte [eax + 0x40], 0
jne 0x1003c622
mov ecx, ebx
call fcn.100f13b0
jmp 0x1003c622
xor ebx, ebx
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0x14]
cmp ecx, ebx
je 0x1003c63a
test ecx, ecx
je 0x1003c637
push ecx
call fcn.10041650
mov dword [edi + 0x14], ebx
mov ecx, edi
call fcn.1003d220
mov dword [edi + 0x38], eax
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.101b6170
mov esp, ebp
pop ebp
ret