Function at 0x404720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e4c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push esi
push edi
lea eax, [esp + 0x14]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareAutodeskSubscriptionCenterProfile
push SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x404783
mov al, 1
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, ebx
je 0x4047a0
xor al, al
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00418935
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
call fcn.00418935
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp + 0x244], ebx
lea ecx, [ecx]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebx
push eax
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
mov dword [esp + 0x1c], esi
jne 0x4048d6
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc edi
push ecx
mov dword [esp + 0x1c], edi
call fcn.0041468f
mov edi, eax
add esp, 4
test edi, edi
je 0x4048cd
lea edx, [esp + 0x20]
push edx
push edi
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x20]
push esi
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebx
push eax
mov dword [esp + 0x44], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], esi
jne 0x4048b6
cmp eax, 1
jne 0x4048bb
lea ecx, [esp + 0x38]
push str.UserID
push ecx
call fcn.004096ad
add esp, 8
test eax, eax
jne 0x40488c
mov ecx, dword [ebp + 8]
push edi
add ecx, 0x40
call fcn.00401990
jmp 0x4048c4
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x2c]
call fcn.00401990
push edi
lea ecx, [esp + 0x30]
call fcn.00401990
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 8]
add eax, 0x58
call fcn.00405f80
jmp 0x4048c4
cmp eax, 1
je 0x4048c4
mov esi, 0xd
mov dword [esp + 0x1c], esi
push edi
call fcn.0041468a
add esp, 4
inc ebx
test esi, esi
je 0x4047d0
cmp esi, 0x103
je 0x4048e8
mov byte [esp + 0x13], 0
jmp 0x404983
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx - 0xc]
test eax, eax
mov byte [esp + 0x13], 1
jne 0x404983
push str.UserID
lea ecx, [esp + 0x34]
call fcn.00401610
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x24c], 1
call fcn.004078f0
mov eax, dword [esp + 0x38]
xor ebx, ebx
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x244], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404955
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
cmp dword [eax - 0xc], ebx
jne 0x404969
cmp dword [esp + 0x1c], 2
je 0x404969
mov byte [esp + 0x13], bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404983
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x244], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4049d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x23c]
mov al, byte [esp + 0x13]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4