Function at 0x405710
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x407341
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x40b01c]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40b01c]
xor eax, esp
push eax
lea eax, [esp + 0x264]
mov dword fs:[0], eax
mov eax, dword [esp + 0x274]
lea edx, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
call dword [0x4081d4]
test eax, eax
jne 0x405937
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x28]
push eax
call fcn.00404c90
xor ebp, ebp
mov dword [esp + 0x26c], ebp
mov ecx, dword [esp + 0x34]
push ecx
call dword [0x4081d8]
lea edx, [esp + 0x20]
push edx
push 0x20019
push ebp
push str.SoftwareAutodeskDWGCommonShellExApps
push 0x80000001
mov dword [esp + 0x34], ebp
call dword [0x408008]
cmp eax, ebp
jne 0x40590c
mov esi, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x1c], edi
mov byte [esp + 0x26c], 2
mov byte [esp + 0x1b], 0
mov dword [esp + 0x2c], ebp
mov edi, edi
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x30]
push ebp
push ebp
push ebp
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x70]
push eax
push ecx
push esi
call dword [0x40800c]
cmp eax, 0x103
je 0x405976
lea edx, [esp + 0x38]
push edx
push 0x20019
push ebp
lea eax, [esp + 0x68]
push eax
push esi
mov dword [esp + 0x4c], ebp
call dword [0x408008]
cmp eax, ebp
jne 0x40595f
xor eax, eax
cmp edi, ebp
je 0x405839
push edi
call dword [section..rdata]
cmp eax, ebp
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x1c], ebx
jne 0x40595f
push 0x4084f8
lea ecx, [esp + 0x20]
push ecx
lea edi, [esp + 0x2c]
lea esi, [esp + 0x64]
mov dword [esp + 0x2c], 0x100
call fcn.00406070
cmp eax, ebp
jne 0x405944
lea edx, [esp + 0x4c]
push edx
mov eax, esi
push eax
call dword [0x4081d0]
test eax, eax
jne 0x405944
mov ecx, dword [esp + 0x3c]
mov eax, 0x10
lea edx, [esp + 0x4c]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4058af
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x405893
cmp eax, ebp
je 0x40593e
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4058fe
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x40593e
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4058fe
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x40593e
movzx esi, byte [edx]
movzx edi, byte [ecx]
sub esi, edi
jne 0x4058fe
sub eax, 1
add ecx, 1
add edx, 1
cmp eax, ebp
je 0x40593e
movzx esi, byte [edx]
movzx ecx, byte [ecx]
sub esi, ecx
je 0x40593e
cmp esi, ebp
mov eax, 1
jg 0x405940
or eax, 0xffffffff
jmp 0x405940
mov dword [esp + 0x26c], 0xffffffff
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 0x405937
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x405a2e
xor eax, eax
cmp eax, ebp
je 0x40596d
cmp ebx, ebp
mov dword [esp + 0x24], 0x100
je 0x40595b
push ebx
call dword [section..rdata]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x20]
add dword [esp + 0x2c], 1
mov edi, dword [esp + 0x1c]
jmp 0x4057e0
mov esi, dword [esp + 0x20]
mov byte [esp + 0x1b], 1
cmp esi, ebp
je 0x405989
push esi
mov esi, dword [section..rdata]
call esi
mov dword [esp + 0x30], ebp
jmp 0x40598f
mov esi, dword [section..rdata]
cmp byte [esp + 0x1b], 0
jne 0x4059d0
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x4059a1
push eax
call esi
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x4059ac
push eax
call esi
mov dword [esp + 0x26c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40592b
mov ecx, dword [esp + 0x40]
push ecx
lea ecx, [esp + 0x20]
call fcn.00405440
mov bl, al
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, ebp
je 0x4059f2
push eax
call dword [section..rdata]
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x405a01
push eax
call dword [section..rdata]
mov dword [esp + 0x26c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x405a2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0040694a
add esp, 0x25c
ret