Function at 0x10038120
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ab3a7
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x101bf2c4]
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], 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.10037910
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], 0
fld dword [0x10035984]
lea ecx, [esi + 0x40]
fstp dword [ecx + 0xc]
fld dword [0x100358dc]
fstp dword [ecx + 0x10]
fld dword [0x10035d84]
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.1003dae0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 5
push eax
push 0x20019
xor edi, edi
push edi
push 0x10012120
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10038250
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
push 0x101c2f14
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 4
push eax
push 0
push dword [0x100076d0]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10038250
cmp dword [ebp - 0x1c], 4
jne 0x10038250
mov al, 1
jmp 0x10038252
xor al, al
mov byte [0x101c2f10], al
test edi, edi
je 0x10038262
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 - 0x20], edi
test edi, edi
je 0x1003829a
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.10037910
jmp 0x1003829c
xor edi, edi
mov ecx, dword [esi + 0x3c]
cmp ecx, edi
je 0x100382b0
test ecx, ecx
je 0x100382ad
push ecx
call fcn.1003d610
mov dword [esi + 0x3c], edi
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.100df9b0
mov esi, dword [ebp - 0x18]
push esi
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x101c43b0]
call edi
mov byte [ebp - 4], 5
mov ebx, eax
mov ecx, dword [esi]
push esi
mov dword [ebp - 0x20], ebx
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101c43b0]
call esi
mov edi, dword [ebp - 0x14]
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 0x1003833f
push 0x10038680
push 0x10038670
push dword [ebp - 0x20]
mov dword [eax], ebx
lea ebx, [eax + 4]
push 0xc
push ebx
call fcn.101aaf36
jmp 0x10038341
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x10038373
test eax, eax
je 0x10038370
push 0x10038680
lea esi, [eax - 4]
mov byte [ebp - 4], 0xb
push dword [esi]
push 0xc
push eax
call fcn.101aa7d4
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 - 0x20], ebx
cmp ebx, dword [edi + 8]
jae 0x100384ae
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call fcn.100df9b0
mov esi, dword [ebp - 0x18]
push ebx
push esi
mov eax, dword [esi]
mov edi, dword [eax + 0x3c]
mov ecx, edi
call dword [0x101c43b0]
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 [0x101c43b0]
call esi
mov eax, dword [ebp - 0x1c]
lea esi, [ebx + ebx*2]
mov ecx, ebx
mov dword [eax + esi*4], edi
call fcn.10038050
mov edi, dword [ebp - 0x1c]
mov dword [edi + esi*4 + 8], eax
cmp ebx, eax
jne 0x100384a5
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 - 0x1c], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x10038412
push ebx
mov ecx, eax
call fcn.100e6c00
mov esi, eax
jmp 0x10038414
xor esi, esi
lea eax, [ebx + ebx*2]
mov ecx, dword [edi + eax*4 + 4]
cmp ecx, esi
je 0x10038430
test ecx, ecx
je 0x1003842c
push ecx
call fcn.1003d320
lea eax, [ebx + ebx*2]
mov dword [edi + eax*4 + 4], esi
mov edi, dword [ebp - 0x14]
cmp dword [edi + 0xc], 0xffffffff
jne 0x10038453
mov dword [edi + 0xc], ebx
movzx eax, byte [0x101c2f10]
neg eax
sbb eax, eax
and eax, dword [0x101c2f14]
setne al
mov byte [edi + 0x18], al
mov dword [ebp - 4], 5
inc ebx
jmp 0x1003837c
mov edi, dword [ebp - 0x14]
inc ebx
jmp 0x1003837c
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 - 0x20], ebx
test ebx, ebx
je 0x10038508
mov dword [ebx + 4], 0
mov byte [ebp - 4], 0x12
lea ecx, [ebx + 8]
mov dword [ebx], 0x10001588
call fcn.10037910
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx], 0x10001568
mov dword [ebx + 0x30], 0x1dcd6500
jmp 0x1003850a
xor ebx, ebx
mov byte [ebp - 4], 5
test ebx, ebx
je 0x10038516
lock inc dword [ebx + 4]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x1003853e
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x1003853e
mov eax, dword [ecx]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x101c43b0]
mov ecx, dword [ebp - 0x20]
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 - 0x1c], ebx
mov byte [ebp - 4], 0x13
test ebx, ebx
je 0x100385f9
mov eax, dword [edi + 0x10]
push 1
push 0x50
mov dword [ebp - 0x20], eax
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov esi, eax
add esp, 8
mov dword [ebp - 0x18], esi
test esi, esi
je 0x100385c9
mov dword [esi], 0x10005c54
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.10037910
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 0x16
call fcn.10037910
mov byte [ebp - 4], 0x17
mov ecx, esi
mov byte [esi + 0x40], 1
mov dword [esi + 0x44], 0
call fcn.100dfb60
mov dword [esi], 0x10005c54
jmp 0x100385cb
xor esi, esi
mov dword [ebx], esi
mov eax, dword [ebp - 0x20]
mov dword [ebx + 4], eax
test eax, eax
je 0x100385db
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 0x100385fb
mov ecx, ebx
call fcn.100e8f60
jmp 0x100385fb
xor ebx, ebx
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0x14]
cmp ecx, ebx
je 0x10038613
test ecx, ecx
je 0x10038610
push ecx
call fcn.1003d320
mov dword [edi + 0x14], ebx
mov ecx, edi
call fcn.100391c0
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