Function at 0x416a60
Capabilities:
Resolve function by parsing pe exports
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e4b66
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x515854]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push esi
mov dword [esp + 0x50], esi
call edx
test al, al
jne 0x416fe8
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push eax
push 2
push ebx
push str.Software360ChromeHomepageDefault
mov dword [esp + 0xa8], ebx
push Ordinal_4
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x416b44
cmp dword [esi + 0x284], 8
jb 0x416af4
mov esi, dword [esi + 0x270]
jmp 0x416afa
add esi, 0x270
push esi
call fcn.004b98fb
mov ecx, dword [esp + 0x14]
add esp, 4
add eax, eax
push eax
push esi
push 1
push ebx
push 0x4ed84c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x416b4b
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x416b39
push eax
call esi
xor eax, eax
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x416b44
push eax
call esi
xor al, al
jmp 0x416fea
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x416b5e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x18], ebx
call fcn.0044873e
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x9c], 1
call fcn.00448d4e
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x9c], 2
call fcn.00448f56
mov byte [esp + 0x98], 3
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x70]
mov eax, dword [edi + 0x74]
mov edx, dword [edx + 0xc]
mov esi, dword [esp + 0x34]
push 1
push edx
add eax, ecx
push eax
push ecx
call fcn.00454933
test al, al
jne 0x416cb4
mov edi, dword [esp + 0x1c]
cmp edi, ebx
mov dword [esp + 0x18], vtable.GameMgr::GMJsonStyledWriter.0
je 0x416c7b
mov dword [edi], vtable.Json::StyledWriter.0
cmp dword [edi + 0x48], 0x10
jb 0x416be9
mov eax, dword [edi + 0x34]
push eax
call fcn.004b6eae
add esp, 4
mov esi, 0xf
mov dword [edi + 0x48], esi
mov dword [edi + 0x44], ebx
mov byte [edi + 0x34], 0
cmp dword [edi + 0x2c], 0x10
jb 0x416c0a
mov eax, dword [edi + 0x18]
push eax
call fcn.004b6eae
add esp, 4
mov dword [edi + 0x2c], esi
mov dword [edi + 0x28], ebx
mov byte [edi + 0x18], 0
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x416c5f
mov ebx, dword [edi + 0xc]
cmp eax, ebx
je 0x416c51
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x416c36
mov eax, dword [esi - 0x14]
push eax
call fcn.004b6eae
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], 0
mov byte [esi - 0x14], 0
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, ebx
jne 0x416c25
mov eax, dword [edi + 8]
push eax
call fcn.004b6eae
add esp, 4
xor ebx, ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
push edi
mov dword [edi], vtable.Json::Writer.0
call fcn.004b6eae
add esp, 4
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], vtable.GameMgr::IJsonParseWriter.0
call fcn.00448da9
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x9c], 0
call fcn.00448908
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x416cad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x416fea
lea edx, [esp + 0x28]
push edx
call fcn.0044879e
mov esi, eax
push str.homepage_is_newtabpage
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
mov bl, 4
push ecx
mov byte [esp + 0xa4], bl
call fcn.00448a59
mov byte [esp + 0x98], 5
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0xc]
mov edx, dword [eax + 4]
mov esi, dword [edx + 0xc]
push ecx
call fcn.00452e0b
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x9c], bl
call fcn.00448908
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x9c], 3
call fcn.00448908
cmp dword [edi + 0x3c], 8
jb 0x416d25
mov eax, dword [edi + 0x28]
jmp 0x416d28
lea eax, [edi + 0x28]
call fcn.0042f2c8
push eax
lea edx, [esp + 0x40]
push edx
call fcn.00448892
mov esi, eax
push str.session
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xa4], 6
call fcn.00448a59
push str.restore_on_startup
lea edx, [esp + 0x2c]
push edx
mov bl, 7
push eax
mov byte [esp + 0xa4], bl
call fcn.00448a59
mov byte [esp + 0x98], 8
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0xc]
push edx
call fcn.00452e0b
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x9c], bl
call fcn.00448908
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x9c], 6
call fcn.00448908
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x9c], 3
call fcn.00448908
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x50]
add eax, 0x1a8
push ecx
call fcn.00442c8d
add esp, 4
mov ebx, 0x10
mov byte [esp + 0x98], 9
cmp dword [eax + 0x18], ebx
jb 0x416deb
mov eax, dword [eax + 4]
jmp 0x416dee
add eax, 4
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.0044883f
mov esi, eax
push str.homepage
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xa4], 0xa
call fcn.00448a59
mov byte [esp + 0x98], 0xb
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0xc]
mov edx, dword [eax + 4]
mov esi, dword [edx + 0xc]
push ecx
call fcn.00452e0b
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x9c], 0xa
call fcn.00448908
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x9c], 9
call fcn.00448908
mov byte [esp + 0x98], 3
cmp dword [esp + 0x68], ebx
jb 0x416e70
mov edx, dword [esp + 0x54]
push edx
call fcn.004b6eae
add esp, 4
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x20]
call fcn.00448fe0
mov edx, dword [edi + 0x6c]
xor esi, esi
push esi
push esi
push esi
push edx
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esp + 0x84], ebx
mov eax, dword [esp + 0x70]
jae 0x416ea7
lea eax, [esp + 0x70]
mov edx, dword [esp + 0x80]
push esi
lea ecx, [esp + 0x3c]
push ecx
push edx
push eax
mov eax, dword [edi + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [esp + 0x84], ebx
jb 0x416ee0
mov edx, dword [esp + 0x70]
push edx
call fcn.004b6eae
add esp, 4
mov edi, dword [esp + 0x1c]
cmp edi, esi
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], esi
mov byte [esp + 0x70], 0
mov dword [esp + 0x18], vtable.GameMgr::GMJsonStyledWriter.0
je 0x416fb6
mov dword [edi], vtable.Json::StyledWriter.0
cmp dword [edi + 0x48], ebx
jb 0x416f22
mov eax, dword [edi + 0x34]
push eax
call fcn.004b6eae
add esp, 4
mov dword [edi + 0x48], 0xf
mov dword [edi + 0x44], esi
mov byte [edi + 0x34], 0
cmp dword [edi + 0x2c], ebx
jb 0x416f41
mov eax, dword [edi + 0x18]
push eax
call fcn.004b6eae
add esp, 4
mov dword [edi + 0x2c], 0xf
mov dword [edi + 0x28], esi
mov byte [edi + 0x18], 0
mov eax, dword [edi + 8]
cmp eax, esi
je 0x416f9a
mov ebx, dword [edi + 0xc]
cmp eax, ebx
je 0x416f8e
lea esi, [eax + 0x18]
cmp dword [esi], 0x10
jb 0x416f71
mov eax, dword [esi - 0x14]
push eax
call fcn.004b6eae
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], 0
mov byte [esi - 0x14], 0
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, ebx
jne 0x416f60
xor esi, esi
mov eax, dword [edi + 8]
push eax
call fcn.004b6eae
add esp, 4
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
push edi
mov dword [edi], vtable.Json::Writer.0
call fcn.004b6eae
add esp, 4
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], vtable.GameMgr::IJsonParseWriter.0
call fcn.00448da9
lea ecx, [esp + 0x20]
push ecx
mov byte [esp + 0x9c], 0
call fcn.00448908
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x416fe8
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.004b6e9f
mov esp, ebp
pop ebp
ret 4