Function at 0x509520
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d368
mov eax, dword fs:[0]
push eax
sub esp, 0x66c
mov eax, dword [0x531304]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x561], 0
mov dword [ebp - 0x560], 0
cmp dword [0x55b9f4], 0
jne 0x50957c
push 0x520f68
call fcn.004e4170
add esp, 4
mov eax, 0xfffffffc
jmp 0x509977
mov eax, dword [ebp + 8]
push eax
call fcn.004f9c00
add esp, 4
mov dword [ebp - 0x670], eax
mov ecx, dword [ebp - 0x670]
push ecx
call fcn.00415e20
add esp, 4
test eax, eax
jne 0x5095ab
mov eax, 0xfffffffd
jmp 0x509977
push 0x520f8c
call fcn.004f49c0
add esp, 4
test eax, eax
je 0x5095c9
push 0x520f98
call fcn.004349e0
add esp, 4
mov edx, dword [ebp - 0x670]
push edx
push str._DEBUGINFO__LOCK__SET_LockMaxthon5_url___s_n
call fcn.004e4170
add esp, 8
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x130], 0
mov byte [ebp - 0x344], 0
push 0x103
push 0
lea eax, [ebp - 0x343]
push eax
call fcn.00415fc0
add esp, 0xc
mov byte [ebp - 0x44c], 0
push 0x103
push 0
lea ecx, [ebp - 0x44b]
push ecx
call fcn.00415fc0
add esp, 0xc
mov byte [ebp - 0x23c], 0
push 0x103
push 0
lea edx, [ebp - 0x23b]
push edx
call fcn.00415fc0
add esp, 0xc
mov byte [ebp - 0x55c], 0
push 0x103
push 0
lea eax, [ebp - 0x55b]
push eax
call fcn.00415fc0
add esp, 0xc
mov byte [ebp - 0x66c], 0
push 0x103
push 0
lea ecx, [ebp - 0x66b]
push ecx
call fcn.00415fc0
add esp, 0xc
push 0
push 0x1a
lea edx, [ebp - 0x66c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x520fd4
push 0x104
lea eax, [ebp - 0x66c]
push eax
call fcn.004189df
add esp, 0xc
mov byte [ebp - 0x12c], 0
push 0x103
push 0
lea ecx, [ebp - 0x12b]
push ecx
call fcn.00415fc0
add esp, 0xc
lea edx, [ebp - 0x66c]
push edx
push 0x104
lea eax, [ebp - 0x12c]
push eax
call fcn.004188fa
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
call fcn.004f4b10
add esp, 4
test eax, eax
je 0x509700
xor eax, eax
jmp 0x509977
lea ecx, [ebp - 0x1c]
call fcn.00413270
mov dword [ebp - 4], 0
push 0x520fe4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x66c]
push eax
call fcn.00434aa0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004132c0
test eax, eax
jbe 0x509947
mov dword [ebp - 0x674], 0
jmp 0x509752
mov ecx, dword [ebp - 0x674]
add ecx, 1
mov dword [ebp - 0x674], ecx
lea ecx, [ebp - 0x1c]
call fcn.004132c0
cmp dword [ebp - 0x674], eax
jae 0x509947
push 0x104
push 0
lea edx, [ebp - 0x344]
push edx
call fcn.00415fc0
add esp, 0xc
mov eax, dword [ebp - 0x674]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00413300
push eax
push 0x104
lea ecx, [ebp - 0x344]
push ecx
call fcn.004188fa
add esp, 0xc
push 0x520fec
push 0x104
lea edx, [ebp - 0x344]
push edx
call fcn.004189df
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00415fc0
add esp, 0xc
lea ecx, [ebp - 0x66c]
push ecx
push 0x104
lea edx, [ebp - 0x23c]
push edx
call fcn.004188fa
add esp, 0xc
push 0x521004
push 0x104
lea eax, [ebp - 0x23c]
push eax
call fcn.004189df
add esp, 0xc
mov ecx, dword [ebp - 0x674]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00413300
push eax
push 0x104
lea edx, [ebp - 0x23c]
push edx
call fcn.004189df
add esp, 0xc
push 0x521008
push 0x104
lea eax, [ebp - 0x23c]
push eax
call fcn.004189df
add esp, 0xc
lea ecx, [ebp - 0x23c]
push ecx
call fcn.004f4d70
add esp, 4
cmp eax, 0x64
jbe 0x509942
push 0x104
push 0
lea edx, [ebp - 0x55c]
push edx
call fcn.00415fc0
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push 0x104
lea ecx, [ebp - 0x55c]
push ecx
call fcn.004188fa
add esp, 0xc
push 0x52101c
push 0x104
lea edx, [ebp - 0x55c]
push edx
call fcn.004189df
add esp, 0xc
lea eax, [ebp - 0x55c]
push eax
call fcn.004f5060
add esp, 4
mov dword [ebp - 0x130], eax
push 0
lea ecx, [ebp - 0x344]
push ecx
lea edx, [ebp - 0x55c]
push edx
lea eax, [ebp - 0x23c]
push eax
call fcn.004e53f0
add esp, 0x10
mov dword [ebp - 0x450], eax
mov ecx, dword [ebp - 0x670]
push ecx
call fcn.004f5130
add esp, 4
push eax
mov edx, dword [ebp - 0x130]
push edx
call fcn.00509270
add esp, 8
mov dword [ebp - 0x560], eax
push 1
lea eax, [ebp - 0x344]
push eax
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x55c]
push edx
call fcn.004e53f0
add esp, 0x10
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x55c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x130]
push ecx
call fcn.00415c75
add esp, 4
jmp 0x509743
mov edx, dword [ebp - 0x670]
push edx
call fcn.00415c75
add esp, 4
mov eax, dword [ebp - 0x560]
mov dword [ebp - 0x678], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004132a0
mov eax, dword [ebp - 0x678]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004158f4
mov esp, ebp
pop ebp
ret 4