Function at 0x414cc0
Capabilities:
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x516573
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push edi
call edx
test al, al
jne 0x4150d5
xor esi, esi
mov dword [esp + 0x14], esi
lea eax, [esp + 0x14]
push eax
push 2
push esi
push str.Software360ChromeHomepageDefault
mov dword [esp + 0xa8], esi
push Ordinal_4
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x414db7
cmp dword [edi + 0x284], 8
jb 0x414d50
mov edx, dword [edi + 0x270]
jmp 0x414d56
lea edx, [edi + 0x270]
mov eax, edx
lea esi, [eax + 2]
jmp 0x414d60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414d60
sub eax, esi
sar eax, 1
lea ecx, [eax + eax]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
xor esi, esi
push esi
push 0x51b4bc
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x414dbe
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
cmp eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x414da8
push eax
call esi
xor eax, eax
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x414db7
push eax
call esi
xor al, al
jmp 0x4150d7
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x414dd1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], esi
call fcn.004522b0
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x9c], 1
call fcn.00452ce0
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x9c], 2
call fcn.00453110
mov byte [esp + 0x98], 3
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x70]
mov eax, dword [ebx + 0x74]
mov edx, dword [edx + 0xc]
push 1
push edx
add eax, ecx
push eax
mov eax, dword [esp + 0x3c]
push ecx
push eax
call fcn.004659e0
test al, al
jne 0x414e67
lea esi, [esp + 0x34]
call fcn.00453190
lea ecx, [esp + 0x2c]
call fcn.00452dd0
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x9c], 0
call fcn.00452520
mov eax, dword [esp + 0x14]
test eax, eax
je 0x414e60
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4150d7
lea edx, [esp + 0x24]
push edx
call fcn.00452340
mov esi, eax
push str.homepage_is_newtabpage
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0xa4], 4
call fcn.00452810
mov byte [esp + 0x98], 5
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 0xc]
mov esi, dword [ecx + 0xc]
call fcn.00462fb0
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x9c], 4
call fcn.00452520
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x9c], 3
call fcn.00452520
cmp dword [ebx + 0x3c], 8
jb 0x414ed7
mov eax, dword [ebx + 0x28]
jmp 0x414eda
lea eax, [ebx + 0x28]
call fcn.0042bbb0
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00452470
mov esi, eax
push str.session
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xa4], 6
call fcn.00452810
push str.restore_on_startup
lea ecx, [esp + 0x28]
push ecx
push eax
mov byte [esp + 0xa4], 7
call fcn.00452810
mov byte [esp + 0x98], 8
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 0xc]
mov esi, dword [ecx + 0xc]
call fcn.00462fb0
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x9c], 7
call fcn.00452520
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x9c], 6
call fcn.00452520
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x9c], 3
call fcn.00452520
lea ecx, [edi + 0x1a8]
lea esi, [esp + 0x50]
call fcn.004495e0
mov byte [esp + 0x98], 9
cmp dword [eax + 0x18], 0x10
jb 0x414f91
mov eax, dword [eax + 4]
jmp 0x414f94
add eax, 4
lea edx, [esp + 0x24]
push edx
mov edi, eax
call fcn.004523f0
mov esi, eax
push str.homepage
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0xa4], 0xa
call fcn.00452810
mov byte [esp + 0x98], 0xb
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 0xc]
mov esi, dword [ecx + 0xc]
call fcn.00462fb0
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x9c], 0xa
call fcn.00452520
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x9c], 9
call fcn.00452520
mov esi, 0x10
mov byte [esp + 0x98], 3
cmp dword [esp + 0x68], esi
jb 0x41501b
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004e7d7e
add esp, 4
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x3c]
call fcn.004531e0
mov ecx, dword [ebx + 0x6c]
xor edi, edi
push edi
push edi
push edi
push ecx
mov dword [esp + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x84], esi
mov eax, dword [esp + 0x70]
jae 0x415052
lea eax, [esp + 0x70]
mov ecx, dword [esp + 0x80]
push edi
lea edx, [esp + 0x50]
push edx
mov edx, dword [ebx + 0x6c]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [esp + 0x84], esi
jb 0x41508b
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004e7d7e
add esp, 4
lea esi, [esp + 0x34]
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], edi
mov byte [esp + 0x70], 0
call fcn.00453190
lea ecx, [esp + 0x2c]
call fcn.00452dd0
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x9c], 0
call fcn.00452520
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4150d5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004e7d6f
mov esp, ebp
pop ebp
ret 4