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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c7898
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x50e7dc]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
push edi
mov eax, dword [0x50e7dc]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, ecx
push str.CChromeBrowser::SetHomepage___hp
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x54], edi
call fcn.00404bd0
lea eax, [esp + 0x14]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x230], ebx
call fcn.00401985
or dword [esp + 0x230], 0xffffffff
pop ecx
pop ecx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [esp + 0x1c]
call fcn.004058b3
cmp byte [ebp + 0xc], bl
je 0x420f1d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x84]
test eax, eax
jne 0x420f1d
push str.CChromeBrowser::SetHomepage___NOT_host_Browser___Exit
lea ecx, [esp + 0x18]
call fcn.00404bd0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x22c], edi
call fcn.004017f5
pop ecx
push ebx
push edi
lea ecx, [esp + 0x1c]
call fcn.004058b3
push 5
pop eax
jmp 0x4211ef
cmp dword [esi + 0x1c], 0x10
jb 0x420f28
mov esi, dword [esi + 8]
jmp 0x420f2b
add esi, 8
push esi
lea ecx, [esp + 0xfc]
call fcn.0041c01b
mov dword [esp + 0x228], 2
push dword [eax]
lea ecx, [esp + 0x200]
call fcn.00404bd0
lea eax, [esp + 0xfc]
mov byte [esp + 0x228], 4
cmp dword [esp + 0xf8], eax
je 0x420f76
push dword [esp + 0xf8]
call fcn.0049f900
pop ecx
push str.Preferences
lea ecx, [esp + 0x200]
call fcn.004052dd
push ebx
lea ecx, [esp + 0x40]
call fcn.0047a5b0
push str.CChromeBrowser::SetHomepage___reading_json_from_file
lea ecx, [esp + 0x18]
mov byte [esp + 0x22c], 5
call fcn.00404bd0
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x22c], 6
call fcn.004017f5
pop ecx
push ebx
push edi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x230], 5
call fcn.004058b3
lea edi, [esp + 0x3c]
lea esi, [esp + 0x1fc]
call fcn.00477a02
push str.CChromeBrowser::SetHomepage___bReadJSONSuccessful
lea ecx, [esp + 0x18]
mov byte [esp + 0x14], al
call fcn.00404bd0
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x230], 7
call fcn.00401927
pop ecx
pop ecx
xor esi, esi
push esi
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x230], 5
call fcn.004058b3
cmp byte [esp + 0x10], 0
je 0x42119e
mov ecx, edi
call fcn.0047bf40
test al, al
jne 0x42119e
mov edi, dword [esp + 0x50]
cmp dword [edi + 0x18], 8
jb 0x421046
mov eax, dword [edi + 4]
jmp 0x421049
lea eax, [edi + 4]
push 3
push eax
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x80]
push eax
mov dword [esp + 0x80], ecx
call fcn.004058fe
mov byte [esp + 0x228], 8
push dword [esp + 0x74]
lea ecx, [esp + 0x18]
call fcn.0047a790
lea eax, [esp + 0x78]
mov byte [esp + 0x228], 0xa
cmp dword [esp + 0x74], eax
je 0x421095
push dword [esp + 0x74]
call fcn.0049f900
pop ecx
lea eax, [esp + 0x14]
push eax
push str.homepage
lea ecx, [esp + 0x44]
call fcn.0047b8d0
mov ecx, eax
call fcn.0047ac70
push esi
lea ecx, [esp + 0x58]
call fcn.0047a880
lea eax, [esp + 0x54]
push eax
push str.homepage_is_newtabpage
lea ecx, [esp + 0x44]
mov byte [esp + 0x230], 0xb
call fcn.0047b8d0
mov ecx, eax
call fcn.0047ac70
lea ecx, [esp + 0x54]
mov byte [esp + 0x228], 0xa
call fcn.0047ab60
push str.CChromeBrowser::SetHomepage___hp_set
lea ecx, [esp + 0x58]
call fcn.00404bd0
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x22c], 0xc
call fcn.004017f5
pop ecx
push esi
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x230], 0xa
call fcn.004058b3
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
call dword [eax + 0x3c]
cmp eax, 0x13
jl 0x42113a
push edi
lea eax, [esp + 0x40]
push eax
call fcn.00421215
push str.CChromeBrowser::SetHomepage___writing_json_to_file
lea ecx, [esp + 0x58]
call fcn.00404bd0
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x22c], 0xd
call fcn.004017f5
pop ecx
push esi
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x230], 0xa
call fcn.004058b3
lea esi, [esp + 0x3c]
lea edi, [esp + 0x1fc]
call fcn.00477ac8
dec al
movzx ebx, al
neg ebx
sbb ebx, ebx
lea ecx, [esp + 0x14]
and ebx, 5
mov byte [esp + 0x228], 5
call fcn.0047ab60
xor esi, esi
push str.CChromeBrowser::SetHomepage___ret
lea ecx, [esp + 0x58]
call fcn.00404bd0
lea eax, [esp + 0x54]
push ebx
push eax
mov byte [esp + 0x230], 0xe
call fcn.004018c5
pop ecx
pop ecx
push esi
push 1
lea ecx, [esp + 0x5c]
call fcn.004058b3
lea ecx, [esp + 0x3c]
mov byte [esp + 0x228], 4
call fcn.0047ab60
push esi
push 1
lea ecx, [esp + 0x204]
call fcn.004058b3
mov eax, ebx
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0049f533
mov esp, ebp
pop ebp
ret 8