Function at 0x54a6e0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fd1e
mov eax, dword fs:[0]
push eax
sub esp, 0x158
push esi
mov eax, dword [0x5deba8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc4], ecx
lea ecx, [ebp - 0x10]
call fcn.0041d970
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041e1e0
push eax
call fcn.00547d90
add esp, 0xc
test eax, eax
je 0x54afcb
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0x59b8a8
call fcn.0041d9b0
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
lea edx, [ebp - 0x10]
push edx
call fcn.0041d990
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0
call fcn.00547c30
add esp, 0xc
mov dword [ebp - 0xd4], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0041e220
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
jmp 0x54a7ba
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x28]
call fcn.0041ea80
cmp dword [ebp - 0x2c], eax
jge 0x54aa67
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
call fcn.0041ec20
push eax
lea ecx, [ebp - 0x30]
call fcn.0041d990
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00480f60
push 0
push 0x5a578c
lea ecx, [ebp - 0x30]
call fcn.0041dc30
test eax, eax
jl 0x54a97b
push 0
push 0x5a5788
lea ecx, [ebp - 0x30]
call fcn.0041dc30
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
push 0x5a5520
lea ecx, [ebp - 0x30]
call fcn.0041dc30
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
push ecx
push 0x5a5520
lea ecx, [ebp - 0x30]
call fcn.0041dc30
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x38]
jle 0x54a976
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x38]
jle 0x54a976
lea ecx, [ebp - 0x30]
call fcn.0041e2f0
sub eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
call fcn.0041ec20
mov ecx, eax
call fcn.0041dde0
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xdc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x3c]
add eax, 1
push eax
lea ecx, [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
call fcn.0041ec20
mov ecx, eax
call fcn.0041de70
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xe4]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.0041df30
add esp, 0xc
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xec]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.0041df30
add esp, 0xc
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xf4], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xf4]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
call fcn.0041ec20
mov ecx, eax
call fcn.0041dad0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x70]
call fcn.0041dab0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.0041dab0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
call fcn.0041dab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.0041dab0
mov dword [ebp - 0x1c], 1
jmp 0x54aa07
push 0
push 0x5a575c
lea ecx, [ebp - 0x30]
call fcn.0041dc30
test eax, eax
jl 0x54aa07
push 0
push 0x5a5788
lea ecx, [ebp - 0x30]
call fcn.0041dc30
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x30]
call fcn.0041e2f0
sub eax, 1
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp - 0x44]
jle 0x54aa07
mov edx, dword [ebp - 0x40]
sub edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.0041dd00
mov byte [ebp - 4], 8
push 0x5a5754
lea ecx, [ebp - 0x4c]
call fcn.0054e120
lea ecx, [ebp - 0x4c]
call fcn.0041e1e0
push eax
call fcn.0055a352
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.0041dab0
push 0x5a5750
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
call fcn.0041ec20
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0041dfe0
add esp, 0xc
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xfc]
push edx
lea ecx, [ebp - 0x10]
call fcn.0041db10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.0041dab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0041dab0
jmp 0x54a7b1
cmp dword [ebp - 0x1c], 0
jne 0x54abc4
push str._r_n_t
lea ecx, [ebp - 0x10]
call fcn.0054e150
push 0x7d
push 1
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041dde0
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
push ecx
call fcn.004ce130
add esp, 8
mov byte [ebp - 0x75], al
lea ecx, [ebp - 0x7c]
call fcn.0041dab0
movzx edx, byte [ebp - 0x75]
test edx, edx
je 0x54ab0c
lea ecx, [ebp - 0x10]
call fcn.0041e2f0
sub eax, 1
push eax
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041de70
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
mov dword [ebp - 0x108], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x108]
push edx
lea ecx, [ebp - 0x10]
call fcn.0041dad0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.0041dab0
push str._r_n_t
lea ecx, [ebp - 0x10]
call fcn.0054e150
push 0x5a573c
mov eax, dword [ebp + 0xc]
push eax
push str.__n____homepage_:__
lea ecx, [ebp - 0x84]
push ecx
call fcn.0041e090
add esp, 0xc
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x110]
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.0041dfe0
add esp, 0xc
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x118]
push eax
lea ecx, [ebp - 0x10]
call fcn.0041db10
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x88]
call fcn.0041dab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call fcn.0041dab0
push str._n____homepage_changed_:_true_
lea ecx, [ebp - 0x10]
call fcn.0041db30
push str._n____homepage_is_newtabpage_:_false
lea ecx, [ebp - 0x10]
call fcn.0041db30
push 0x5a5688
lea ecx, [ebp - 0x10]
call fcn.0041db30
jmp 0x54af60
cmp dword [ebp - 0x18], 0
jne 0x54af60
push ecx
mov ecx, esp
mov dword [ebp - 0x8c], esp
push 0x5a5750
call fcn.0041d9b0
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 0xd
push ecx
mov ecx, esp
mov dword [ebp - 0x90], esp
lea edx, [ebp - 0x10]
push edx
call fcn.0041d990
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 2
call fcn.00547c30
add esp, 0xc
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x28]
call fcn.0049aa30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x9c]
call fcn.00424080
lea ecx, [ebp - 0x10]
call fcn.0041e220
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x50], 0
jmp 0x54ac77
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x28]
call fcn.0041ea80
cmp dword [ebp - 0x50], eax
jge 0x54ae8f
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041ec20
push eax
lea ecx, [ebp - 0x54]
call fcn.0041d990
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x54]
call fcn.00480f60
push 0
push str._homepage_is_newtabpage_
lea ecx, [ebp - 0x54]
call fcn.0041dc30
test eax, eax
jl 0x54ae29
push 0
push 0x5a5648
lea ecx, [ebp - 0x54]
call fcn.0041dc30
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jl 0x54ae29
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x28]
call fcn.0041ec20
mov ecx, eax
call fcn.0041e2f0
mov esi, eax
sub esi, dword [ebp - 0x58]
push 0x5a5648
call fcn.00553809
add esp, 4
sub esi, eax
push esi
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041ec20
mov ecx, eax
call fcn.0041dde0
mov dword [ebp - 0x130], eax
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x134], edx
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x134]
push eax
push 0x5a563c
mov ecx, dword [ebp - 0x58]
push ecx
lea edx, [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ec20
mov ecx, eax
call fcn.0041de70
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x13c]
push edx
lea eax, [ebp - 0xa8]
push eax
call fcn.0041dfe0
add esp, 0xc
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], ecx
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0x144]
push edx
lea eax, [ebp - 0xac]
push eax
call fcn.0041df30
add esp, 0xc
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], ecx
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x14c]
push edx
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ec20
mov ecx, eax
call fcn.0041dad0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xac]
call fcn.0041dab0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xa8]
call fcn.0041dab0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xa4]
call fcn.0041dab0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xa0]
call fcn.0041dab0
mov dword [ebp - 0x1c], 1
push 0x5a5750
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041ec20
push eax
lea edx, [ebp - 0xb0]
push edx
call fcn.0041dfe0
add esp, 0xc
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041db10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xb0]
call fcn.0041dab0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.0041dab0
jmp 0x54ac6e
cmp dword [ebp - 0x1c], 0
jne 0x54af60
push str._r_n_t
lea ecx, [ebp - 0x10]
call fcn.0054e150
push 0x7d
push 1
lea edx, [ebp - 0xb8]
push edx
lea ecx, [ebp - 0x10]
call fcn.0041dde0
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
push eax
call fcn.004ce130
add esp, 8
mov byte [ebp - 0xb1], al
lea ecx, [ebp - 0xb8]
call fcn.0041dab0
movzx ecx, byte [ebp - 0xb1]
test ecx, ecx
je 0x54af46
lea ecx, [ebp - 0x10]
call fcn.0041e2f0
sub eax, 1
push eax
lea edx, [ebp - 0xbc]
push edx
lea ecx, [ebp - 0x10]
call fcn.0041de70
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x160]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0041dad0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.0041dab0
push str._r_n_t
lea ecx, [ebp - 0x10]
call fcn.0054e150
push str.__n____homepage_is_newtabpage_:_false
lea ecx, [ebp - 0x10]
call fcn.0041db30
push 0x5a5688
lea ecx, [ebp - 0x10]
call fcn.0041db30
mov ecx, dword [ebp + 8]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x54af94
mov edx, dword [ebp - 0x14]
and edx, 0xfffffffe
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041e1e0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0xc0], esp
lea edx, [ebp - 0x10]
push edx
call fcn.0041d990
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp + 8]
call fcn.0041e1e0
push eax
call fcn.00547fe0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00424080
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041dab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8