Function at 0x100389c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bba80
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x101d32d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], 0x10001338
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.100380b0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], 0
lea ecx, [esi + 0x40]
fld dword [0x10035b7c]
fstp dword [ecx + 0xc]
fld dword [0x10035ad4]
fstp dword [ecx + 0x10]
fld dword [0x10035f7c]
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.1003e940
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 6
push eax
push 0x20019
xor edi, edi
push edi
push 0x100123f8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10038af0
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push 0x101d6f74
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], 4
push eax
push 0
push dword [0x10007798]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10038af0
cmp dword [ebp - 0x20], 4
jne 0x10038af0
mov al, 1
jmp 0x10038af2
xor al, al
mov byte [0x101d6f70], al
test edi, edi
je 0x10038b02
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 - 0x24], edi
test edi, edi
je 0x10038b3a
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 0xa
call fcn.100380b0
jmp 0x10038b3c
xor edi, edi
mov ecx, dword [esi + 0x3c]
cmp ecx, edi
je 0x10038b50
test ecx, ecx
je 0x10038b4d
push ecx
call fcn.1003e400
mov dword [esi + 0x3c], edi
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.100e98b0
mov esi, dword [ebp - 0x18]
push esi
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x101d83dc]
call edi
mov ebx, eax
mov byte [ebp - 4], 0xc
test esi, esi
je 0x10038b90
mov ecx, dword [esi]
push esi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101d83dc]
call esi
xor ecx, ecx
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x14]
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 0x10038be2
push 0x10038f80
push 0x10038f70
push ebx
lea esi, [eax + 4]
mov dword [eax], ebx
push 0xc
push esi
call fcn.101bafce
jmp 0x10038be4
xor esi, esi
mov ecx, dword [edi + 4]
cmp ecx, esi
je 0x10038bf8
test ecx, ecx
je 0x10038bf5
push ecx
call fcn.10038f00
mov dword [edi + 4], esi
mov dword [edi + 0xc], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp ebx, dword [edi + 8]
jae 0x10038d3a
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.100e98b0
mov esi, dword [ebp - 0x18]
push ebx
push esi
mov eax, dword [esi]
mov edi, dword [eax + 0x3c]
mov ecx, edi
call dword [0x101d83dc]
call edi
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xe
test esi, esi
je 0x10038c58
mov ecx, dword [esi]
push esi
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101d83dc]
call esi
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 6
lea esi, [ebx + ebx*2]
mov edi, dword [ebp - 0x24]
mov ecx, ebx
mov dword [edi + esi*4], eax
call fcn.100388f0
mov dword [edi + esi*4 + 8], eax
cmp ebx, eax
jne 0x10038d31
push 1
push 0xc
mov byte [ebp - 4], 0xf
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
add esp, 8
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x10038c9e
push ebx
mov ecx, eax
call fcn.100f0b40
jmp 0x10038ca0
xor eax, eax
mov ecx, dword [edi + esi*4 + 4]
mov dword [ebp - 0x18], eax
cmp ecx, eax
je 0x10038cbc
test ecx, ecx
je 0x10038cb8
push ecx
call fcn.1003e020
mov eax, dword [ebp - 0x18]
mov dword [edi + esi*4 + 4], eax
mov edi, dword [ebp - 0x14]
cmp dword [edi + 0xc], 0xffffffff
jne 0x10038cdf
mov dword [edi + 0xc], ebx
movzx eax, byte [0x101d6f70]
neg eax
sbb eax, eax
and eax, dword [0x101d6f74]
setne al
mov byte [edi + 0x18], al
mov dword [ebp - 4], 6
inc ebx
jmp 0x10038c01
mov edi, dword [ebp - 0x14]
inc ebx
jmp 0x10038c01
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 - 0x24], ebx
test ebx, ebx
je 0x10038d94
mov dword [ebx + 4], 0
mov byte [ebp - 4], 0x14
lea ecx, [ebx + 8]
mov dword [ebx], 0x1000166c
call fcn.100380b0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx], 0x1000164c
mov dword [ebx + 0x30], 0x1dcd6500
jmp 0x10038d96
xor ebx, ebx
mov byte [ebp - 4], 6
test ebx, ebx
je 0x10038da2
lock inc dword [ebx + 4]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x10038dca
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x10038dca
mov eax, dword [ecx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x101d83dc]
mov ecx, dword [ebp - 0x24]
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], 0x15
test ebx, ebx
je 0x10038e85
mov eax, dword [edi + 0x10]
push 1
push 0x50
mov dword [ebp - 0x24], 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 0x10038e55
mov dword [esi], 0x10005d38
mov dword [esi + 4], 0
mov byte [ebp - 4], 0x17
lea ecx, [esi + 0x10]
mov dword [esi + 8], 0
mov byte [esi + 0xc], 0
call fcn.100380b0
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 0x18
call fcn.100380b0
mov byte [ebp - 4], 0x19
mov ecx, esi
mov byte [esi + 0x40], 1
mov dword [esi + 0x44], 0
call fcn.100e9ac0
mov dword [esi], 0x10005d38
jmp 0x10038e57
xor esi, esi
mov dword [ebx], esi
mov eax, dword [ebp - 0x24]
mov dword [ebx + 4], eax
test eax, eax
je 0x10038e67
lock inc dword [eax + 4]
lea edx, [ebx + 8]
mov dword [edx], 0
mov byte [ebp - 4], 0x1c
mov eax, dword [ebx]
cmp byte [eax + 0x40], 0
jne 0x10038e87
mov ecx, ebx
call fcn.100f2f70
jmp 0x10038e87
xor ebx, ebx
mov byte [ebp - 4], 6
mov ecx, dword [edi + 0x14]
cmp ecx, ebx
je 0x10038e9f
test ecx, ecx
je 0x10038e9c
push ecx
call fcn.1003e020
mov dword [edi + 0x14], ebx
mov ecx, edi
call fcn.10039ab0
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 esp, ebp
pop ebp
ret