Function at 0x416596
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a5fbc
mov eax, dword fs:[0]
push eax
sub esp, 0x208
mov eax, dword [0x4de270]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push esi
push edi
mov eax, dword [0x4de270]
xor eax, esp
push eax
lea eax, [esp + 0x218]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
push str.CChromeBrowser::SetHomepage___hp
lea esi, [esp + 0x50]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
call fcn.00404db2
and dword [esp + 0x220], 0
mov eax, esi
push eax
call fcn.00404975
or dword [esp + 0x224], 0xffffffff
pop ecx
xor ebx, ebx
push ebx
push 1
call fcn.00404f5a
cmp dword [edi + 0x1c], 0x10
jb 0x41661f
mov edi, dword [edi + 8]
jmp 0x416622
add edi, 8
lea eax, [esp + 0xf4]
push 3
mov dword [esp + 0xf4], eax
push edi
lea eax, [esp + 0xf8]
push eax
call fcn.0040894f
xor edi, edi
inc edi
mov dword [esp + 0x220], edi
push dword [esp + 0xf0]
lea esi, [esp + 0x1f8]
call fcn.00404db2
lea eax, [esp + 0xf4]
mov byte [esp + 0x220], 3
cmp dword [esp + 0xf0], eax
je 0x416682
push dword [esp + 0xf0]
call fcn.00482ae9
pop ecx
push str.Preferences
lea eax, [esp + 0x1f8]
push eax
call fcn.004048a5
push ebx
lea ecx, [esp + 0x20]
call fcn.00471260
push str.CChromeBrowser::SetHomepage___reading_json_from_file
lea esi, [esp + 0x50]
mov byte [esp + 0x224], 4
call fcn.00404db2
mov byte [esp + 0x220], 5
call fcn.00404e64
push ebx
push edi
mov byte [esp + 0x228], 4
call fcn.00404f5a
lea edi, [esp + 0x1c]
lea esi, [esp + 0x1f4]
call fcn.0046c497
push str.CChromeBrowser::SetHomepage___bReadJSONSuccessful
lea esi, [esp + 0x50]
mov byte [esp + 0x14], al
call fcn.00404db2
push dword [esp + 0x10]
mov eax, esi
push eax
mov byte [esp + 0x228], 6
call fcn.00406bc9
pop ecx
pop ecx
xor edi, edi
push edi
push 1
mov byte [esp + 0x228], 4
call fcn.00404f5a
cmp byte [esp + 0x10], 0
je 0x416883
lea ecx, [esp + 0x1c]
call fcn.00472bf0
test al, al
jne 0x416883
mov ebx, dword [esp + 0x14]
cmp dword [ebx + 0x18], 8
jb 0x416745
mov eax, dword [ebx + 4]
jmp 0x416748
lea eax, [ebx + 4]
push 3
push eax
lea eax, [esp + 0x74]
lea ecx, [esp + 0x78]
push eax
mov dword [esp + 0x78], ecx
call fcn.00408895
mov byte [esp + 0x220], 7
push dword [esp + 0x6c]
lea ecx, [esp + 0x50]
call fcn.00471440
lea eax, [esp + 0x70]
mov byte [esp + 0x220], 9
cmp dword [esp + 0x6c], eax
je 0x41678e
push dword [esp + 0x6c]
call fcn.00482ae9
pop ecx
lea eax, [esp + 0x4c]
push eax
push str.homepage
lea ecx, [esp + 0x24]
call fcn.00472580
mov ecx, eax
call fcn.00471920
push edi
lea ecx, [esp + 0x30]
call fcn.00471530
lea eax, [esp + 0x2c]
push eax
push str.homepage_is_newtabpage
lea ecx, [esp + 0x24]
mov byte [esp + 0x228], 0xa
call fcn.00472580
mov ecx, eax
call fcn.00471920
lea ecx, [esp + 0x2c]
mov byte [esp + 0x220], 9
call fcn.00471810
push str.CChromeBrowser::SetHomepage___hp_set
lea esi, [esp + 0x30]
call fcn.00404db2
mov byte [esp + 0x220], 0xb
call fcn.00404e64
push edi
push 1
mov byte [esp + 0x228], 9
call fcn.00404f5a
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x3c]
cmp eax, 0x13
jl 0x416829
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.004168f2
push str.CChromeBrowser::SetHomepage___writing_json_to_file
lea esi, [esp + 0x30]
call fcn.00404db2
mov byte [esp + 0x220], 0xc
call fcn.00404e64
push edi
push 1
mov byte [esp + 0x228], 9
call fcn.00404f5a
lea esi, [esp + 0x1c]
lea edi, [esp + 0x1f4]
call fcn.0046c55d
dec al
movzx ebx, al
neg ebx
sbb ebx, ebx
lea ecx, [esp + 0x4c]
and ebx, 5
mov byte [esp + 0x220], 4
call fcn.00471810
xor edi, edi
push str.CChromeBrowser::SetHomepage___ret
lea esi, [esp + 0x30]
call fcn.00404db2
push ebx
mov ecx, esi
mov byte [esp + 0x224], 0xd
call fcn.00408b56
pop ecx
push edi
push 1
call fcn.00404f5a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x220], 3
call fcn.00471810
push edi
push 1
lea esi, [esp + 0x1fc]
call fcn.00404f5a
mov eax, ebx
mov ecx, dword [esp + 0x218]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.004812cc
mov esp, ebp
pop ebp
ret 4