Function at 0x469060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f9edd
mov eax, dword fs:[0]
push eax
sub esp, 0xc20
mov eax, dword [0x6b7e40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xbf4], esi
lea eax, [ebp - 0xc18]
push eax
push 0x20019
push 0
push str.SoftwareSolidWorksIM
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x469179
push str.INTERNAL_ERROR:_DumpIMKeys_unable_to_enumerate_IM_keys
lea ecx, [ebp - 0xbf4]
call fcn.004021e0
push 0x63bfdc
lea ecx, [ebp - 0xbf8]
mov dword [ebp - 4], 0
call fcn.004021e0
xor ecx, ecx
call fcn.004051a0
mov edi, eax
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xbf8]
add ecx, 0xfffffff0
mov esi, esp
push ecx
call fcn.004046f0
add esp, 4
add eax, 0x10
push 0
push 0
mov dword [esi], eax
lea eax, [ebp - 0xbf4]
push eax
push 0xd97
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 1
push 1
mov ecx, edi
call fcn.004055a0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xbf8]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x46914c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xbf4]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x46952c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46952c
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0xc10], eax
or ebx, 0xffffffff
lea ecx, [ebp - 0xc28]
push ecx
lea ecx, [ebp - 0xbf0]
push ecx
lea ecx, [ebp - 0xc24]
push ecx
push 0
lea ecx, [ebp - 0xc2c]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push dword [ebp - 0xc18]
mov edx, 0x30
mov dword [ebp - 0xc24], 1
mov word [ebp - 0x218], dx
mov dword [ebp - 0xc2c], 0x104
mov dword [ebp - 0xc28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0xc14], eax
test eax, eax
jne 0x46950a
call fcn.004a4516
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x469548
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0xbfc], eax
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xc24]
cmp eax, 1
jne 0x4693bf
push str.Unknown
lea ecx, [ebp - 0xbf8]
call fcn.004021e0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc1c]
mov byte [ebp - 4], 3
call fcn.004021e0
push str.SoftwareSolidWorksIM
lea ecx, [ebp - 0xc0c]
mov byte [ebp - 4], 4
call fcn.004021e0
mov byte [ebp - 4], 5
xor eax, eax
mov word [ebp - 0x9e8], ax
lea eax, [ebp - 0xc20]
push eax
push 0x20019
push 0
push dword [ebp - 0xc0c]
mov dword [ebp - 0xc04], 0
push esi
mov dword [ebp - 0xc00], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x469318
lea eax, [ebp - 0xc00]
push eax
lea eax, [ebp - 0x9e8]
push eax
lea eax, [ebp - 0xc04]
push eax
push 0
push dword [ebp - 0xc1c]
push dword [ebp - 0xc20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc20]
mov esi, eax
call edi
test esi, esi
jne 0x469312
lea eax, [ebp - 0x9e8]
lea edx, [eax + 2]
jmp 0x4692f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4692f0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x9e8]
push eax
lea ecx, [ebp - 0xbf8]
call fcn.00402090
mov esi, dword [ebp - 0xbf4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0xc0c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46933b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xc1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46935e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0xbf8]
lea eax, [ebp - 0x218]
push eax
mov ecx, str.HKLM
mov eax, str.HKCU
cmp esi, 0x80000001
cmovne eax, ecx
push eax
lea eax, [ebp - 0xbfc]
push str.IM__s__s____s_
push eax
call fcn.00404520
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xbf8]
add edx, 0xfffffff0
add esp, 0x14
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46945e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x46945e
cmp eax, 4
jne 0x46942f
mov dword [ebp - 0xc04], eax
push ecx
lea eax, [ebp - 0xc00]
push eax
lea eax, [ebp - 0xc04]
push eax
lea eax, [ebp - 0x218]
push eax
mov edx, str.SoftwareSolidWorksIM
mov ecx, esi
mov dword [ebp - 0xc00], 0xfffffc19
call fcn.00417820
mov eax, dword [ebp - 0xc00]
push eax
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, str.HKLM
mov eax, str.HKCU
cmp esi, 0x80000001
cmovne eax, ecx
push eax
lea eax, [ebp - 0xbfc]
push str.IM__s__s___d__0x_x_
push eax
call fcn.00404520
add esp, 0x28
jmp 0x46945e
lea eax, [ebp - 0x218]
push eax
mov ecx, str.HKLM
mov eax, str.HKCU
cmp esi, 0x80000001
cmovne eax, ecx
push eax
lea eax, [ebp - 0xbfc]
push str.IM__s__s__ERROR:_UNKNOWN_TYPE
push eax
call fcn.00404520
add esp, 0x10
push 0x63bfdc
lea ecx, [ebp - 0xc08]
call fcn.004021e0
xor ecx, ecx
call fcn.004051a0
mov edi, eax
push ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xc08]
add ecx, 0xfffffff0
mov esi, esp
push ecx
call fcn.004046f0
add esp, 4
add eax, 0x10
push 0
push 0
mov dword [esi], eax
lea eax, [ebp - 0xbfc]
push eax
push 0xdc2
push str.C:_amintegration_tools_setupishield_sldim_sldbgdwldBgDwldManager.cpp
push 0
push 1
mov ecx, edi
call fcn.004055a0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xc08]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4694d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xbfc]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4694fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0xbf4]
mov eax, dword [ebp - 0xc10]
inc eax
cmp dword [ebp - 0xc14], 0
mov dword [ebp - 0xc10], eax
je 0x46918a
push dword [ebp - 0xc18]
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402040
int3