Function at 0x412f59
Capabilities:
Check if file exists
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0xac], eax
mov eax, dword [esi + 4]
lea edi, [esi + 0x3c]
add eax, 0x10
push eax
mov ecx, edi
call fcn.0040478a
mov edi, dword [edi]
cmp dword [edi - 8], 0
je 0x413207
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413207
mov eax, dword [esi + 4]
lea edi, [esi + 0x38]
add eax, 0x14
mov ecx, edi
push eax
call fcn.0040478a
push 0x43e9f0
lea ebx, [esi + 0x34]
push dword [edi]
push 0x43cb6c
push ebx
call fcn.00409818
push dword [edi]
call fcn.004216ea
push dword [edi]
call fcn.0042176e
add esp, 0x18
test al, al
jne 0x412fef
push 0x30
push dword [0x4456fc]
push 0x43cbb8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x413038
mov ecx, esi
call fcn.004184bc
test eax, eax
jne 0x413009
push 0x40
push dword [0x4456fc]
push 0x43cbfc
jmp 0x412fe4
mov eax, dword [esi + 4]
cmp dword [eax + 4], 9
jge 0x413040
mov ecx, esi
call fcn.00418562
test eax, eax
je 0x413040
push 0x44
push dword [0x4456fc]
push 0x43e990
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x413040
or eax, 0xffffffff
jmp 0x413209
push dword [ebx]
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push reloc.OLEAUT32.dll_SysReAllocString
call edi
push dword [ebx]
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push SysReAllocStringLen
call edi
mov ax, word [0x444224]
mov ecx, 0x81
mov word [ebp - 0x218], ax
xor eax, eax
lea edi, [ebp - 0x216]
push 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
push str.Version
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0x103
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4130eb
cmp word [ebp - 0x218], 0x38
je 0x4130c9
cmp word [ebp - 0x218], 0x39
jne 0x4130eb
lea eax, [ebp - 8]
push edi
push eax
push edi
push str.MSCompatibilityMode
push str.SoftwareMicrosoftInternet_ExplorerBrowserEmulation
push SysReAllocStringLen
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, esi
call fcn.004180f7
mov ecx, esi
call fcn.00417df1
mov ecx, dword [esi + 4]
push 5
push dword [ebp + 8]
call fcn.0041aa82
mov ebx, dword [ebx]
mov eax, dword [esi + 0x38]
push 1
push ebx
push eax
mov ecx, esi
push dword [ebp + 8]
call fcn.00417e49
test eax, eax
je 0x413207
lea eax, [esi + 0x30]
push str.dataDeleteCookieFlag.txt
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041a27c
push eax
mov ecx, 0x446468
call fcn.0040478a
lea ecx, [ebp - 8]
call fcn.00404c0d
mov eax, dword [0x43b50c]
push str.360se_bin
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push dword [eax + 0x18]
lea eax, [ebp - 4]
push 0x43cb6c
push eax
call fcn.00409818
add esp, 0x10
cmp dword [0x4463cc], 0
je 0x413274
mov eax, dword [esi + 4]
cmp dword [eax + 4], 6
jle 0x413274
push dword [esi + 0x38]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
jne 0x413274
mov ebx, 0x4461c4
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413274
and word [ebp - 0x420], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x41e]
rep stosd dword es:[edi], eax
push 0x43e9f0
push ebx
stosw word es:[edi], ax
push 0x43cb6c
lea eax, [ebp - 0x420]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 0x420]
mov ecx, esi
push 0
push eax
push ebx
push dword [ebp + 8]
call fcn.00417e49
test eax, eax
jne 0x413210
lea ecx, [ebp - 4]
call fcn.00404c0d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push dword [esi + 0x38]
push ebx
call fcn.0042198d
mov dword [esi + 0x80], eax
mov eax, dword [esi + 4]
pop ecx
cmp dword [eax + 4], 9
pop ecx
jl 0x413274
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x626]
mov word [ebp - 0x628], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x420]
push eax
push str.__s___tp:11__v:0
lea eax, [ebp - 0x628]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push ebx
push ebx
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.004210b4
add esp, 0x20
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 4]
push 0xa
push edi
call fcn.0041aa82
mov ecx, esi
call fcn.00414b79
mov ecx, dword [esi + 4]
push 0xf
push edi
call fcn.0041aa82
mov ecx, esi
call fcn.00414da1
mov ecx, dword [esi + 4]
push 0x19
push edi
call fcn.0041aa82
push edi
mov ecx, esi
call fcn.004150a0
push 0
push 0
push 0x2000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea ecx, [ebp - 4]
call fcn.00404c0d
push 1
pop eax
jmp 0x413209