Function at 0x406a60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bbc6
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x45604c]
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 edi, edx
mov dword [ebp - 0x330], edi
lea ecx, [ebp - 0x32c]
call fcn.00405f90
push 1
lea ecx, [ebp - 0x324]
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x328], 0
call fcn.004065a0
cmp byte [ebp - 0x210], 0
lea eax, [ebp - 0x320]
cmove eax, dword [ebp - 0x324]
xor ecx, ecx
mov word [eax + 4], cx
mov dword [ebp - 4], ecx
mov byte [ebp - 0x338], cl
mov dword [ebp - 0x33c], ecx
lea ecx, [ebp - 0x1fc]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
call fcn.00405f90
mov esi, str.MACHINE
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 0x80000002
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x406b20
sub esi, ecx
lea ecx, [ebp - 0x1f4]
sar esi, 1
mov dword [ebp - 0x1f8], esi
inc esi
push esi
call fcn.004065a0
cmp byte [ebp - 0xe0], 0
lea eax, [esi + esi]
lea ecx, [ebp - 0x1f0]
cmove ecx, dword [ebp - 0x1f4]
push eax
add ecx, 4
push str.MACHINE
push ecx
call fcn.00423330
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x204]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x406b82
push eax
call esi
push 0x44a728
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x204], 0
push 0x44ea78
push eax
call fcn.004063a0
push str.SoftwareSogouInput
lea eax, [ebp - 0x1fc]
push 0x44ea78
push eax
call fcn.004063a0
add esp, 0x18
lea eax, [ebp - 0x204]
push eax
push 0x20019
push 0
push str.SoftwareSogouInput
push dword [ebp - 0x200]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x334], eax
test eax, eax
je 0x406c9e
cmp byte [ebp - 0xe0], 0
lea ebx, [ebp - 0x1f0]
push 0x128
cmove ebx, dword [ebp - 0x1f4]
call fcn.00421b46
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x330], esi
call fcn.00405f90
push dword [ebp - 0x334]
mov ecx, esi
mov dword [esi + 0x124], 0
mov dword [ebp - 0x33c], esi
call fcn.00407220
lea edi, [esi + 0x124]
mov esi, dword [edi]
test esi, esi
jne 0x406c35
push 0x128
call fcn.00421b46
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x330], esi
call fcn.00405f90
push 0x450584
push 0x44ea78
mov dword [esi + 0x124], 0
push esi
mov dword [edi], esi
call fcn.004063a0
lea eax, [ebx + 4]
push eax
push 0x44ea78
push esi
call fcn.004063a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x18
mov edi, dword [ebp - 0x33c]
xor bl, bl
jmp 0x406f10
lea ebx, [edi + 8]
mov dword [edi + 0x120], 0x105
push 0x105
mov ecx, ebx
call fcn.004065a0
cmp byte [ebx + 0x114], 0
lea eax, [ebx + 4]
jne 0x406cc5
mov eax, dword [ebx]
lea ecx, [ebp - 0x344]
mov dword [ebp - 0x334], 0
push ecx
add eax, 4
mov dword [ebp - 0x344], 0x208
push eax
lea eax, [ebp - 0x334]
push eax
push 0
push 0
push dword [ebp - 0x204]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x348], eax
test eax, eax
je 0x406dc1
cmp byte [ebp - 0xe0], 0
lea eax, [ebp - 0x1f0]
push 0x128
cmove eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x34c], eax
call fcn.00421b46
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x340], esi
call fcn.00405f90
push dword [ebp - 0x348]
mov ecx, esi
mov dword [esi + 0x124], 0
mov dword [ebp - 0x33c], esi
call fcn.00407220
nop dword [eax]
lea edi, [esi + 0x124]
mov esi, dword [edi]
test esi, esi
jne 0x406d60
push 0x128
call fcn.00421b46
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x340], esi
call fcn.00405f90
push 0x450598
push 0x44ea78
mov dword [esi + 0x124], 0
push esi
mov dword [edi], esi
call fcn.004063a0
mov eax, dword [ebp - 0x34c]
add eax, 4
push eax
push 0x44ea78
push esi
call fcn.004063a0
mov edi, dword [ebp - 0x33c]
jmp 0x406e27
cmp dword [ebp - 0x334], 1
je 0x406e87
cmp byte [ebp - 0xe0], 0
lea esi, [ebp - 0x1f0]
push 0x128
cmove esi, dword [ebp - 0x1f4]
call fcn.00421b46
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x340], edi
call fcn.00405f90
push 0x4505a8
push 0x44ea78
push edi
mov dword [edi + 0x124], 0
call fcn.004063a0
lea eax, [esi + 4]
push eax
push 0x44ea78
push edi
call fcn.004063a0
mov eax, dword [ebp - 0x330]
add esp, 0x18
cmp dword [eax + 0x120], 0
je 0x406e43
mov dword [eax + 0x120], 0
push 1
mov ecx, ebx
mov dword [eax + 4], 0
call fcn.004065a0
cmp byte [ebx + 0x114], 0
je 0x406e72
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 4
xor eax, eax
mov word [ebx + 4], ax
xor bl, bl
jmp 0x406f10
mov ebx, dword [ebx]
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [ebx + 4], ax
xor bl, bl
jmp 0x406f10
mov ecx, edi
call fcn.004062c0
push 0xc8
lea eax, [ebp - 0xd8]
push 0
push eax
call fcn.00423c20
add esp, 0xc
mov dword [ebp - 0x330], 0xc8
lea eax, [ebp - 0x330]
lea ecx, [ebp - 0x208]
push 1
push str.Version
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x33c]
push eax
call fcn.0040bda0
test al, al
jne 0x406ee3
mov edi, dword [ebp - 0x33c]
xor bl, bl
jmp 0x406f10
push 0x44a728
push 0x44ea78
push edi
call fcn.004063a0
lea eax, [ebp - 0xd8]
push eax
push 0x44ea78
push edi
call fcn.004063a0
mov edi, dword [ebp - 0x33c]
add esp, 0x18
mov bl, 1
mov eax, dword [ebp - 0x204]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
test eax, eax
je 0x406f27
push eax
call esi
cmp byte [ebp - 0xe0], 0
mov dword [ebp - 0x204], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x406f5d
mov eax, dword [ebp - 0x1f4]
lea ecx, [ebp - 0x1f0]
cmp eax, ecx
je 0x406f5d
push eax
call fcn.00429847
add esp, 4
test edi, edi
je 0x406fa1
mov esi, edi
mov edi, dword [esi + 0x124]
test esi, esi
je 0x406f9d
mov dword [esi], vtable.t_str.0
cmp byte [esi + 0x11c], 0
jne 0x406f8f
mov ecx, dword [esi + 8]
lea eax, [esi + 0xc]
cmp ecx, eax
je 0x406f8f
push ecx
call fcn.00429847
add esp, 4
push 0x128
push esi
call fcn.00421b76
add esp, 8
test edi, edi
jne 0x406f61
cmp byte [ebp - 0x210], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x406fcd
mov eax, dword [ebp - 0x324]
lea ecx, [ebp - 0x320]
cmp eax, ecx
je 0x406fcd
push eax
call fcn.00429847
add esp, 4
mov al, bl
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.00421dd5
mov esp, ebp
pop ebp
ret