Function at 0x100121d0
Capabilities:
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10014881
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x1001c048]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001c048]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov eax, dword [esp + 0x278]
lea edx, [esp + 0x40]
push edx
push eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x100122c1
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x1c]
push eax
call fcn.10007ac0
xor ebp, ebp
mov dword [esp + 0x270], ebp
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
cmp byte [esp + 0x27c], 0
push 0x20019
jne 0x100122c8
lea edx, [esp + 0x28]
push edx
mov eax, str.SoftwareAutodeskDWGCommonShellExApps
mov ecx, SysReAllocString
call fcn.10005610
cmp eax, ebp
je 0x10012310
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x10012296
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100122c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x100124ba
lea ecx, [esp + 0x28]
push ecx
mov eax, str.AutoCAD.DrawingShellCommon_shellex_apps
mov ecx, SysReAllocString
call fcn.10005610
cmp eax, ebp
je 0x10012310
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x100122ef
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x100122b5
xor ebx, ebx
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov byte [esp + 0x270], 2
mov byte [esp + 0x17], bl
mov dword [esp + 0x20], ebp
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x24]
push ebp
push ebp
push ebp
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x78]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x10012433
lea edx, [esp + 0x3c]
push edx
push 0x20019
push ebp
lea eax, [esp + 0x70]
push eax
push esi
mov dword [esp + 0x50], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x10012421
xor eax, eax
cmp ebx, ebp
je 0x10012393
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
cmp eax, ebp
jne 0x10012421
push 0x10017cc8
lea ecx, [esp + 0x34]
push ecx
lea edi, [esp + 0x20]
lea esi, [esp + 0x6c]
mov dword [esp + 0x20], 0x100
call fcn.10012f40
cmp eax, ebp
jne 0x10012404
lea edx, [esp + 0x54]
push edx
mov eax, esi
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x10012404
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x54]
mov ecx, 0x10
sub edx, eax
jmp 0x100123f0
cmp ecx, 4
jb 0x1001242a
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x10012404
sub ecx, 4
add eax, 4
jmp 0x100123f0
mov dword [esp + 0x18], 0x100
cmp ebx, ebp
je 0x1001241d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebp
inc dword [esp + 0x20]
jmp 0x10012336
mov esi, dword [esp + 0x24]
mov byte [esp + 0x17], 1
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebp
je 0x10012446
push esi
call edi
mov dword [esp + 0x24], ebp
mov esi, ebp
cmp byte [esp + 0x17], 0
mov dword [esp + 0x28], ebp
jne 0x10012468
cmp ebx, ebp
je 0x10012458
push ebx
call edi
cmp esi, ebp
je 0x10012296
push esi
call edi
jmp 0x10012296
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.10011a40
mov bl, al
mov eax, dword [esp + 0x34]
add esp, 4
cmp eax, ebp
je 0x10012486
push eax
call edi
cmp esi, ebp
je 0x1001248d
push esi
call edi
mov dword [esp + 0x270], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100124b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.100134d2
add esp, 0x260
ret