Function at 0x417190
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6171
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x519220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
push 0
push edi
call fcn.00491400
add esp, 0xc
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
lea ecx, [ebp - 0x264]
call fcn.00403e10
push str.MACHINE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x270]
call fcn.004262d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x134]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
call fcn.00403e10
push 0xd
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], SysReAllocString
mov dword [ebp - 0x130], 0xc
call fcn.00406110
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0x1a
cmove eax, dword [ebp - 0x12c]
add eax, 4
push str.CURRENT_USER
push eax
call fcn.00490e80
add esp, 0xc
mov byte [ebp - 0x398], 0
mov dword [ebp - 0x39c], 0
push 1
push 0
push 0
push str.SoftwareSogouExplorer
lea eax, [ebp - 0x39c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x270]
call fcn.00426590
test al, al
jne 0x4172c7
push 1
push 0
push 0
push str.SoftwareSogouExplorer
lea eax, [ebp - 0x39c]
push eax
lea ecx, [ebp - 0x140]
call fcn.00426590
test al, al
je 0x417383
lea esi, [ebp - 0x140]
jmp 0x4172cd
lea esi, [ebp - 0x270]
lea eax, [ebp - 0x3a4]
mov dword [ebp - 0x3a0], 0
push eax
push edi
lea eax, [ebp - 0x3a0]
mov dword [ebp - 0x3a4], 0x208
push eax
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x417347
cmp byte [esi + 0x128], 0
lea edi, [esi + 0x18]
jne 0x417310
mov edi, dword [esi + 0x14]
push eax
lea ecx, [ebp - 0x39c]
call fcn.00429880
push 0x505998
mov esi, eax
push 0x50258c
push esi
call fcn.00405280
lea ecx, [edi + 4]
push ecx
push 0x50258c
push esi
call fcn.00405280
add esp, 0x18
xor esi, esi
jmp 0x417403
cmp dword [ebp - 0x3a0], 1
je 0x417387
cmp byte [esi + 0x128], 0
je 0x41735e
add esi, 0x18
jmp 0x417361
mov esi, dword [esi + 0x14]
push 0x5059a8
lea ecx, [ebp - 0x39c]
call fcn.004062d0
lea ecx, [esi + 4]
push ecx
push 0x50258c
push eax
call fcn.00405280
add esp, 0xc
xor esi, esi
jmp 0x417403
push str.SogouExplorer.exe
push 0x104
push edi
call fcn.004baaa8
push ecx
push 0
push edi
lea ecx, [ebp - 0x394]
call fcn.0040f6f0
cmp byte [ebp - 0x278], 0
lea eax, [ebp - 0x388]
cmove eax, dword [ebp - 0x38c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4173cd
xor al, al
jmp 0x4173d4
shr eax, 4
not al
and al, 1
cmp byte [ebp - 0x278], 0
movzx esi, al
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x417403
mov eax, dword [ebp - 0x38c]
lea ecx, [ebp - 0x388]
cmp eax, ecx
je 0x417403
push eax
call fcn.0049c7b1
add esp, 4
lea ecx, [ebp - 0x39c]
call fcn.004287f0
mov eax, dword [ebp - 0x13c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
test eax, eax
je 0x41742b
push eax
call edi
cmp byte [ebp - 0x18], 0
mov dword [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x41745e
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x41745e
push eax
call fcn.0049c7b1
add esp, 4
mov eax, dword [ebp - 0x26c]
mov dword [ebp - method.t_reg.virtual_0], vtable.t_reg.0
test eax, eax
je 0x417475
push eax
call edi
cmp byte [ebp - 0x148], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4174ab
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x258]
cmp eax, ecx
je 0x4174ab
push eax
call fcn.0049c7b1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f1b0
mov esp, ebp
pop ebp
ret