Function at 0x418770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0896
mov eax, dword fs:[0]
push eax
sub esp, 0x384
mov eax, dword [0x513200]
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, edx
mov ebx, ecx
lea ecx, [ebp - 0x134]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
call fcn.00403480
push str.MACHINE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x140]
call fcn.00423d10
push 1
push 0
push 0
push str.SoftwareSogouInput
push ebx
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], 0
call fcn.00423fd0
test al, al
jne 0x418801
push 0x4fc5b0
mov ecx, ebx
call fcn.004058b0
xor bl, bl
jmp 0x4189fa
lea ecx, [ebp - 0x264]
call fcn.00403480
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x25c]
push 0x105
mov dword [ebp - 0x144], 0x105
call fcn.004056f0
cmp byte [ebp - 0x148], 0
lea eax, [ebp - 0x258]
lea ecx, [ebp - 0x390]
mov dword [ebp - 0x38c], 0
cmove eax, dword [ebp - 0x25c]
push ecx
add eax, 4
mov dword [ebp - 0x390], 0x208
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
push 0
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4188b7
cmp byte [ebp - 0x18], 0
lea edi, [ebp - 0x128]
push eax
cmove edi, dword [ebp - 0x12c]
mov ecx, ebx
call fcn.004272c0
push 0x4ff5c8
mov esi, eax
push 0x4fc47c
push esi
call fcn.004048f0
lea eax, [edi + 4]
push eax
push 0x4fc47c
push esi
call fcn.004048f0
add esp, 0x18
jmp 0x4188f1
cmp dword [ebp - 0x38c], 1
je 0x41890f
cmp byte [ebp - 0x18], 0
lea esi, [ebp - 0x128]
push 0x4ff5d8
cmove esi, dword [ebp - 0x12c]
mov ecx, ebx
call fcn.004058b0
mov ecx, eax
lea eax, [esi + 4]
push eax
push 0x4fc47c
push ecx
call fcn.004048f0
add esp, 0xc
lea ecx, [ebp - 0x264]
call fcn.004036f0
push 0x4fc5b0
mov ecx, ebx
call fcn.004058b0
xor bl, bl
jmp 0x4189ce
lea ecx, [ebp - 0x264]
call fcn.00403f40
cmp byte [ebp - 0x148], 0
lea eax, [ebp - 0x258]
lea ecx, [ebp - 0x388]
cmove eax, dword [ebp - 0x25c]
sub esp, 0x10
add eax, 4
push 0
push eax
call fcn.0040e650
lea eax, [ebp - 0x388]
mov ecx, esi
push eax
call fcn.0040ecf0
cmp byte [ebp - 0x26c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x41897c
mov eax, dword [ebp - 0x380]
lea ecx, [ebp - 0x37c]
cmp eax, ecx
je 0x41897c
push eax
call fcn.00496f41
add esp, 4
sub esp, 0x10
push 0
call fcn.004252c0
push eax
lea ecx, [ebp - 0x388]
call fcn.0040e650
lea eax, [ebp - 0x388]
mov ecx, esi
push eax
call fcn.0040ebd0
cmp byte [ebp - 0x26c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4189cc
mov eax, dword [ebp - 0x380]
lea ecx, [ebp - 0x37c]
cmp eax, ecx
je 0x4189cc
push eax
call fcn.00496f41
add esp, 4
mov bl, 1
cmp byte [ebp - 0x148], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4189fa
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
cmp eax, ecx
je 0x4189fa
push eax
call fcn.00496f41
add esp, 4
mov eax, dword [ebp - 0x13c]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
test eax, eax
je 0x418a15
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 0x418a48
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x418a48
push ecx
call fcn.00496f41
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.00489940
mov esp, ebp
pop ebp
ret