Function at 0x40a910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5011
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x519220]
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 ebx, dword [ebp + 8]
lea ecx, [ebp - 0x134]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
call fcn.00403e10
push str.MACHINE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x140]
call fcn.004262d0
push 1
push 0
push 0
push str.SoftwareSogouInput
push ebx
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], 0
call fcn.00426590
test al, al
jne 0x40a9a2
push 0x5026c0
mov ecx, ebx
call fcn.004062d0
xor bl, bl
jmp 0x40ac67
lea ecx, [ebp - 0x388]
call fcn.00403e10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x380]
push 0x105
mov dword [ebp - 0x268], 0x105
call fcn.00406110
cmp byte [ebp - 0x26c], 0
lea eax, [ebp - 0x37c]
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x4b4], 0
cmove eax, dword [ebp - 0x380]
push ecx
add eax, 4
mov dword [ebp - 0x4b0], 0x208
push eax
lea eax, [ebp - 0x4b4]
push eax
push 0
push 0
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40aa58
cmp byte [ebp - 0x18], 0
lea edi, [ebp - 0x128]
push eax
cmove edi, dword [ebp - 0x12c]
mov ecx, ebx
call fcn.00429880
push 0x505998
mov esi, eax
push 0x50258c
push esi
call fcn.00405280
lea eax, [edi + 4]
push eax
push 0x50258c
push esi
call fcn.00405280
add esp, 0x18
jmp 0x40aa92
cmp dword [ebp - 0x4b4], 1
je 0x40aab0
cmp byte [ebp - 0x18], 0
lea esi, [ebp - 0x128]
push 0x5059a8
cmove esi, dword [ebp - 0x12c]
mov ecx, ebx
call fcn.004062d0
mov ecx, eax
lea eax, [esi + 4]
push eax
push 0x50258c
push ecx
call fcn.00405280
add esp, 0xc
lea ecx, [ebp - 0x388]
call fcn.00404080
push 0x5026c0
mov ecx, ebx
call fcn.004062d0
xor bl, bl
jmp 0x40ac3b
lea ecx, [ebp - 0x388]
call fcn.004048d0
lea ecx, [ebp - 0x264]
call fcn.00403e10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x25c]
push 0x105
mov dword [ebp - 0x144], 0x105
call fcn.00406110
cmp byte [ebp - 0x148], 0
lea eax, [ebp - 0x258]
push 1
cmove eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x4b0]
push str.Version
push ecx
add eax, 4
mov dword [ebp - 0x4b0], 0x208
push eax
push ebx
lea ecx, [ebp - 0x140]
call fcn.00426850
lea ecx, [ebp - 0x264]
test al, al
jne 0x40ab42
call fcn.00404080
push 0x5026e4
mov ecx, ebx
call fcn.004062d0
xor bl, bl
jmp 0x40ac0f
call fcn.004048d0
cmp byte [ebp - 0x26c], 0
lea eax, [ebp - 0x37c]
lea ecx, [ebp - 0x4ac]
cmove eax, dword [ebp - 0x380]
sub esp, 0x10
add eax, 4
push 0
push eax
call fcn.0040f6f0
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [esi + 0xc]
call fcn.0040fd90
cmp byte [ebp - 0x390], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40abaa
mov eax, dword [ebp - 0x4a4]
lea ecx, [ebp - 0x4a0]
cmp eax, ecx
je 0x40abaa
push eax
call fcn.0049c7b1
add esp, 4
cmp byte [ebp - 0x148], 0
lea eax, [ebp - 0x258]
lea ecx, [ebp - 0x4ac]
cmove eax, dword [ebp - 0x25c]
sub esp, 0x10
add eax, 4
push 0
push eax
call fcn.0040f6f0
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [esi + 0xc]
call fcn.0040fc70
cmp byte [ebp - 0x390], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40ac0d
mov eax, dword [ebp - 0x4a4]
lea ecx, [ebp - 0x4a0]
cmp eax, ecx
je 0x40ac0d
push eax
call fcn.0049c7b1
add esp, 4
mov bl, 1
cmp byte [ebp - 0x148], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40ac3b
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
cmp eax, ecx
je 0x40ac3b
push eax
call fcn.0049c7b1
add esp, 4
cmp byte [ebp - 0x26c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40ac67
mov eax, dword [ebp - 0x380]
lea ecx, [ebp - 0x37c]
cmp eax, ecx
je 0x40ac67
push eax
call fcn.0049c7b1
add esp, 4
mov eax, dword [ebp - 0x13c]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
test eax, eax
je 0x40ac82
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x40acb5
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x40acb5
push ecx
call fcn.0049c7b1
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.0048f1b0
mov esp, ebp
pop ebp
ret 4