Function at 0x406150
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43be28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44d37c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [ebp + 0x3c], 0x10c0101
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x18]
push eax
push 0x2001f
push ebx
push str.SOFTWAREZTEICTSMTCS
push SysStringLen
mov dword [esp + 0x48], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4061c9
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
lea edx, [esp + 0x1c]
push edx
push str.InstallPath
lea esi, [ebp + 0x48]
push esi
lea ecx, [esp + 0x30]
call fcn.00405a60
test eax, eax
je 0x4061fe
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push esi
call fcn.00429080
add esp, 8
mov byte [eax], bl
lea eax, [ebp + 0x14c]
mov edi, eax
mov ecx, esi
sub edi, esi
lea ebx, [ebx]
mov dl, byte [ecx]
mov byte [edi + ecx], dl
inc ecx
cmp dl, bl
jne 0x406210
dec eax
jmp 0x406220
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x406220
mov ecx, dword [str.TCSReg.dat]
mov dword [eax], ecx
mov edx, dword [0x43fe40]
mov dword [eax + 4], edx
mov ecx, dword [0x43fe44]
mov dword [eax + 8], ecx
mov ecx, ebp
call fcn.0040d640
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x20]
push edx
add esi, 0x44
push esi
lea eax, [esp + 0x20]
push eax
push ebx
push str.OutBuffer
mov ebp, 4
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebp
call edi
cmp dword [esp + 0x18], ebp
jne 0x406285
cmp eax, ebx
je 0x40628b
mov dword [esi], 0x800
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
add esi, 0x40
push esi
lea eax, [esp + 0x20]
push eax
push ebx
push str.LoadedKey
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], ebp
call edi
cmp dword [esp + 0x18], ebp
jne 0x4062bc
cmp eax, ebx
je 0x4062c2
mov dword [esi], 8
mov edi, dword [esp + 0x24]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x4062d9
push edi
call ebp
mov dword [esp + 0x24], ebx
mov edi, ebx
cmp dword [esi], 8
mov dword [esp + 0x28], ebx
jbe 0x4062e8
mov dword [esi], 8
cmp byte [0x44c653], 1
jne 0x406374
mov esi, 0x44ea60
lea ebx, [ebx]
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0041d007
add esi, 0x14
cmp esi, 0x44ec40
jl 0x406300
push 0xffffffffffffffff
push ebx
mov ecx, 0x44ec40
mov dword [0x44ea48], ebx
call fcn.0041d007
mov eax, dword [0x44ea54]
xor esi, esi
cmp eax, ebx
jle 0x406361
cmp esi, ebx
jl 0x4063c9
cmp esi, eax
jge 0x4063c9
mov edx, dword [0x44ea50]
mov ecx, dword [edx + esi*4]
push 0xffffffffffffffff
push ebx
add ecx, 0x10
call fcn.0041d007
mov eax, dword [0x44ea54]
inc esi
cmp esi, eax
jl 0x406333
push 0xffffffffffffffff
push ebx
mov ecx, 0x44ea4c
call fcn.0041d007
mov byte [0x44c653], bl
call dword [sym.imp.TCMTddl.dll_Tddli_Close]
call dword [sym.imp.TCMTddl.dll_Tddli_Open]
push str.TCSKeyDBEventHandle
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov esi, dword [esp + 0x14]
mov dword [esi + 0x38], eax
cmp eax, ebx
jne 0x4063ae
push str.TCSKeyDBEventHandle
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x38], eax
cmp edi, ebx
je 0x4063b5
push edi
call ebp
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
call fcn.0041cdbb
int3