Function at 0x405d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5efb23
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x6b7e40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x808], ebx
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebp - 0x7f8], ebx
mov dword [ebp - 0x830], edi
call dword [eax + 0x10]
add ebx, 0x1c
push ebx
mov dword [ebp - 0x810], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - method.CCriticalSectionAccess.virtual_0], vtable.CCriticalSectionAccess.0
mov dword [ebp - 0x838], ebx
test ebx, ebx
je 0x405df8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, 1
mov dword [ebp - 0x834], ebx
mov dword [ebp - 4], 0
mov ecx, dword [edi]
call fcn.00414b70
test al, al
jne 0x405e33
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov esi, esp
push eax
call fcn.004046f0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00415120
add esp, 4
push 0x63bfdc
lea ecx, [ebp - 0x800]
call fcn.004021e0
push 0x63bfdc
lea ecx, [ebp - 0x7fc]
mov byte [ebp - 4], 1
call fcn.004021e0
push str.20160_40100_1100
lea ecx, [ebp - 0x7fc]
mov byte [ebp - 4], 2
call fcn.00404410
push 0x63bfdc
lea ecx, [ebp - 0x804]
call fcn.004021e0
push 0x63ca44
lea ecx, [ebp - 0x7e8]
mov byte [ebp - 4], 3
call fcn.004021e0
push str.SoftwareSolidWorksIM
lea ecx, [ebp - 0x80c]
mov byte [ebp - 4], 4
call fcn.004021e0
mov byte [ebp - 4], 5
xor eax, eax
mov word [ebp - 0x7e4], ax
lea eax, [ebp - 0x7f0]
push eax
push 0x20019
push 0
push dword [ebp - 0x80c]
mov dword [ebp - 0x7f4], 0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x814], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405f5b
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x7f4]
push eax
push 0
push dword [ebp - 0x7e8]
push dword [ebp - 0x7f0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x7f0]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x405f5b
lea ecx, [ebp - 0x7e4]
lea edx, [ecx + 2]
jmp 0x405f30
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405f30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x7e4]
push eax
lea ecx, [ebp - 0x804]
call fcn.00402090
mov byte [ebp - 0x7e9], 1
jmp 0x405f62
mov byte [ebp - 0x7e9], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x80c]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x405f88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x7e8]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405fab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x7e9], 0
je 0x4060b4
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x7fc]
call fcn.00404570
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x405fe6
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x7f0], eax
mov byte [ebp - 4], 6
push dword [ebp - 0x7fc]
lea eax, [ebp - 0x7f0]
push str.OVERRIDING_SUITE_VERSION_via_registry:__s
push eax
call fcn.00404520
add esp, 0xc
lea ecx, [ebp - 0x7e8]
push 0x63bfdc
call fcn.004021e0
xor ecx, ecx
call fcn.004051a0
mov edi, eax
push ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x7e8]
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 - 0x7f0]
push eax
push 0x1f7
push str.C:_amintegration_tools_setupishield_sldim_baseErrorLogger.cpp
push 0
push 1
mov ecx, edi
call fcn.004055a0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x7e8]
add edx, 0xfffffff0
or edi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406091
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x7f0]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4060b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.sldBgDwldLog
lea ecx, [ebp - 0x7e8]
call fcn.004021e0
mov byte [ebp - 4], 8
push dword [ebp - 0x7e8]
lea eax, [ebp - 0x800]
push 0x63d200
push eax
call fcn.00404520
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x7e8]
add edx, 0xfffffff0
add esp, 0xc
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406105
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x814], esp
push str..txt
call fcn.004021e0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x800]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x7e8], esp
mov esi, esp
push eax
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x830]
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
sub eax, 0x10
mov esi, esp
push eax
call fcn.004046f0
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov edx, 5
lea ecx, [ebp - 0x7f4]
mov byte [ebp - 4], 3
call fcn.0041b510
add esp, 0x10
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x808]
push eax
lea ecx, [esi + 0x14]
call fcn.00404570
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x7f4]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4061a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x20
call fcn.004996c9
add esp, 4
mov dword [ebp - 0x808], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x4061d8
mov ecx, eax
call fcn.004b0715
mov eax, dword [ebp - 0x808]
mov dword [eax], vtable.CStdioFileT.0
mov byte [eax + 0x18], 0
jmp 0x4061da
xor eax, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x82c]
mov dword [esi + 8], eax
call fcn.004a3f99
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x406212
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0xffffffff
call fcn.00401e60
mov byte [ebp - 4], 0xe
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x82c]
mov eax, dword [ecx]
push edx
push 0x25041
push dword [esi + 0x14]
call dword [eax + 0x24]
test eax, eax
jne 0x40636f
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x406280
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x7f0], eax
lea edx, [ebp - 0x82c]
lea ecx, [ebp - 0x7e8]
mov byte [ebp - 4], 0x10
call fcn.0041f510
mov byte [ebp - 4], 0x11
push dword [ebp - 0x7e8]
lea eax, [ebp - 0x7f0]
push dword [esi + 0x14]
push str.Error_opening_log_file__s:__s
push eax
call fcn.00404520
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x7e8]
add edx, 0xfffffff0
add esp, 0x10
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4062e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xf
jmp 0x40633d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40634b
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 8], 0
mov esi, dword [ebp - 0x7f0]
sub esp, 0x14
mov edx, 0x10
mov ecx, esi
call fcn.0041d330
add esp, 0x14
jmp 0x40640d
lea ecx, [ebp - 0x818]
call fcn.00407580
call fcn.004a4516
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x406396
push 0x80004005
call fcn.00402040
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x7f8], eax
push str._A___B__d___Y___H:_M:_S
lea eax, [ebp - 0x7f4]
push eax
lea ecx, [ebp - 0x818]
mov byte [ebp - 4], 0x13
call fcn.00404370
mov byte [ebp - 4], 0x14
push dword [eax]
lea eax, [ebp - 0x7f8]
push str.SOLIDWORKS_Background_Downloader_Log______s_n_n_________________________________________n_TYPE_tMID__LEVEL__SOURCE_FILENAME_LINE__TIME___MESSAGE_n_________________________________________n_n
push eax
call fcn.00404520
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x7f4]
add edx, 0xfffffff0
add esp, 0xc
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4063fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 8]
mov esi, dword [ebp - 0x7f8]
mov eax, dword [ecx]
push esi
call dword [eax + 0x58]
add esi, 0xfffffff0
mov ecx, edi
lea eax, [esi + 0xc]
mov byte [ebp - 4], 0xe
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40642a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x81c]
add edx, 0xfffffff0
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406457
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x804]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40647a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x7fc]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40649d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x800]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4064be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jle 0x4064da
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x4064d5
push eax
call esi
dec ebx
test ebx, ebx
jg 0x4064c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005bc16b
mov esp, ebp
pop ebp
ret 8